X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=23b59e4fb8e0edef3bb50fcf4828397f88b3a3c4;hb=2dbb55981b7169e8e3957e2ea2ea3f7fd5aea530;hp=782505934dc5b724192c22198a202581d8228730;hpb=3423bbadcfd00b7965e7b4728adc4bc274e5bae4;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 7825059..23b59e4 100644 --- a/client/client.c +++ b/client/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 { @@ -1699,14 +1698,14 @@ static void display_facet(Z_FacetField *facet) struct yaz_facet_attr attr_values; attr_values.errcode = 0; attr_values.limit = -1; - attr_values.useattr = 0; + attr_values.useattr = "NONE"; attr_values.relation = "default"; yaz_facet_attr_get_z_attributes(al, &attr_values); if (!attr_values.errcode) { int term_index; - printf(" %s (%d): \n", attr_values.useattr, /* attr_values.relation, attr_values.limit, */ facet->num_terms); + printf(" %s (%d): \n", attr_values.useattr, facet->num_terms); for (term_index = 0 ; term_index < facet->num_terms; term_index++) { Z_FacetTerm *facetTerm = facet->terms[term_index]; @@ -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); }