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 318-324
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
318 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='245']"> |
320 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='245']"> |
319 |
<xslo:for-each select="marc:subfield"> |
321 |
<xslo:for-each select="marc:subfield"> |
320 |
<xslo:if test="contains('a', @code)"> |
322 |
<xslo:if test="contains('a', @code)"> |
321 |
<z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s"> |
323 |
<z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p"> |
322 |
<xslo:value-of select="."/> |
324 |
<xslo:value-of select="."/> |
323 |
</z:index> |
325 |
</z:index> |
324 |
</xslo:if> |
326 |
</xslo:if> |
Lines 2464-2469
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
2464 |
<xslo:value-of select="."/> |
2466 |
<xslo:value-of select="."/> |
2465 |
</z:index> |
2467 |
</z:index> |
2466 |
</xslo:template> |
2468 |
</xslo:template> |
|
|
2469 |
<xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']"> |
2470 |
<xslo:variable name="chop"> |
2471 |
<xslo:choose> |
2472 |
<xslo:when test="not(number(@ind2))">0</xslo:when> |
2473 |
<xslo:otherwise> |
2474 |
<xslo:value-of select="number(@ind2)"/> |
2475 |
</xslo:otherwise> |
2476 |
</xslo:choose> |
2477 |
</xslo:variable> |
2478 |
<z:index name="Title:s"> |
2479 |
<xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> |
2480 |
</z:index> |
2481 |
</xslo:template> |
2467 |
<xslo:template name="chopPunctuation"> |
2482 |
<xslo:template name="chopPunctuation"> |
2468 |
<xslo:param name="chopString"/> |
2483 |
<xslo:param name="chopString"/> |
2469 |
<xslo:variable name="length" select="string-length($chopString)"/> |
2484 |
<xslo:variable name="length" select="string-length($chopString)"/> |