From 81d733c7014f85212ff844b8d6e0e2f2bb569022 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 10 Aug 2012 10:41:48 +0200 Subject: [PATCH] sru_z3950: SRU response has same version as request --- src/filter_sru_to_z3950.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 1.7.10.4