From 3a438812118c13434159191a9973baded3e53235 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 7 May 2014 14:21:33 +0200 Subject: [PATCH] Bug 9612: Follow-up for elementSetName in Context.pm Content-Type: text/plain; charset=utf-8 Restore elementSetName to marcxml for dom indexing in Zconn (Context.pm). This prevents the need of rebuilding the index after restarting Zebra server. Removes the now incorrect reference to marcxml as 'superfluous' in four dom config files. Test plan: Rebuild zebra index with the zebra config of commit 036f2a50e11dab97ef8509f2f585c4cc407ea728. Go back to master. Install new zebra config. Restart your zebra server. Without this patch, you will have results without details. Apply this patch. Search results are fine (you did not rebuild!). --- C4/Context.pm | 2 +- etc/zebradb/authorities/etc/dom-config-marc.xml | 1 - etc/zebradb/authorities/etc/dom-config.xml | 1 - etc/zebradb/biblios/etc/dom-config-marc.xml | 1 - etc/zebradb/biblios/etc/dom-config.xml | 1 - 5 files changed, 1 insertions(+), 5 deletions(-) diff --git a/C4/Context.pm b/C4/Context.pm index 9a09784..9a7b75d 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -748,8 +748,8 @@ sub _new_Zconn { : 'usmarc'; } else { # $index_mode eq 'dom' - #we do not need an elementSetName $syntax = 'xml'; + $elementSetName = 'marcxml'; } my $host = $context->{'listen'}->{$server}->{'content'}; diff --git a/etc/zebradb/authorities/etc/dom-config-marc.xml b/etc/zebradb/authorities/etc/dom-config-marc.xml index 3c2e267..fb2bf64 100644 --- a/etc/zebradb/authorities/etc/dom-config-marc.xml +++ b/etc/zebradb/authorities/etc/dom-config-marc.xml @@ -33,7 +33,6 @@ Authorities DOM config for MARC ISO2709 input - diff --git a/etc/zebradb/authorities/etc/dom-config.xml b/etc/zebradb/authorities/etc/dom-config.xml index 3a2b886..a818810 100644 --- a/etc/zebradb/authorities/etc/dom-config.xml +++ b/etc/zebradb/authorities/etc/dom-config.xml @@ -33,7 +33,6 @@ Authorities DOM config for MARC XML input - diff --git a/etc/zebradb/biblios/etc/dom-config-marc.xml b/etc/zebradb/biblios/etc/dom-config-marc.xml index 60d25e2..8878b4f 100644 --- a/etc/zebradb/biblios/etc/dom-config-marc.xml +++ b/etc/zebradb/biblios/etc/dom-config-marc.xml @@ -33,7 +33,6 @@ Bibliographic DOM config for MARC ISO2709 input - diff --git a/etc/zebradb/biblios/etc/dom-config.xml b/etc/zebradb/biblios/etc/dom-config.xml index d475159..e6eb89f 100644 --- a/etc/zebradb/biblios/etc/dom-config.xml +++ b/etc/zebradb/biblios/etc/dom-config.xml @@ -33,7 +33,6 @@ Bibliographic DOM config for MARC XML input - -- 1.7.7.6