From: Adam Dickmeiss Date: Fri, 10 Aug 2012 08:41:48 +0000 (+0200) Subject: sru_z3950: SRU response has same version as request X-Git-Tag: v1.3.41~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=81d733c7014f85212ff844b8d6e0e2f2bb569022;p=metaproxy-moved-to-github.git sru_z3950: SRU response has same version as request --- diff --git a/src/filter_sru_to_z3950.cpp b/src/filter_sru_to_z3950.cpp index 09b48b1..4fdc80b 100644 --- a/src/filter_sru_to_z3950.cpp +++ b/src/filter_sru_to_z3950.cpp @@ -264,7 +264,8 @@ void yf::SRUtoZ3950::Impl::sru(mp::Package &package, Z_GDU *zgdu_req) { // searchRetrieve Z_SRW_searchRetrieveRequest *sr_req = sru_pdu_req->u.request; - sru_pdu_res = yaz_srw_get(odr_en, Z_SRW_searchRetrieve_response); + sru_pdu_res = yaz_srw_get_pdu(odr_en, Z_SRW_searchRetrieve_response, + sru_pdu_req->srw_version); // checking that we have a query ok = mp_util::check_sru_query_exists(package, odr_en, @@ -291,7 +292,8 @@ void yf::SRUtoZ3950::Impl::sru(mp::Package &package, Z_GDU *zgdu_req) else if (sru_pdu_req->which == Z_SRW_scan_request && sru_pdu_req->u.scan_request) { - sru_pdu_res = yaz_srw_get(odr_en, Z_SRW_scan_response); + sru_pdu_res = yaz_srw_get_pdu(odr_en, Z_SRW_scan_response, + sru_pdu_req->srw_version); // we do not do scan at the moment, therefore issuing a diagnostic yaz_add_srw_diagnostic(odr_en,