query_rewrite: pass-thru non Type-1 queries MP-527
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 25 Mar 2014 08:46:43 +0000 (09:46 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 25 Mar 2014 08:46:43 +0000 (09:46 +0100)
src/filter_query_rewrite.cpp

index 9fe00bf..4828781 100644 (file)
@@ -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);