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

(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (-1 / +58 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs">
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs"
3
                    xmlns="http://www.koha-community.org/schemas/index-defs">
3
  <id>marc:controlfield[@tag='001']</id>
4
  <id>marc:controlfield[@tag='001']</id>
4
  <!--record.abs line 24: melm 001        Local-number,Local-number:n-->
5
  <!--record.abs line 24: melm 001        Local-number,Local-number:n-->
5
  <index_control_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="001">
6
  <index_control_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="001">
Lines 1429-1432 Link Here
1429
    <target_index>totalissues:n</target_index>
1430
    <target_index>totalissues:n</target_index>
1430
    <target_index>totalissues:s</target_index>
1431
    <target_index>totalissues:s</target_index>
1431
  </index_subfields>
1432
  </index_subfields>
1433
1434
  <facet tag="225" subfields="a">
1435
    <target_index>se:0</target_index>
1436
  </facet>
1437
  <facet tag="500" subfields="a">
1438
    <target_index>su-ut:0</target_index>
1439
  </facet>
1440
  <facet tag="501" subfields="a">
1441
    <target_index>su-ut:0</target_index>
1442
  </facet>
1443
  <facet tag="503" subfields="a">
1444
    <target_index>su-ut:0</target_index>
1445
  </facet>
1446
  <facet tag="600" subfields="ab">
1447
    <target_index>su-to:0</target_index>
1448
  </facet>
1449
  <facet tag="601" subfields="ab">
1450
    <target_index>su-to:0</target_index>
1451
  </facet>
1452
  <facet tag="602" subfields="a">
1453
    <target_index>su-to:0</target_index>
1454
  </facet>
1455
  <facet tag="604" subfields="at">
1456
    <target_index>su-to:0</target_index>
1457
  </facet>
1458
  <facet tag="605" subfields="a">
1459
    <target_index>su-to:0</target_index>
1460
  </facet>
1461
  <facet tag="606" subfields="ax">
1462
    <target_index>su-to:0</target_index>
1463
  </facet>
1464
  <facet tag="607" subfields="a">
1465
    <target_index>su-geo:0</target_index>
1466
  </facet>
1467
  <facet tag="610" subfields="a">
1468
    <target_index>su-to:0</target_index>
1469
  </facet>
1470
  <facet tag="700" subfields="ab">
1471
    <target_index>au:0</target_index>
1472
  </facet>
1473
  <facet tag="701" subfields="ab">
1474
    <target_index>au:0</target_index>
1475
  </facet>
1476
  <facet tag="702" subfields="ab">
1477
    <target_index>au:0</target_index>
1478
  </facet>
1479
  <facet tag="995" subfields="a">
1480
    <target_index>homebranch:0</target_index>
1481
  </facet>
1482
  <facet tag="995" subfields="b">
1483
    <target_index>holdingbranch:0</target_index>
1484
  </facet>
1485
  <facet tag="995" subfields="e">
1486
    <target_index>location:0</target_index>
1487
  </facet>
1488
1432
</kohaidx:index_defs>
1489
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-4 / +149 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 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
- 

Return to bug 11232