From 990c610a6a791fff480ba1053cea487901dd476c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 15 Aug 2011 15:48:16 +0200 Subject: [PATCH] sru_z3950: set preferredRecordSyntax to XML for search --- src/filter_sru_to_z3950.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/filter_sru_to_z3950.cpp b/src/filter_sru_to_z3950.cpp index cf81f0b..140b346 100644 --- a/src/filter_sru_to_z3950.cpp +++ b/src/filter_sru_to_z3950.cpp @@ -465,6 +465,9 @@ bool yf::SRUtoZ3950::Impl::z3950_search_request(mp::Package &package, Z_APDU *apdu = zget_APDU(odr_en, Z_APDU_searchRequest); Z_SearchRequest *z_searchRequest = apdu->u.searchRequest; + // RecordSyntax will always be XML + z_searchRequest->preferredRecordSyntax + = odr_oiddup(odr_en, yaz_oid_recsyn_xml); if (!mp_util::set_databases_from_zurl(odr_en, zurl, &z_searchRequest->num_databaseNames, -- 1.7.10.4