From: Adam Dickmeiss Date: Wed, 4 Sep 2013 08:13:36 +0000 (+0200) Subject: Proper scan SRU encoding X-Git-Tag: v5.0.0~65 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=2caef65db3a7a290fd2fff36910bc19e70a880a3;p=yaz-moved-to-github.git Proper scan SRU encoding --- diff --git a/src/srwutil.c b/src/srwutil.c index 2b6e099..4eb9573 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -967,14 +967,14 @@ static int yaz_get_sru_parms(const Z_SRW_PDU *srw_pdu, ODR encode, break; case Z_SRW_scan_request: value[i++] = "scan"; - queryType = srw_pdu->u.request->queryType; + queryType = srw_pdu->u.scan_request->queryType; if (version2) { if (queryType && strcmp(queryType, "cql")) yaz_add_name_value_str(encode, name, value, &i, "queryType", queryType); - yaz_add_name_value_str(encode, name, value, &i, "query", - srw_pdu->u.request->query); + yaz_add_name_value_str(encode, name, value, &i, "scanClause", + srw_pdu->u.scan_request->scanClause); } else {