X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Fclient.c;h=c9351d2fa8c3432b2cbdb3b2b99820073974aef6;hb=5b2fe23e1cffff1c658bdfe26fddc3f84256e7f4;hp=0e55021ab3cf3cc50872e03de894614040c0a75b;hpb=55af198a15d393b37618e3732ab0825ddc201469;p=yaz-moved-to-github.git diff --git a/client/client.c b/client/client.c index 0e55021..c9351d2 100644 --- a/client/client.c +++ b/client/client.c @@ -284,7 +284,7 @@ int send_apdu(Z_APDU *a) do_hex_dump(buf, len); if (cs_put(conn, buf, len) < 0) { - fprintf(stderr, "cs_put: %s", cs_errmsg(cs_errno(conn))); + fprintf(stderr, "cs_put: %s\n", cs_errmsg(cs_errno(conn))); close_session(); return 0; } @@ -4315,6 +4315,9 @@ static void handle_srw_response(Z_SRW_searchRetrieveResponse *res) } if (res->numberOfRecords) printf("Number of hits: " ODR_INT_PRINTF "\n", *res->numberOfRecords); + if (res->facetList) { + display_facets(res->facetList); + } for (i = 0; inum_records; i++) handle_srw_record(res->records + i); }