Bug 8665 follow-up: add missing line to XSLT

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>
This commit is contained in:
Jared Camins-Esakov 2012-10-25 14:00:42 -04:00 committed by Paul Poulain
parent 7d9b4d58e3
commit 510a2397fb
2 changed files with 2 additions and 1 deletions

View 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">

View 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)">