From 9e623e2f40ba77801258b4961be4002b33fa01b7 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Wed, 17 Apr 2013 11:40:06 +0200 Subject: [PATCH] [SIGNED-OF] Bug 10037 : item index is broken in UNIMARC DOM indexing In UNIMARC DOM indexing, "item" index is working only for subfields of 995 field mapped with specific indexes, and also in index (ex : $a, $b...) It is not working for the other subfields (ex : $g), because a comment from record.abs was integrated in DOM config files. This patch removes the comment. To test, in a DOM UNIMARC environment : 1) in a item, write some value "Test10037" in 995$g 2) search for this value in simple search, this way : item=Test10037 => you should have no results 3) apply the patch. if necessary, copy the modified src/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml and src/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl into the /etc/... directory in your main Koha directory 4) reindex zebra biblios 5) do the same search as 2) => you should have one result Signed-off-by: Bernardo Gonzalez Kriegel Work as described. No koha-qa errors. Test NOTE: default UNIMARC framework don't have 995g, so I must add it first. 1) Added test string to 995b on some record 2) Reindex and search as indicated, no results 3) cp files to destination 4) reindex 5) search and result ok ! --- .../unimarc/biblios/biblio-koha-indexdefs.xml | 2 +- .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml index ceaba51..7c834d9 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml @@ -1575,7 +1575,7 @@ - item # just to index every subfield:w + item:w diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl index f1e82e3..3c16d50 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl @@ -2868,7 +2868,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + -- 1.7.9.5