|
Lines 64-69
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 64 |
<z:index name="Descriptive-cataloging-rules:w"> |
64 |
<z:index name="Descriptive-cataloging-rules:w"> |
| 65 |
<xslo:value-of select="substring(., 11, 1)"/> |
65 |
<xslo:value-of select="substring(., 11, 1)"/> |
| 66 |
</z:index> |
66 |
</z:index> |
|
|
67 |
<z:index name="Subject-heading-thesaurus:0"> |
| 68 |
<xslo:value-of select="substring(., 12, 1)"/> |
| 69 |
</z:index> |
| 67 |
<z:index name="Heading-use-main-or-added-entry:w"> |
70 |
<z:index name="Heading-use-main-or-added-entry:w"> |
| 68 |
<xslo:value-of select="substring(., 15, 1)"/> |
71 |
<xslo:value-of select="substring(., 15, 1)"/> |
| 69 |
</z:index> |
72 |
</z:index> |
|
Lines 100-105
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 100 |
</z:index> |
103 |
</z:index> |
| 101 |
</xslo:if> |
104 |
</xslo:if> |
| 102 |
</xslo:for-each> |
105 |
</xslo:for-each> |
|
|
106 |
<xslo:for-each select="marc:subfield"> |
| 107 |
<xslo:if test="contains('f', @code)"> |
| 108 |
<z:index name="Subject-heading-thesaurus:0"> |
| 109 |
<xslo:value-of select="."/> |
| 110 |
</z:index> |
| 111 |
</xslo:if> |
| 112 |
</xslo:for-each> |
| 103 |
</xslo:template> |
113 |
</xslo:template> |
| 104 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='100']"> |
114 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='100']"> |
| 105 |
<xslo:for-each select="marc:subfield"> |
115 |
<xslo:for-each select="marc:subfield"> |
|
Lines 2410-2465
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
| 2410 |
<xslo:variable name="general_subdivision_subfield">x</xslo:variable> |
2420 |
<xslo:variable name="general_subdivision_subfield">x</xslo:variable> |
| 2411 |
<xslo:variable name="chronological_subdivision_subfield">y</xslo:variable> |
2421 |
<xslo:variable name="chronological_subdivision_subfield">y</xslo:variable> |
| 2412 |
<xslo:variable name="geographic_subdivision_subfield">z</xslo:variable> |
2422 |
<xslo:variable name="geographic_subdivision_subfield">z</xslo:variable> |
| 2413 |
<xslo:template mode="index_subject_thesaurus" match="marc:controlfield[@tag='008']"> |
|
|
| 2414 |
<xslo:variable name="thesaurus_code1" select="substring(., 12, 1)"/> |
| 2415 |
<xslo:variable name="full_thesaurus_code"> |
| 2416 |
<xslo:choose> |
| 2417 |
<xslo:when test="$thesaurus_code1 = 'a'"> |
| 2418 |
<xslo:text>lcsh</xslo:text> |
| 2419 |
</xslo:when> |
| 2420 |
<xslo:when test="$thesaurus_code1 = 'b'"> |
| 2421 |
<xslo:text>lcac</xslo:text> |
| 2422 |
</xslo:when> |
| 2423 |
<xslo:when test="$thesaurus_code1 = 'c'"> |
| 2424 |
<xslo:text>mesh</xslo:text> |
| 2425 |
</xslo:when> |
| 2426 |
<xslo:when test="$thesaurus_code1 = 'd'"> |
| 2427 |
<xslo:text>nal</xslo:text> |
| 2428 |
</xslo:when> |
| 2429 |
<xslo:when test="$thesaurus_code1 = 'k'"> |
| 2430 |
<xslo:text>cash</xslo:text> |
| 2431 |
</xslo:when> |
| 2432 |
<xslo:when test="$thesaurus_code1 = 'n'"> |
| 2433 |
<xslo:text>notapplicable</xslo:text> |
| 2434 |
</xslo:when> |
| 2435 |
<xslo:when test="$thesaurus_code1 = 'r'"> |
| 2436 |
<xslo:text>aat</xslo:text> |
| 2437 |
</xslo:when> |
| 2438 |
<xslo:when test="$thesaurus_code1 = 's'"> |
| 2439 |
<xslo:text>sears</xslo:text> |
| 2440 |
</xslo:when> |
| 2441 |
<xslo:when test="$thesaurus_code1 = 'v'"> |
| 2442 |
<xslo:text>rvm</xslo:text> |
| 2443 |
</xslo:when> |
| 2444 |
<xslo:when test="$thesaurus_code1 = 'z'"> |
| 2445 |
<xslo:choose> |
| 2446 |
<xslo:when test="//marc:datafield[@tag='040']/marc:subfield[@code='f']"> |
| 2447 |
<xslo:value-of select="//marc:datafield[@tag='040']/marc:subfield[@code='f']"/> |
| 2448 |
</xslo:when> |
| 2449 |
<xslo:otherwise> |
| 2450 |
<xslo:text>notdefined</xslo:text> |
| 2451 |
</xslo:otherwise> |
| 2452 |
</xslo:choose> |
| 2453 |
</xslo:when> |
| 2454 |
<xslo:otherwise> |
| 2455 |
<xslo:text>notdefined</xslo:text> |
| 2456 |
</xslo:otherwise> |
| 2457 |
</xslo:choose> |
| 2458 |
</xslo:variable> |
| 2459 |
<z:index name="Subject-heading-thesaurus:w"> |
| 2460 |
<xslo:value-of select="$full_thesaurus_code"/> |
| 2461 |
</z:index> |
| 2462 |
</xslo:template> |
| 2463 |
<xslo:template mode="index_all" match="text()"> |
2423 |
<xslo:template mode="index_all" match="text()"> |
| 2464 |
<z:index name="Any:w Any:p"> |
2424 |
<z:index name="Any:w Any:p"> |
| 2465 |
<xslo:value-of select="."/> |
2425 |
<xslo:value-of select="."/> |
| 2466 |
- |
|
|