X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=17283071449d24cfd020124feeb5d77370959836;hb=185071b355f704ffe9072b3221eedbda78558dda;hp=663b056d01428a4520ac9a61edc5961c93bda24e;hpb=8f09a31746ca9b1450cce6106b89f9cfbf53e88f;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 663b056..1728307 100644 --- a/client/client.c +++ b/client/client.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** \file client.c @@ -146,7 +146,6 @@ static char scan_position[64]; static int scan_size = 20; static char cur_host[200]; static Odr_int last_hit_count = 0; - static int pretty_xml = 0; typedef enum { @@ -4366,6 +4365,8 @@ static void handle_srw_response(Z_SRW_searchRetrieveResponse *res) printf("Number of hits: " ODR_INT_PRINTF "\n", *res->numberOfRecords); if (res->facetList) display_facets(res->facetList); + if (res->suggestions) + printf("Suggestions:\n%s\n", res->suggestions); for (i = 0; inum_records; i++) handle_srw_record(res->records + i); }