Bug 8665 follow-up: add missing line to XSLT
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 25 Oct 2012 18:00:42 +0000 (14:00 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 29 Oct 2012 18:12:41 +0000 (19:12 +0100)
The DOM transformer was missing a line from a previous development,
resulting in the MARC21 authorities DOM indexing stylesheet being
regenerated with a missing line. This patch readds the missing line
to the transformer, and provides the corrected authority-zebra-indexdefs.

Signed-off-by: Elliott Davis <elliott@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl
etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl

index 5c80c2c..02509b3 100644 (file)
@@ -1122,7 +1122,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
       <xslo:value-of select="normalize-space($raw_heading)"/>
     </z:index>
   </xslo:template>
-  <xslo:template mode="index_heading_conditional">
+  <xslo:template mode="index_heading_conditional" match="marc:datafield[@tag='450']">
     <xslo:if test="substring(marc:subfield[@code='w']/text(), 2, 1)">
       <z:index name="Previous-heading-see-from:p">
         <xslo:variable name="raw_heading">
index 47c47a7..42b334f 100644 (file)
@@ -288,6 +288,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
     <xsl:template name="handle-index-heading-conditional">
         <xsl:for-each select="//kohaidx:index_heading_conditional[generate-id() = generate-id(key('index_heading_conditional_tag', @tag)[1])]">
             <xslo:template mode="index_heading_conditional">
+                <xsl:attribute name="match">marc:datafield[@tag='<xsl:value-of select="@tag"/>']</xsl:attribute>
                 <xslo:if>
                     <xsl:attribute name="test"><xsl:value-of select="@test"/></xsl:attribute>
                     <xsl:for-each select="key('index_heading_conditional_tag', @tag)">