Lines 12-17
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
12 |
<xslo:template match="text()"/> |
12 |
<xslo:template match="text()"/> |
13 |
<xslo:template match="text()" mode="index_subfields"/> |
13 |
<xslo:template match="text()" mode="index_subfields"/> |
14 |
<xslo:template match="text()" mode="index_data_field"/> |
14 |
<xslo:template match="text()" mode="index_data_field"/> |
|
|
15 |
<xslo:template match="text()" mode="index_facets"/> |
15 |
<xslo:template match="text()" mode="index_heading"/> |
16 |
<xslo:template match="text()" mode="index_heading"/> |
16 |
<xslo:template match="text()" mode="index_heading_conditional"/> |
17 |
<xslo:template match="text()" mode="index_heading_conditional"/> |
17 |
<xslo:template match="text()" mode="index_match_heading"/> |
18 |
<xslo:template match="text()" mode="index_match_heading"/> |
Lines 27-33
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
27 |
</xslo:if> |
28 |
</xslo:if> |
28 |
</xslo:template> |
29 |
</xslo:template> |
29 |
<xslo:template match="marc:record"> |
30 |
<xslo:template match="marc:record"> |
30 |
<xslo:variable name="idfield" select="normalize-space(marc:datafield[@tag='999']/marc:subfield[@code='c'])"/> |
31 |
<xslo:variable name="idfield" select="normalize-space()"/> |
31 |
<z:record type="update"> |
32 |
<z:record type="update"> |
32 |
<xslo:attribute name="z:id"> |
33 |
<xslo:attribute name="z:id"> |
33 |
<xslo:value-of select="$idfield"/> |
34 |
<xslo:value-of select="$idfield"/> |
Lines 35-40
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
35 |
<xslo:apply-templates/> |
36 |
<xslo:apply-templates/> |
36 |
<xslo:apply-templates mode="index_subfields"/> |
37 |
<xslo:apply-templates mode="index_subfields"/> |
37 |
<xslo:apply-templates mode="index_data_field"/> |
38 |
<xslo:apply-templates mode="index_data_field"/> |
|
|
39 |
<xslo:apply-templates mode="index_facets"/> |
38 |
<xslo:apply-templates mode="index_heading"/> |
40 |
<xslo:apply-templates mode="index_heading"/> |
39 |
<xslo:apply-templates mode="index_heading_conditional"/> |
41 |
<xslo:apply-templates mode="index_heading_conditional"/> |
40 |
<xslo:apply-templates mode="index_match_heading"/> |
42 |
<xslo:apply-templates mode="index_match_heading"/> |
Lines 2344-2349
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
2344 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2346 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2345 |
</z:index> |
2347 |
</z:index> |
2346 |
</xslo:template> |
2348 |
</xslo:template> |
|
|
2349 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='100']"> |
2350 |
<xslo:if test="not(@ind1='z')"> |
2351 |
<z:index name="au:0"> |
2352 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2353 |
</z:index> |
2354 |
</xslo:if> |
2355 |
</xslo:template> |
2356 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='110']"> |
2357 |
<xslo:if test="not(@ind1='z')"> |
2358 |
<z:index name="au:0"> |
2359 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2360 |
</z:index> |
2361 |
</xslo:if> |
2362 |
</xslo:template> |
2363 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='440']"> |
2364 |
<xslo:if test="not(@ind1='z')"> |
2365 |
<z:index name="se:0"> |
2366 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2367 |
</z:index> |
2368 |
</xslo:if> |
2369 |
</xslo:template> |
2370 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='490']"> |
2371 |
<xslo:if test="not(@ind1='z')"> |
2372 |
<z:index name="se:0"> |
2373 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2374 |
</z:index> |
2375 |
</xslo:if> |
2376 |
</xslo:template> |
2377 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='630']"> |
2378 |
<xslo:if test="not(@ind1='z')"> |
2379 |
<z:index name="su-ut:0"> |
2380 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2381 |
</z:index> |
2382 |
</xslo:if> |
2383 |
</xslo:template> |
2384 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='650']"> |
2385 |
<xslo:if test="not(@ind1='z')"> |
2386 |
<z:index name="su-to:0"> |
2387 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2388 |
</z:index> |
2389 |
</xslo:if> |
2390 |
</xslo:template> |
2391 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='651']"> |
2392 |
<xslo:if test="not(@ind1='z')"> |
2393 |
<z:index name="su-geo:0"> |
2394 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2395 |
</z:index> |
2396 |
</xslo:if> |
2397 |
</xslo:template> |
2398 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='700']"> |
2399 |
<xslo:if test="not(@ind1='z')"> |
2400 |
<z:index name="au:0"> |
2401 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2402 |
</z:index> |
2403 |
</xslo:if> |
2404 |
</xslo:template> |
2405 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='942']"> |
2406 |
<xslo:if test="not(@ind1='z')"> |
2407 |
<z:index name="itype:0"> |
2408 |
<xslo:value-of select="marc:subfield[@code='c']"/> |
2409 |
</z:index> |
2410 |
</xslo:if> |
2411 |
</xslo:template> |
2412 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='952']"> |
2413 |
<xslo:if test="not(@ind1='z')"> |
2414 |
<z:index name="homebranch:0"> |
2415 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2416 |
</z:index> |
2417 |
<z:index name="holdingbranch:0"> |
2418 |
<xslo:value-of select="marc:subfield[@code='b']"/> |
2419 |
</z:index> |
2420 |
<z:index name="location:0"> |
2421 |
<xslo:value-of select="marc:subfield[@code='c']"/> |
2422 |
</z:index> |
2423 |
</xslo:if> |
2424 |
</xslo:template> |
2347 |
<xslo:template mode="index_all" match="text()"> |
2425 |
<xslo:template mode="index_all" match="text()"> |
2348 |
<z:index name="Any:w Any:p"> |
2426 |
<z:index name="Any:w Any:p"> |
2349 |
<xslo:value-of select="."/> |
2427 |
<xslo:value-of select="."/> |
2350 |
- |
|
|