sru_z3950: set preferredRecordSyntax to XML for search
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 15 Aug 2011 13:48:16 +0000 (15:48 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 15 Aug 2011 13:48:16 +0000 (15:48 +0200)
src/filter_sru_to_z3950.cpp

index cf81f0b..140b346 100644 (file)
@@ -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,