X-Git-Url: http://git.indexdata.com/?p=mp-xquery-moved-to-github.git;a=blobdiff_plain;f=src%2Fmetaproxy_filter_xquery.cpp;h=51afacd9ece28bd78af62cfec9e234c9de31811d;hp=994139f6812096500e6d73c44a62554a8bba0d75;hb=d6f82db2046a3add7e0c59321f15a63b233c434b;hpb=faf0b40133276ba4d44e26b7b61d0a02a33f4ed2;ds=sidebyside diff --git a/src/metaproxy_filter_xquery.cpp b/src/metaproxy_filter_xquery.cpp index 994139f..51afacd 100644 --- a/src/metaproxy_filter_xquery.cpp +++ b/src/metaproxy_filter_xquery.cpp @@ -98,9 +98,8 @@ bool yf::XQuery::convert_one_record(const char *input_buf, lItem = lZorba->getItemFactory()->createString(it->second); lDynamicContext->setVariable(it->first, lItem); } - // TODO: Make tmp file here - lItem = lZorba->getItemFactory()->createString( - "/home/adam/proj/yaz/test/marc7.xml"); + std::string rec_content = "raw:" + std::string(input_buf, input_len); + lItem = lZorba->getItemFactory()->createString(rec_content); lDynamicContext->setVariable(zorba_record_variable, lItem); std::stringstream ss;