<target_index>Subject:w</target_index>
<target_index>Subject:p</target_index>
</index_data_field>
+ <index_subfields tag="648" subfields="9">
+ <target_index>Koha-Auth-Number:w</target_index>
+ </index_subfields>
<!--record.abs line 177: melm 650$9 Koha-Auth-Number -->
<index_subfields tag="650" subfields="9">
<target_index>Koha-Auth-Number:w</target_index>
</xslo:if>
</xslo:for-each>
</xslo:template>
+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='648']">
+ <xslo:for-each select="marc:subfield">
+ <xslo:if test="contains('9', @code)">
+ <z:index name="Koha-Auth-Number:w">
+ <xslo:value-of select="."/>
+ </z:index>
+ </xslo:if>
+ </xslo:for-each>
+ </xslo:template>
<xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
<xslo:for-each select="marc:subfield">
<xslo:if test="contains('9', @code)">
<target_index>Subject:w</target_index>
<target_index>Subject:p</target_index>
</index_data_field>
+ <index_subfields tag="648" subfields="9">
+ <target_index>Koha-Auth-Number:w</target_index>
+ </index_subfields>
<!--record.abs line 199: melm 650$9 Koha-Auth-Number-->
<index_subfields tag="650" subfields="9">
<target_index>Koha-Auth-Number:w</target_index>
<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="/">
<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"/>
</z:record>
</xslo:template>
<xslo:template match="marc:leader">
</xslo:if>
</xslo:for-each>
</xslo:template>
+ <xslo:template mode="index_subfields" match="marc:datafield[@tag='648']">
+ <xslo:for-each select="marc:subfield">
+ <xslo:if test="contains('9', @code)">
+ <z:index name="Koha-Auth-Number:w">
+ <xslo:value-of select="."/>
+ </z:index>
+ </xslo:if>
+ </xslo:for-each>
+ </xslo:template>
<xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
<xslo:for-each select="marc:subfield">
<xslo:if test="contains('9', @code)">
<xslo:value-of select="."/>
</z:index>
</xslo:template>
+ <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
+ <xslo:variable name="chop">
+ <xslo:choose>
+ <xslo:when test="not(number(@ind2))">0</xslo:when>
+ <xslo:otherwise>
+ <xslo:value-of select="number(@ind2)"/>
+ </xslo:otherwise>
+ </xslo:choose>
+ </xslo:variable>
+ <z:index name="Title:s">
+ <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
+ </z:index>
+ </xslo:template>
<xslo:template name="chopPunctuation">
<xslo:param name="chopString"/>
<xslo:variable name="length" select="string-length($chopString)"/>