<xslo:template match="text()" mode="index_heading_conditional"/>
<xslo:template match="text()" mode="index_match_heading"/>
<xslo:template match="text()" mode="index_subject_thesaurus"/>
- <xslo:template match="text()" mode="index_sort_tit"/>
+ <xslo:template match="text()" mode="index_sort_title"/>
<xslo:template match="/">
<xslo:if test="marc:collection">
<collection>
<xslo:apply-templates mode="index_match_heading"/>
<xslo:apply-templates mode="index_subject_thesaurus"/>
<xslo:apply-templates mode="index_all"/>
- <xslo:apply-templates mode="index_sort_tit"/>
+ <xslo:apply-templates mode="index_sort_title"/>
</z:record>
</xslo:template>
<xslo:template match="marc:leader">
</z:index>
</xslo:if>
</xslo:template>
- <xslo:template mode="index_all" match="text()">
- <z:index name="Any:w Any:p">
- <xslo:value-of select="."/>
- </z:index>
- </xslo:template>
- <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
+ <xslo:template mode="index_sort_title" match="marc:datafield[@tag='245']">
<xslo:variable name="chop">
<xslo:choose>
<xslo:when test="not(number(@ind2))">0</xslo:when>
<xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
</z:index>
</xslo:template>
+ <xslo:template mode="index_all" match="text()">
+ <z:index name="Any:w Any:p">
+ <xslo:value-of select="."/>
+ </z:index>
+ </xslo:template>
<xslo:template name="chopPunctuation">
<xslo:param name="chopString"/>
<xslo:variable name="length" select="string-length($chopString)"/>