From 7d9b4d58e381d26c46c556105fd26ca4b8908e31 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 --- .../marc21/authorities/authority-koha-indexdefs.xml | 1 + .../marc21/authorities/authority-zebra-indexdefs.xsl | 6 +++--- .../marc_defs/marc21/biblios/biblio-koha-indexdefs.xml | 3 ++- .../marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl | 6 ++++-- .../marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml | 1 + .../marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl | 6 ++++-- etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl | 6 ++++-- 7 files changed, 19 insertions(+), 10 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 4599728f51..5a34eb261d 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 1bafa16f69..5c80c2c8f4 100644 --- a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl @@ -27,10 +27,10 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - + @@ -1122,7 +1122,7 @@ 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 2316d3fef5..47c47a7c4f 100644 --- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl +++ b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl @@ -49,9 +49,11 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + + normalize-space() + - + -- 2.39.5