From 6a28b9c6f3461bfc4dc16e85dcff653fca664fdd 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 --- 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