From: Adam Dickmeiss Date: Thu, 21 Jul 2011 13:57:19 +0000 (+0200) Subject: record_transform: using configure path for XSL load X-Git-Tag: v1.2.10~6 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3173ed849a3f4d91b17e693d9c27ac38e930ef4e;p=metaproxy-moved-to-github.git record_transform: using configure path for XSL load --- diff --git a/src/filter_record_transform.cpp b/src/filter_record_transform.cpp index 8e43e1e..87fdf87 100644 --- a/src/filter_record_transform.cpp +++ b/src/filter_record_transform.cpp @@ -39,7 +39,7 @@ namespace metaproxy_1 { Impl(); ~Impl(); void process(metaproxy_1::Package & package) const; - void configure(const xmlNode * xml_node); + void configure(const xmlNode * xml_node, const char *path); private: yaz_retrieval_t m_retrieval; }; @@ -59,7 +59,7 @@ yf::RecordTransform::~RecordTransform() void yf::RecordTransform::configure(const xmlNode *xmlnode, bool test_only, const char *path) { - m_p->configure(xmlnode); + m_p->configure(xmlnode, path); } void yf::RecordTransform::process(mp::Package &package) const @@ -84,11 +84,10 @@ yf::RecordTransform::Impl::~Impl() yaz_retrieval_destroy(m_retrieval); } -void yf::RecordTransform::Impl::configure(const xmlNode *xml_node) +void yf::RecordTransform::Impl::configure(const xmlNode *xml_node, + const char *path) { - //const char *srcdir = getenv("srcdir"); - //if (srcdir) - // yaz_retrieval_set_path(m_retrieval, srcdir); + yaz_retrieval_set_path(m_retrieval, path); if (!xml_node) throw mp::XMLError("RecordTransform filter config: empty XML DOM");