From a23ecc6b77dc52f470608b7d6618a66296862343 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Thu, 4 Oct 2012 08:52:48 -0400 Subject: [PATCH] Bug 8665: DOM indexing fails to index some bib records Use a user-specified field for z:id. This patch also fixes an excess space before the index in the MARC21 biblio index definitions, which someone fixed in the generated file but not in the source file it should have been fixed in. Signed-off-by: Chris Cormack Signed-off-by: Elliott Davis Conflicts: etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl Signed-off-by: Chris Cormack --- .../authorities/authority-koha-indexdefs.xml | 1 + .../authorities/authority-zebra-indexdefs.xsl | 28 +++++++++++++++++-- .../marc21/biblios/biblio-koha-indexdefs.xml | 3 +- .../marc21/biblios/biblio-zebra-indexdefs.xsl | 6 ++-- .../unimarc/biblios/biblio-koha-indexdefs.xml | 1 + .../biblios/biblio-zebra-indexdefs.xsl | 6 ++-- etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl | 6 ++-- 7 files changed, 42 insertions(+), 9 deletions(-) diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml index f1013e18ca..48a8dc96a7 100644 --- a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml @@ -6,6 +6,7 @@ run the following command: authority-zebra-indexdefs.xsl` --> + marc:controlfield[@tag='001'] v x diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl index 631531633a..6b4f456db3 100644 --- a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl @@ -26,10 +26,10 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - + @@ -1102,6 +1102,30 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + -- + + + + + + + + + + + + + + diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml index 9219000a2f..14443d6cc4 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -1,6 +1,7 @@ + marc:datafield[@tag='999']/marc:subfield[@code='c'] llength:w @@ -1124,7 +1125,7 @@ - materials-specified :w + materials-specified:w diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl index 06b788211a..14f299edc3 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -13,6 +13,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + @@ -26,15 +27,16 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - + + 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 68704697d1..8eecf1cdfb 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml @@ -1,5 +1,6 @@ + marc:controlfield[@tag='001'] Local-number: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 feeda352b2..46e190fa61 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl @@ -13,6 +13,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + @@ -26,15 +27,16 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - + + diff --git a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl index 59cae26718..a51d28712a 100644 --- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl +++ b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl @@ -47,9 +47,11 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + + normalize-space() + - + -- 2.39.5