X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fsrwutil.c;h=2b6e0991aae39cc5051a7127ba31a46a834320e5;hb=d48a2b1b196d0964a538ba6684886f86036dce14;hp=2cf49c30a9475888e079b59c7afa7060bd5f30be;hpb=f48b453627a7d8f2110fda172592fcefa8ed5005;p=yaz-moved-to-github.git diff --git a/src/srwutil.c b/src/srwutil.c index 2cf49c3..2b6e099 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -296,7 +296,9 @@ int yaz_srw_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, *srw_pdu = (Z_SRW_PDU*) (*soap_package)->u.generic->p; yaz_srw_decodeauth(*srw_pdu, hreq, 0, 0, decode); - if ((*soap_package)->u.generic->no == 3) /* SRU 2 ! */ + /* last entry in handlers - SRU 2.0 - is turned into + offset 0.. due to other pieces relying on it */ + if ((*soap_package)->u.generic->no == 3) (*soap_package)->u.generic->no = 0; if ((*srw_pdu)->which == Z_SRW_searchRetrieve_request && (*srw_pdu)->u.request->database == 0) @@ -909,7 +911,7 @@ static int yaz_get_sru_parms(const Z_SRW_PDU *srw_pdu, ODR encode, yaz_add_name_value_str(encode, name, value, &i, "x-pquery", srw_pdu->u.request->query); } - else if (!strcmp(queryType, "pqf")) + else if (!strcmp(queryType, "xcql")) { yaz_add_name_value_str(encode, name, value, &i, "x-cql", srw_pdu->u.request->query);