From: Adam Dickmeiss Date: Sun, 21 Oct 2007 19:39:00 +0000 (+0000) Subject: Fixed bug #1796: MARC parse errors when using mod_dom on scan. X-Git-Tag: ZEBRA.2.0.20~111 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=f613e5baf878c308d24808fa279145269fc2490a;p=idzebra-moved-to-github.git Fixed bug #1796: MARC parse errors when using mod_dom on scan. --- diff --git a/index/mod_dom.c b/index/mod_dom.c index 864529a..4d8b02d 100644 --- a/index/mod_dom.c +++ b/index/mod_dom.c @@ -1,4 +1,4 @@ -/* $Id: mod_dom.c,v 1.39 2007-08-31 07:02:24 adam Exp $ +/* $Id: mod_dom.c,v 1.40 2007-10-21 19:39:00 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -1306,10 +1306,13 @@ static int filter_extract(void *clientData, struct recExtractCtrl *p) return RECCTRL_EXTRACT_ERROR_GENERIC; odr_reset(tinfo->odr_record); + + if (p->setStoreData == 0) + return extract_xml_full(tinfo, input, p); switch(input->type) { case DOM_INPUT_XMLREADER: - if (input->u.xmlreader.split_level == 0 || p->setStoreData == 0) + if (input->u.xmlreader.split_level == 0) return extract_xml_full(tinfo, input, p); else return extract_xml_split(tinfo, input, p);