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> Conflicts: etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
a23ecc6b77
commit
ed81dc6844
|
|
@ -1102,7 +1102,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">
|
||||
|
|
|
|||
|
|
@ -281,6 +281,20 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
|||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<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)">
|
||||
<xsl:call-template name="handle-one-index-heading"/>
|
||||
</xsl:for-each>
|
||||
</xslo:if>
|
||||
</xslo:template>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="handle-one-data-field">
|
||||
<xsl:variable name="indexes">
|
||||
<xsl:call-template name="get-target-indexes"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue