From: Adam Dickmeiss Date: Fri, 20 Dec 2013 10:12:13 +0000 (+0100) Subject: yaz-client: Loosen NS check for SRU YAZ-716 X-Git-Tag: v5.0.9~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=a2ee2bb752aefcfcec36b8880982a50c9ba1e4ff;p=yaz-moved-to-github.git yaz-client: Loosen NS check for SRU YAZ-716 --- diff --git a/client/client.c b/client/client.c index 8385a5b..71c3910 100644 --- a/client/client.c +++ b/client/client.c @@ -4328,10 +4328,7 @@ struct timeval tv_start; static void handle_srw_record(Z_SRW_record *rec) { if (rec->recordPosition) - { printf("pos=" ODR_INT_PRINTF, *rec->recordPosition); - setno = *rec->recordPosition + 1; - } if (rec->recordSchema) printf(" schema=%s", rec->recordSchema); printf("\n"); @@ -4385,6 +4382,7 @@ static void handle_srw_response(Z_SRW_searchRetrieveResponse *res) } handle_srw_record(res->records + i); } + setno += res->num_records; } static void handle_srw_scan_term(Z_SRW_scanTerm *term) @@ -4468,6 +4466,7 @@ static void http_response(Z_HTTP_Response *hres) {YAZ_XMLNS_SRU_v2_mask, 0, (Z_SOAP_fun) yaz_srw_codec}, {YAZ_XMLNS_UPDATE_v0_9, 0, (Z_SOAP_fun) yaz_ucp_codec}, {YAZ_XMLNS_SRU_v1_response, 0, (Z_SOAP_fun) yaz_srw_codec}, + {"searchRetrieveResponse", 0, (Z_SOAP_fun) yaz_srw_codec}, {0, 0, 0} }; ret = z_soap_codec(o, &soap_package,