Bug 7818: add warning about not editing record.abs when using DOM filter
authorGalen Charlton <gmc@esilibrary.com>
Fri, 6 Apr 2012 15:26:12 +0000 (11:26 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Sat, 9 Jun 2012 09:44:14 +0000 (11:44 +0200)
This commit also updates the authority and biblio DOM indexing definition
XSL to include updated header comments.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl
etc/zebradb/marc_defs/marc21/authorities/record.abs
etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
etc/zebradb/marc_defs/marc21/biblios/record.abs

index aa02e70..6315316 100644 (file)
@@ -3,14 +3,15 @@
 This file has been automatically generated from a Koha index definition file
 with the stylesheet koha-indexdefs-to-zebra.xsl. Do not manually edit this file,
 as it may be overwritten. To regenerate, edit the appropriate Koha index
-definition file (probably something like authority-koha-indexdefs.xml) and run:
-`xsltproc koha-indexdefs-to-zebra.xsl authority-koha-indexdefs.xml >
-authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
+definition file (probably something like {biblio,authority}-koha-indexdefs.xml) and run:
+`xsltproc koha-indexdefs-to-zebra.xsl {biblio,authority}-koha-indexdefs.xml >
+{biblio,authority}-zebra-indexdefs.xsl` (substituting the appropriate file names).
 -->
 <xslo:stylesheet xmlns:xslo="http://www.w3.org/1999/XSL/Transform" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:z="http://indexdata.com/zebra-2.0" xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs" version="1.0">
   <xslo:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
   <xslo:template match="text()"/>
   <xslo:template match="text()" mode="index_subfields"/>
+  <xslo:template match="text()" mode="index_data_field"/>
   <xslo:template match="text()" mode="index_heading"/>
   <xslo:template match="text()" mode="index_match_heading"/>
   <xslo:template match="text()" mode="index_subject_thesaurus"/>
@@ -32,6 +33,7 @@ authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
       </xslo:attribute>
       <xslo:apply-templates/>
       <xslo:apply-templates mode="index_subfields"/>
+      <xslo:apply-templates mode="index_data_field"/>
       <xslo:apply-templates mode="index_heading"/>
       <xslo:apply-templates mode="index_match_heading"/>
       <xslo:apply-templates mode="index_subject_thesaurus"/>
index 23d75a2..c503847 100644 (file)
@@ -1,3 +1,11 @@
+#
+# NOTE: If you are using the DOM index filter, this configuration file is
+#       *not* used.  To update the index definitions for the DOM filter,
+#       edit authority-koha-indexdefs.xml and run
+#       xsltproc ../../../xsl/koha-indexdefs-to-zebra.xsl \
+#                authority-koha-indexdefs.xml \
+#                > authority-zebra-indexdefs.xsl
+#
 # This is a fairly simple set of MARC21 Authority indexing rules
 encoding utf-8
 name authorities
index c8e4fde..4918719 100644 (file)
@@ -3,9 +3,9 @@
 This file has been automatically generated from a Koha index definition file
 with the stylesheet koha-indexdefs-to-zebra.xsl. Do not manually edit this file,
 as it may be overwritten. To regenerate, edit the appropriate Koha index
-definition file (probably something like authority-koha-indexdefs.xml) and run:
-`xsltproc koha-indexdefs-to-zebra.xsl authority-koha-indexdefs.xml >
-authority-zebra-indexdefs.xsl` (substituting the appropriate file names).
+definition file (probably something like {biblio,authority}-koha-indexdefs.xml) and run:
+`xsltproc koha-indexdefs-to-zebra.xsl {biblio,authority}-koha-indexdefs.xml >
+{biblio,authority}-zebra-indexdefs.xsl` (substituting the appropriate file names).
 -->
 <xslo:stylesheet xmlns:xslo="http://www.w3.org/1999/XSL/Transform" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:z="http://indexdata.com/zebra-2.0" xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs" version="1.0">
   <xslo:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
index b61903f..c4a95da 100644 (file)
@@ -1,3 +1,11 @@
+#
+# NOTE: If you are using the DOM index filter, this configuration file is
+#       *not* used.  To update the index definitions for the DOM filter,
+#       edit biblio-koha-indexdefs.xml and run
+#       xsltproc ../../../xsl/koha-indexdefs-to-zebra.xsl \
+#                biblio-koha-indexdefs.xml \
+#                > biblio-zebra-indexdefs.xsl
+#
 # This is a fairly simple example of a set of MARC21 indexing rules. It
 # results in a server which provides a passable Bath level 0 and 1 service
 # (author, title, subject, keyword and exact services). Feel free to