From: Adam Dickmeiss Date: Wed, 19 Nov 2003 19:06:41 +0000 (+0000) Subject: For Scan, yaz-client shows displayTerm if present X-Git-Tag: YAZ.2.0.6~27 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2f405fd826dd2f2e837fe3557274fdc2c08d2f02;p=yaz-moved-to-github.git For Scan, yaz-client shows displayTerm if present --- diff --git a/client/client.c b/client/client.c index ab8fa03..841ba06 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.212 2003-11-02 17:59:28 adam Exp $ + * $Id: client.c,v 1.213 2003-11-19 19:06:41 adam Exp $ */ #include @@ -2574,7 +2574,9 @@ int send_sortrequest(const char *arg, int newset) void display_term(Z_TermInfo *t) { - if (t->term->which == Z_Term_general) + if (t->displayTerm) + printf("%s", t->displayTerm); + else if (t->term->which == Z_Term_general) { printf("%.*s", t->term->u.general->len, t->term->u.general->buf); sprintf(last_scan_line, "%.*s", t->term->u.general->len,