<id>z-local</id>
<zurl>localhost:9999/db01</zurl>
<queryEncoding>iso-8859-1</queryEncoding>
- <useTurboMarc>1</useTurboMarc>
<elementSet>F</elementSet>
<requestSyntax>MARC21</requestSyntax>
<recordEncoding>MARC-8</recordEncoding>
<transform>tmarc.xsl</transform>
+ <authentication>a/b</authentication>
<cclmap_term>u=1016 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_term>
<cclmap_au>u=1003 2=3 s=al s=pw t=l,r 6=1</cclmap_au>
<cclmap_ti>u=4 2=3 3=3 s=al s=pw t=l,r 6=1</cclmap_ti>
namespace metaproxy_1 {
namespace filter {
struct Zoom::Searchable : boost::noncopyable {
+ std::string authentication;
std::string database;
std::string target;
std::string query_encoding;
{
if (ptr3->type != XML_ELEMENT_NODE)
continue;
- if (!strcmp((const char *) ptr3->name, "id"))
+ if (!strcmp((const char *) ptr3->name,
+ "authentication"))
+ {
+ s->authentication = mp::xml::get_text(ptr3);
+ }
+ else if (!strcmp((const char *) ptr3->name, "id"))
{
s->database = mp::xml::get_text(ptr3);
}
if (sptr->query_encoding.length())
b->set_option("rpnCharset", sptr->query_encoding.c_str());
+ if (sptr->authentication.length())
+ b->set_option("user", sptr->authentication.c_str());
+
std::string url;
if (sptr->sru.length())
{