Lines 17-22
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
17 |
<xslo:template match="text()" mode="index_heading_conditional"/> |
17 |
<xslo:template match="text()" mode="index_heading_conditional"/> |
18 |
<xslo:template match="text()" mode="index_match_heading"/> |
18 |
<xslo:template match="text()" mode="index_match_heading"/> |
19 |
<xslo:template match="text()" mode="index_subject_thesaurus"/> |
19 |
<xslo:template match="text()" mode="index_subject_thesaurus"/> |
|
|
20 |
<xslo:template match="text()" mode="index_sort_tit"/> |
20 |
<xslo:template match="/"> |
21 |
<xslo:template match="/"> |
21 |
<xslo:if test="marc:collection"> |
22 |
<xslo:if test="marc:collection"> |
22 |
<collection> |
23 |
<collection> |
Lines 42-47
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
42 |
<xslo:apply-templates mode="index_match_heading"/> |
43 |
<xslo:apply-templates mode="index_match_heading"/> |
43 |
<xslo:apply-templates mode="index_subject_thesaurus"/> |
44 |
<xslo:apply-templates mode="index_subject_thesaurus"/> |
44 |
<xslo:apply-templates mode="index_all"/> |
45 |
<xslo:apply-templates mode="index_all"/> |
|
|
46 |
<xslo:apply-templates mode="index_sort_tit"/> |
45 |
</z:record> |
47 |
</z:record> |
46 |
</xslo:template> |
48 |
</xslo:template> |
47 |
<xslo:template match="marc:leader"> |
49 |
<xslo:template match="marc:leader"> |
Lines 297-303
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
297 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='245']"> |
299 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='245']"> |
298 |
<xslo:for-each select="marc:subfield"> |
300 |
<xslo:for-each select="marc:subfield"> |
299 |
<xslo:if test="contains('a', @code)"> |
301 |
<xslo:if test="contains('a', @code)"> |
300 |
<z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s"> |
302 |
<z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p"> |
301 |
<xslo:value-of select="."/> |
303 |
<xslo:value-of select="."/> |
302 |
</z:index> |
304 |
</z:index> |
303 |
</xslo:if> |
305 |
</xslo:if> |
Lines 2430-2435
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
2430 |
<xslo:value-of select="."/> |
2432 |
<xslo:value-of select="."/> |
2431 |
</z:index> |
2433 |
</z:index> |
2432 |
</xslo:template> |
2434 |
</xslo:template> |
|
|
2435 |
<xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']"> |
2436 |
<xslo:variable name="chop"> |
2437 |
<xslo:choose> |
2438 |
<xslo:when test="not(number(@ind2))">0</xslo:when> |
2439 |
<xslo:otherwise> |
2440 |
<xslo:value-of select="number(@ind2)"/> |
2441 |
</xslo:otherwise> |
2442 |
</xslo:choose> |
2443 |
</xslo:variable> |
2444 |
<z:index name="Title:s"> |
2445 |
<xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> |
2446 |
</z:index> |
2447 |
</xslo:template> |
2433 |
<xslo:template name="chopPunctuation"> |
2448 |
<xslo:template name="chopPunctuation"> |
2434 |
<xslo:param name="chopString"/> |
2449 |
<xslo:param name="chopString"/> |
2435 |
<xslo:variable name="length" select="string-length($chopString)"/> |
2450 |
<xslo:variable name="length" select="string-length($chopString)"/> |