From f613e5baf878c308d24808fa279145269fc2490a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 21 Oct 2007 19:39:00 +0000 Subject: [PATCH] Fixed bug #1796: MARC parse errors when using mod_dom on scan. --- index/mod_dom.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 1.7.10.4