<fieldmap cql="dc.source" ccl="src"/>
<fieldmap cql="dc.publisher" ccl="pub"/><!-- POLARIS -->
<fieldmap cql="id.seriesTitle" ccl="series-ti"/>
+
+ <cclmap>
+ <qual name="ocn">
+ <attr type="1" value="12"/>
+ </qual>
+ </cclmap>
</filter>
</filters>
<routes>
#include "config.hpp"
#include "filter_zoom.hpp"
#include <yaz/zoom.h>
+#include <yaz/yaz-version.h>
#include <yaz/srw.h>
#include <metaproxy/package.hpp>
#include <metaproxy/util.hpp>
bool use_turbomarc;
bool piggyback;
CCL_bibset ccl_bibset;
- Searchable();
+ Searchable(CCL_bibset base);
~Searchable();
};
class Zoom::Backend : boost::noncopyable {
return ZOOM_connection_option_get(m_connection, name);
}
-yf::Zoom::Searchable::Searchable()
+yf::Zoom::Searchable::Searchable(CCL_bibset base)
{
piggyback = true;
use_turbomarc = true;
- ccl_bibset = ccl_qual_mk();
+ ccl_bibset = ccl_qual_dup(base);
}
yf::Zoom::Searchable::~Searchable()
continue;
if (!strcmp((const char *) ptr2->name, "layer"))
{
- Zoom::SearchablePtr s(new Searchable);
+ Zoom::SearchablePtr s(new Searchable(bibset));
const xmlNode *ptr3 = ptr2;
for (ptr3 = ptr3->children; ptr3; ptr3 = ptr3->next)
if (cql_field.length())
fieldmap[cql_field] = ccl_field;
}
- else if (!strcmp((const char *) ptr->name, "records"))
- {
- yaz_log(YLOG_WARN, "records ignored!");
- }
else
{
throw mp::filter::FilterException