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:controlfield[@tag='001'])"/> |
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 436-443
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
436 |
</z:index> |
438 |
</z:index> |
437 |
</xslo:if> |
439 |
</xslo:if> |
438 |
</xslo:for-each> |
440 |
</xslo:for-each> |
439 |
</xslo:template> |
|
|
440 |
<xslo:template mode="index_subfields" match="marc:datafield[@tag='101']"> |
441 |
<xslo:for-each select="marc:subfield"> |
441 |
<xslo:for-each select="marc:subfield"> |
442 |
<xslo:if test="contains('c', @code)"> |
442 |
<xslo:if test="contains('c', @code)"> |
443 |
<z:index name="language-original:w"> |
443 |
<z:index name="language-original:w"> |
Lines 2500-2505
definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
Link Here
|
2500 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2500 |
<xslo:value-of select="normalize-space($raw_heading)"/> |
2501 |
</z:index> |
2501 |
</z:index> |
2502 |
</xslo:template> |
2502 |
</xslo:template> |
|
|
2503 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='225']"> |
2504 |
<xslo:if test="not(@ind1='z')"> |
2505 |
<z:index name="se:0"> |
2506 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2507 |
</z:index> |
2508 |
</xslo:if> |
2509 |
</xslo:template> |
2510 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='500']"> |
2511 |
<xslo:if test="not(@ind1='z')"> |
2512 |
<z:index name="su-ut:0"> |
2513 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2514 |
</z:index> |
2515 |
</xslo:if> |
2516 |
</xslo:template> |
2517 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='501']"> |
2518 |
<xslo:if test="not(@ind1='z')"> |
2519 |
<z:index name="su-ut:0"> |
2520 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2521 |
</z:index> |
2522 |
</xslo:if> |
2523 |
</xslo:template> |
2524 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='503']"> |
2525 |
<xslo:if test="not(@ind1='z')"> |
2526 |
<z:index name="su-ut:0"> |
2527 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2528 |
</z:index> |
2529 |
</xslo:if> |
2530 |
</xslo:template> |
2531 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='600']"> |
2532 |
<xslo:if test="not(@ind1='z')"> |
2533 |
<z:index name="su-to:0"> |
2534 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2535 |
<xslo:if test="marc:subfield[@code='a'] and marc:subfield[@code='b']"> |
2536 |
<xslo:text><*></xslo:text> |
2537 |
</xslo:if> |
2538 |
<xslo:value-of select="marc:subfield[@code='b']"/> |
2539 |
</z:index> |
2540 |
</xslo:if> |
2541 |
</xslo:template> |
2542 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='601']"> |
2543 |
<xslo:if test="not(@ind1='z')"> |
2544 |
<z:index name="su-to:0"> |
2545 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2546 |
<xslo:if test="marc:subfield[@code='a'] and marc:subfield[@code='b']"> |
2547 |
<xslo:text><*></xslo:text> |
2548 |
</xslo:if> |
2549 |
<xslo:value-of select="marc:subfield[@code='b']"/> |
2550 |
</z:index> |
2551 |
</xslo:if> |
2552 |
</xslo:template> |
2553 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='602']"> |
2554 |
<xslo:if test="not(@ind1='z')"> |
2555 |
<z:index name="su-to:0"> |
2556 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2557 |
</z:index> |
2558 |
</xslo:if> |
2559 |
</xslo:template> |
2560 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='604']"> |
2561 |
<xslo:if test="not(@ind1='z')"> |
2562 |
<z:index name="su-to:0"> |
2563 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2564 |
<xslo:if test="marc:subfield[@code='a'] and marc:subfield[@code='t']"> |
2565 |
<xslo:text><*></xslo:text> |
2566 |
</xslo:if> |
2567 |
<xslo:value-of select="marc:subfield[@code='t']"/> |
2568 |
</z:index> |
2569 |
</xslo:if> |
2570 |
</xslo:template> |
2571 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='605']"> |
2572 |
<xslo:if test="not(@ind1='z')"> |
2573 |
<z:index name="su-to:0"> |
2574 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2575 |
</z:index> |
2576 |
</xslo:if> |
2577 |
</xslo:template> |
2578 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='606']"> |
2579 |
<xslo:if test="not(@ind1='z')"> |
2580 |
<z:index name="su-to:0"> |
2581 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2582 |
<xslo:if test="marc:subfield[@code='a'] and marc:subfield[@code='x']"> |
2583 |
<xslo:text><*></xslo:text> |
2584 |
</xslo:if> |
2585 |
<xslo:value-of select="marc:subfield[@code='x']"/> |
2586 |
</z:index> |
2587 |
</xslo:if> |
2588 |
</xslo:template> |
2589 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='607']"> |
2590 |
<xslo:if test="not(@ind1='z')"> |
2591 |
<z:index name="su-geo:0"> |
2592 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2593 |
</z:index> |
2594 |
</xslo:if> |
2595 |
</xslo:template> |
2596 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='610']"> |
2597 |
<xslo:if test="not(@ind1='z')"> |
2598 |
<z:index name="su-to:0"> |
2599 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2600 |
</z:index> |
2601 |
</xslo:if> |
2602 |
</xslo:template> |
2603 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='700']"> |
2604 |
<xslo:if test="not(@ind1='z')"> |
2605 |
<z:index name="au:0"> |
2606 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2607 |
<xslo:if test="marc:subfield[@code='a'] and marc:subfield[@code='b']"> |
2608 |
<xslo:text><*></xslo:text> |
2609 |
</xslo:if> |
2610 |
<xslo:value-of select="marc:subfield[@code='b']"/> |
2611 |
</z:index> |
2612 |
</xslo:if> |
2613 |
</xslo:template> |
2614 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='701']"> |
2615 |
<xslo:if test="not(@ind1='z')"> |
2616 |
<z:index name="au:0"> |
2617 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2618 |
<xslo:if test="marc:subfield[@code='a'] and marc:subfield[@code='b']"> |
2619 |
<xslo:text><*></xslo:text> |
2620 |
</xslo:if> |
2621 |
<xslo:value-of select="marc:subfield[@code='b']"/> |
2622 |
</z:index> |
2623 |
</xslo:if> |
2624 |
</xslo:template> |
2625 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='702']"> |
2626 |
<xslo:if test="not(@ind1='z')"> |
2627 |
<z:index name="au:0"> |
2628 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2629 |
<xslo:if test="marc:subfield[@code='a'] and marc:subfield[@code='b']"> |
2630 |
<xslo:text><*></xslo:text> |
2631 |
</xslo:if> |
2632 |
<xslo:value-of select="marc:subfield[@code='b']"/> |
2633 |
</z:index> |
2634 |
</xslo:if> |
2635 |
</xslo:template> |
2636 |
<xslo:template mode="index_facets" match="marc:datafield[@tag='995']"> |
2637 |
<xslo:if test="not(@ind1='z')"> |
2638 |
<z:index name="homebranch:0"> |
2639 |
<xslo:value-of select="marc:subfield[@code='a']"/> |
2640 |
</z:index> |
2641 |
<z:index name="holdingbranch:0"> |
2642 |
<xslo:value-of select="marc:subfield[@code='b']"/> |
2643 |
</z:index> |
2644 |
<z:index name="location:0"> |
2645 |
<xslo:value-of select="marc:subfield[@code='e']"/> |
2646 |
</z:index> |
2647 |
</xslo:if> |
2648 |
</xslo:template> |
2503 |
<xslo:template mode="index_all" match="text()"> |
2649 |
<xslo:template mode="index_all" match="text()"> |
2504 |
<z:index name="Any:w Any:p"> |
2650 |
<z:index name="Any:w Any:p"> |
2505 |
<xslo:value-of select="."/> |
2651 |
<xslo:value-of select="."/> |
2506 |
- |
|
|