X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_query_rewrite.cpp;h=4828781d41329755165253fd9015be1dfb230d73;hb=c346e86f9e0b0414757f89aba11f7b37e3b12ac2;hp=e6a21b0e466f588f5309e2270e64e4cf5f843409;hpb=8ced8e7b5de3ecba12ac68ce5c5e8cddf40d800f;p=metaproxy-moved-to-github.git diff --git a/src/filter_query_rewrite.cpp b/src/filter_query_rewrite.cpp index e6a21b0..4828781 100644 --- a/src/filter_query_rewrite.cpp +++ b/src/filter_query_rewrite.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2013 Index Data + Copyright (C) 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 @@ -101,12 +101,7 @@ void yf::QueryRewrite::Rep::process(mp::Package &package) const xmlDocPtr doc_input = 0; yaz_query2xml(req->query, &doc_input); - if (!doc_input) - { - error_code = YAZ_BIB1_MALFORMED_QUERY; - addinfo = "converion from Query to XML failed"; - } - else + if (doc_input) { xmlDocPtr doc_res = xsltApplyStylesheet(m_stylesheet, doc_input, 0);