projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zoom: new TARGET profile setting: SRUVersion
[metaproxy-moved-to-github.git]
/
src
/
filter_zoom.cpp
diff --git
a/src/filter_zoom.cpp
b/src/filter_zoom.cpp
index
914cde3
..
3fd7e04
100644
(file)
--- a/
src/filter_zoom.cpp
+++ b/
src/filter_zoom.cpp
@@
-64,6
+64,7
@@
namespace metaproxy_1 {
std::string target;
std::string query_encoding;
std::string sru;
std::string target;
std::string query_encoding;
std::string sru;
+ std::string sru_version;
std::string request_syntax;
std::string element_set;
std::string record_encoding;
std::string request_syntax;
std::string element_set;
std::string record_encoding;
@@
-425,6
+426,10
@@
yf::Zoom::SearchablePtr yf::Zoom::Impl::parse_torus_record(const xmlNode *ptr)
{
s->sru = mp::xml::get_text(ptr);
}
{
s->sru = mp::xml::get_text(ptr);
}
+ else if (!strcmp((const char *) ptr->name, "SRUVersion"))
+ {
+ s->sru_version = mp::xml::get_text(ptr);
+ }
else if (!strcmp((const char *) ptr->name,
"queryEncoding"))
{
else if (!strcmp((const char *) ptr->name,
"queryEncoding"))
{
@@
-960,6
+965,9
@@
yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases(
{
url = "http://" + sptr->target;
b->set_option("sru", sptr->sru);
{
url = "http://" + sptr->target;
b->set_option("sru", sptr->sru);
+
+ if (sptr->sru_version.length())
+ b->set_option("sru_version", sptr->sru_version);
}
else
{
}
else
{