X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ffilter_record_transform.cpp;h=e3b1dd7949a44d395379aa3d2f519e722cd7f159;hb=4fabbaa1f81fc6f5dabd8444a000d6a0020e85f7;hp=87fdf87dab1400ab9c3c856c5b6570c9ecd596f4;hpb=3173ed849a3f4d91b17e693d9c27ac38e930ef4e;p=metaproxy-moved-to-github.git diff --git a/src/filter_record_transform.cpp b/src/filter_record_transform.cpp index 87fdf87..e3b1dd7 100644 --- a/src/filter_record_transform.cpp +++ b/src/filter_record_transform.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2011 Index Data + Copyright (C) 2005-2012 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -105,7 +105,8 @@ void yf::RecordTransform::Impl::configure(const xmlNode *xml_node, } // read configuration - if ( 0 != yaz_retrieval_configure(m_retrieval, retrieval_node)){ + if (0 != yaz_retrieval_configure(m_retrieval, retrieval_node)) + { std::string msg("RecordTransform filter config: "); msg += yaz_retrieval_get_error(m_retrieval); throw mp::XMLError(msg); @@ -140,11 +141,13 @@ void yf::RecordTransform::Impl::process(mp::Package &package) const const char *input_schema = 0; Odr_oid *input_syntax = 0; - if(pr_req->recordComposition){ + if (pr_req->recordComposition) + { input_schema = mp_util::record_composition_to_esn(pr_req->recordComposition); } - if(pr_req->preferredRecordSyntax){ + if (pr_req->preferredRecordSyntax) + { input_syntax = pr_req->preferredRecordSyntax; }