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 409-414
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
409 |
</xslo:if> |
411 |
</xslo:if> |
410 |
</xslo:for-each> |
412 |
</xslo:for-each> |
411 |
</xslo:template> |
413 |
</xslo:template> |
|
|
414 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='648']"> |
415 |
<xslo:for-each select="marc:subfield"> |
416 |
<xslo:if test="contains('9', @code)"> |
417 |
<z:index name="Koha-Auth-Number:w"> |
418 |
<xslo:value-of select="."/> |
419 |
</z:index> |
420 |
</xslo:if> |
421 |
</xslo:for-each> |
422 |
</xslo:template> |
412 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='650']"> |
423 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='650']"> |
413 |
<xslo:for-each select="marc:subfield"> |
424 |
<xslo:for-each select="marc:subfield"> |
414 |
<xslo:if test="contains('9', @code)"> |
425 |
<xslo:if test="contains('9', @code)"> |
Lines 1855-1860
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
1855 |
<xslo:value-of select="."/> |
1866 |
<xslo:value-of select="."/> |
1856 |
</z:index> |
1867 |
</z:index> |
1857 |
</xslo:template> |
1868 |
</xslo:template> |
|
|
1869 |
<xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']"> |
1870 |
<xslo:variable name="chop"> |
1871 |
<xslo:choose> |
1872 |
<xslo:when test="not(number(@ind2))">0</xslo:when> |
1873 |
<xslo:otherwise> |
1874 |
<xslo:value-of select="number(@ind2)"/> |
1875 |
</xslo:otherwise> |
1876 |
</xslo:choose> |
1877 |
</xslo:variable> |
1878 |
<z:index name="Title:s"> |
1879 |
<xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/> |
1880 |
</z:index> |
1881 |
</xslo:template> |
1858 |
<xslo:template name="chopPunctuation"> |
1882 |
<xslo:template name="chopPunctuation"> |
1859 |
<xslo:param name="chopString"/> |
1883 |
<xslo:param name="chopString"/> |
1860 |
<xslo:variable name="length" select="string-length($chopString)"/> |
1884 |
<xslo:variable name="length" select="string-length($chopString)"/> |
1861 |
- |
|
|