|
Lines 17-23
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="text()" mode="index_sort_title"/> |
| 21 |
<xslo:template match="/"> |
21 |
<xslo:template match="/"> |
| 22 |
<xslo:if test="marc:collection"> |
22 |
<xslo:if test="marc:collection"> |
| 23 |
<collection> |
23 |
<collection> |
|
Lines 43-49
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 43 |
<xslo:apply-templates mode="index_match_heading"/> |
43 |
<xslo:apply-templates mode="index_match_heading"/> |
| 44 |
<xslo:apply-templates mode="index_subject_thesaurus"/> |
44 |
<xslo:apply-templates mode="index_subject_thesaurus"/> |
| 45 |
<xslo:apply-templates mode="index_all"/> |
45 |
<xslo:apply-templates mode="index_all"/> |
| 46 |
<xslo:apply-templates mode="index_sort_tit"/> |
46 |
<xslo:apply-templates mode="index_sort_title"/> |
| 47 |
</z:record> |
47 |
</z:record> |
| 48 |
</xslo:template> |
48 |
</xslo:template> |
| 49 |
<xslo:template match="marc:leader"> |
49 |
<xslo:template match="marc:leader"> |
|
Lines 2688-2699
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2688 |
</z:index> |
2688 |
</z:index> |
| 2689 |
</xslo:if> |
2689 |
</xslo:if> |
| 2690 |
</xslo:template> |
2690 |
</xslo:template> |
| 2691 |
<xslo:template mode="index_all" match="text()"> |
2691 |
<xslo:template mode="index_sort_title" match="marc:datafield[@tag='245']"> |
| 2692 |
<z:index name="Any:w Any:p"> |
|
|
| 2693 |
<xslo:value-of select="."/> |
| 2694 |
</z:index> |
| 2695 |
</xslo:template> |
| 2696 |
<xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']"> |
| 2697 |
<xslo:variable name="chop"> |
2692 |
<xslo:variable name="chop"> |
| 2698 |
<xslo:choose> |
2693 |
<xslo:choose> |
| 2699 |
<xslo:when test="not(number(@ind2))">0</xslo:when> |
2694 |
<xslo:when test="not(number(@ind2))">0</xslo:when> |
|
Lines 2706-2711
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2706 |
<xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> |
2701 |
<xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> |
| 2707 |
</z:index> |
2702 |
</z:index> |
| 2708 |
</xslo:template> |
2703 |
</xslo:template> |
|
|
2704 |
<xslo:template mode="index_all" match="text()"> |
| 2705 |
<z:index name="Any:w Any:p"> |
| 2706 |
<xslo:value-of select="."/> |
| 2707 |
</z:index> |
| 2708 |
</xslo:template> |
| 2709 |
<xslo:template name="chopPunctuation"> |
2709 |
<xslo:template name="chopPunctuation"> |
| 2710 |
<xslo:param name="chopString"/> |
2710 |
<xslo:param name="chopString"/> |
| 2711 |
<xslo:variable name="length" select="string-length($chopString)"/> |
2711 |
<xslo:variable name="length" select="string-length($chopString)"/> |
| 2712 |
- |
|
|