From ed11bc4976b4ab91eb399455f5c2f4940d136eca Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 25 Mar 2014 09:46:43 +0100 Subject: [PATCH] query_rewrite: pass-thru non Type-1 queries MP-527 --- src/filter_query_rewrite.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/filter_query_rewrite.cpp b/src/filter_query_rewrite.cpp index 9fe00bf..4828781 100644 --- a/src/filter_query_rewrite.cpp +++ b/src/filter_query_rewrite.cpp @@ -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); -- 1.7.10.4