|
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"/> |
| 47 |
<xslo:call-template name="index_available"/> |
| 45 |
</z:record> |
48 |
</z:record> |
| 46 |
</xslo:template> |
49 |
</xslo:template> |
| 47 |
<xslo:template match="marc:controlfield[@tag='001']"> |
50 |
<xslo:template match="marc:controlfield[@tag='001']"> |
|
Lines 2676-2686
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2676 |
</z:index> |
2679 |
</z:index> |
| 2677 |
</xslo:if> |
2680 |
</xslo:if> |
| 2678 |
</xslo:template> |
2681 |
</xslo:template> |
|
|
2682 |
<xslo:template name="index_available"> |
| 2683 |
<z:index name="available:n"> |
| 2684 |
<xslo:value-of select="count(marc:datafield[@tag='995']/marc:subfield[@code='n' and not(contains(.,'1'))])"/> |
| 2685 |
</z:index> |
| 2686 |
</xslo:template> |
| 2679 |
<xslo:template mode="index_all" match="text()"> |
2687 |
<xslo:template mode="index_all" match="text()"> |
| 2680 |
<z:index name="Any:w Any:p"> |
2688 |
<z:index name="Any:w Any:p"> |
| 2681 |
<xslo:value-of select="."/> |
2689 |
<xslo:value-of select="."/> |
| 2682 |
</z:index> |
2690 |
</z:index> |
| 2683 |
</xslo:template> |
2691 |
</xslo:template> |
|
|
2692 |
<xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']"> |
| 2693 |
<xslo:variable name="chop"> |
| 2694 |
<xslo:choose> |
| 2695 |
<xslo:when test="not(number(@ind2))">0</xslo:when> |
| 2696 |
<xslo:otherwise> |
| 2697 |
<xslo:value-of select="number(@ind2)"/> |
| 2698 |
</xslo:otherwise> |
| 2699 |
</xslo:choose> |
| 2700 |
</xslo:variable> |
| 2701 |
<z:index name="Title:s"> |
| 2702 |
<xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> |
| 2703 |
</z:index> |
| 2704 |
</xslo:template> |
| 2684 |
<xslo:template name="chopPunctuation"> |
2705 |
<xslo:template name="chopPunctuation"> |
| 2685 |
<xslo:param name="chopString"/> |
2706 |
<xslo:param name="chopString"/> |
| 2686 |
<xslo:variable name="length" select="string-length($chopString)"/> |
2707 |
<xslo:variable name="length" select="string-length($chopString)"/> |