From: Adam Dickmeiss Date: Mon, 15 Aug 2011 13:49:22 +0000 (+0200) Subject: session_shared: relay preferredRecordSyntax for search X-Git-Tag: v1.3.6~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b468b79801ad1e8ee16e9fa0a95c54abbb9181ff;p=metaproxy-moved-to-github.git session_shared: relay preferredRecordSyntax for search --- diff --git a/src/filter_session_shared.cpp b/src/filter_session_shared.cpp index c243dea..98d4497 100644 --- a/src/filter_session_shared.cpp +++ b/src/filter_session_shared.cpp @@ -528,6 +528,10 @@ bool yf::SessionShared::BackendSet::search( for (; it != m_databases.end(); it++) req->databaseNames[i++] = odr_strdup(odr, it->c_str()); + if (frontend_apdu->which == Z_APDU_searchRequest) + req->preferredRecordSyntax = + frontend_apdu->u.searchRequest->preferredRecordSyntax; + search_package.request() = apdu_req; search_package.move();