X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_zeerex_explain.cpp;h=3bd3fbe031787c6d1eb89567b8cd6e66999a8d48;hb=637a685d61a9ff0e3f398a59da426979815c4d68;hp=cd777c0aed1d46053ae041b637aac83ec52760ec;hpb=b70b9ec78f0ab1c3ed3b432de986159129a0e4ed;p=metaproxy-moved-to-github.git diff --git a/src/filter_zeerex_explain.cpp b/src/filter_zeerex_explain.cpp index cd777c0..3bd3fbe 100644 --- a/src/filter_zeerex_explain.cpp +++ b/src/filter_zeerex_explain.cpp @@ -1,7 +1,22 @@ -/* $Id: filter_zeerex_explain.cpp,v 1.4 2007-01-25 14:05:54 adam Exp $ +/* $Id: filter_zeerex_explain.cpp,v 1.6 2007-05-09 21:23:09 adam Exp $ Copyright (c) 2005-2007, Index Data. - See the LICENSE file for details +This file is part of Metaproxy. + +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 +Software Foundation; either version 2, or (at your option) any later +version. + +Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Metaproxy; see the file LICENSE. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. */ #include "config.hpp" @@ -140,7 +155,7 @@ void yf::ZeeRexExplain::Impl::process(mp::Package &package) char *charset = 0; char *stylesheet = 0; if (! (sru_pdu_req = mp_util::decode_sru_request(package, odr_de, odr_en, - sru_pdu_res, soap, + sru_pdu_res, &soap, charset, stylesheet))) { mp_util::build_sru_explain(package, odr_en, sru_pdu_res, @@ -152,13 +167,15 @@ void yf::ZeeRexExplain::Impl::process(mp::Package &package) } - if (sru_pdu_req->which != Z_SRW_explain_request){ + if (sru_pdu_req->which != Z_SRW_explain_request) + { // Let pass all other SRU actions package.move(); return; } // except valid SRU explain request, construct ZeeRex Explain response - else { + else + { Z_SRW_explainRequest *er_req = sru_pdu_req->u.explain_request; //mp_util::build_simple_explain(package, odr_en, sru_pdu_res, // sruinfo, er_req);