projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12f0ce0
)
sru_z3950: set preferredRecordSyntax to XML for search
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 15 Aug 2011 13:48:16 +0000
(15:48 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 15 Aug 2011 13:48:16 +0000
(15:48 +0200)
src/filter_sru_to_z3950.cpp
patch
|
blob
|
history
diff --git
a/src/filter_sru_to_z3950.cpp
b/src/filter_sru_to_z3950.cpp
index
cf81f0b
..
140b346
100644
(file)
--- 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,