View | Details | Raw Unified | Return to bug 11232
Collapse All | Expand All

(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (+56 lines)
Lines 1429-1432 Link Here
1429
    <target_index>totalissues:n</target_index>
1429
    <target_index>totalissues:n</target_index>
1430
    <target_index>totalissues:s</target_index>
1430
    <target_index>totalissues:s</target_index>
1431
  </index_subfields>
1431
  </index_subfields>
1432
1433
  <facet tag="225" subfields="a">
1434
    <target_index>se:0</target_index>
1435
  </facet>
1436
  <facet tag="500" subfields="a">
1437
    <target_index>su-ut:0</target_index>
1438
  </facet>
1439
  <facet tag="501" subfields="a">
1440
    <target_index>su-ut:0</target_index>
1441
  </facet>
1442
  <facet tag="503" subfields="a">
1443
    <target_index>su-ut:0</target_index>
1444
  </facet>
1445
  <facet tag="600" subfields="ab">
1446
    <target_index>su-to:0</target_index>
1447
  </facet>
1448
  <facet tag="601" subfields="ab">
1449
    <target_index>su-to:0</target_index>
1450
  </facet>
1451
  <facet tag="602" subfields="a">
1452
    <target_index>su-to:0</target_index>
1453
  </facet>
1454
  <facet tag="604" subfields="at">
1455
    <target_index>su-to:0</target_index>
1456
  </facet>
1457
  <facet tag="605" subfields="a">
1458
    <target_index>su-to:0</target_index>
1459
  </facet>
1460
  <facet tag="606" subfields="ax">
1461
    <target_index>su-to:0</target_index>
1462
  </facet>
1463
  <facet tag="607" subfields="a">
1464
    <target_index>su-geo:0</target_index>
1465
  </facet>
1466
  <facet tag="610" subfields="a">
1467
    <target_index>su-to:0</target_index>
1468
  </facet>
1469
  <facet tag="700" subfields="ab">
1470
    <target_index>au:0</target_index>
1471
  </facet>
1472
  <facet tag="701" subfields="ab">
1473
    <target_index>au:0</target_index>
1474
  </facet>
1475
  <facet tag="702" subfields="ab">
1476
    <target_index>au:0</target_index>
1477
  </facet>
1478
  <facet tag="995" subfields="a">
1479
    <target_index>homebranch:0</target_index>
1480
  </facet>
1481
  <facet tag="995" subfields="b">
1482
    <target_index>holdingbranch:0</target_index>
1483
  </facet>
1484
  <facet tag="995" subfields="e">
1485
    <target_index>location:0</target_index>
1486
  </facet>
1487
1432
</kohaidx:index_defs>
1488
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-3 / +156 lines)
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 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
    </xslo:if>
2642
  </xslo:template>
2643
  <xslo:template mode="index_facets" match="marc:datafield[@tag='995']">
2644
    <xslo:if test="not(@ind1='z')">
2645
      <z:index name="holdingbranch:0">
2646
        <xslo:value-of select="marc:subfield[@code='b']"/>
2647
      </z:index>
2648
    </xslo:if>
2649
  </xslo:template>
2650
  <xslo:template mode="index_facets" match="marc:datafield[@tag='995']">
2651
    <xslo:if test="not(@ind1='z')">
2652
      <z:index name="location:0">
2653
        <xslo:value-of select="marc:subfield[@code='e']"/>
2654
      </z:index>
2655
    </xslo:if>
2656
  </xslo:template>
2503
  <xslo:template mode="index_all" match="text()">
2657
  <xslo:template mode="index_all" match="text()">
2504
    <z:index name="Any:w Any:p">
2658
    <z:index name="Any:w Any:p">
2505
      <xslo:value-of select="."/>
2659
      <xslo:value-of select="."/>
2506
- 

Return to bug 11232