From 78415272bfce1075587fccf8304f9cecaed0d969 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 28 Oct 2014 21:07:43 -0300 Subject: [PATCH] Bug 13163: NORMARC DOM config missing entry This patch fixes the biblio-koha-indexdefs.xml for NORMARC, so it includes the element. Because of how our DOM files work, the resulting biblio-zebra-indexdefs.xsl for NORMARC picked the whole MARC record as ID, so every time the record was edited, the id wouldn't match and a new record was created. To test: - Have a MARCXML record - run: $ xsltproc etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl the_record | less => FAIL: verify the z:id property on the line contains all subfields concatenated - Apply the patch - re-run the xsltproc line => SUCCESS: z:id contains the 999$c number - Sign off :-D Regards Signed-off-by: Frederic Demians Known bug with DOM: Without indexing biblionumber Zebra hasn't it record unique ID, and so fails to identify existing records. Works as described. 999$c is linked to biblionumber in default Normarc framework. Signed-off-by: Magnus Enger I have applied the patch to my production server, and at least one customer has confirmed that it fixes the problem with multiple copies of records in search results. --- etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml | 1 + etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml index d2aef1a..5ce689f 100644 --- a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml @@ -1,6 +1,7 @@ + marc:datafield[@tag='999']/marc:subfield[@code='c'] llength:w diff --git a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl index 064c8a8..56d006b 100644 --- a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl @@ -28,7 +28,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + -- 1.9.1