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

(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 709-714 Link Here
709
    <target_index>Subject:w</target_index>
709
    <target_index>Subject:w</target_index>
710
    <target_index>Subject:p</target_index>
710
    <target_index>Subject:p</target_index>
711
  </index_data_field>
711
  </index_data_field>
712
  <index_subfields tag="648" subfields="9">
713
    <target_index>Koha-Auth-Number:w</target_index>
714
  </index_subfields>
712
  <!--record.abs line 177: melm 650$9      Koha-Auth-Number    -->
715
  <!--record.abs line 177: melm 650$9      Koha-Auth-Number    -->
713
  <index_subfields tag="650" subfields="9">
716
  <index_subfields tag="650" subfields="9">
714
    <target_index>Koha-Auth-Number:w</target_index>
717
    <target_index>Koha-Auth-Number:w</target_index>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (+9 lines)
Lines 628-633 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
628
      </xslo:if>
628
      </xslo:if>
629
    </xslo:for-each>
629
    </xslo:for-each>
630
  </xslo:template>
630
  </xslo:template>
631
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='648']">
632
    <xslo:for-each select="marc:subfield">
633
      <xslo:if test="contains('9', @code)">
634
        <z:index name="Koha-Auth-Number:w">
635
          <xslo:value-of select="."/>
636
        </z:index>
637
      </xslo:if>
638
    </xslo:for-each>
639
  </xslo:template>
631
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
640
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
632
    <xslo:for-each select="marc:subfield">
641
    <xslo:for-each select="marc:subfield">
633
      <xslo:if test="contains('9', @code)">
642
      <xslo:if test="contains('9', @code)">
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml (+3 lines)
Lines 477-482 Link Here
477
    <target_index>Subject:w</target_index>
477
    <target_index>Subject:w</target_index>
478
    <target_index>Subject:p</target_index>
478
    <target_index>Subject:p</target_index>
479
  </index_data_field>
479
  </index_data_field>
480
  <index_subfields tag="648" subfields="9">
481
    <target_index>Koha-Auth-Number:w</target_index>
482
  </index_subfields>
480
  <!--record.abs line 199: melm 650$9      Koha-Auth-Number-->
483
  <!--record.abs line 199: melm 650$9      Koha-Auth-Number-->
481
  <index_subfields tag="650" subfields="9">
484
  <index_subfields tag="650" subfields="9">
482
    <target_index>Koha-Auth-Number:w</target_index>
485
    <target_index>Koha-Auth-Number:w</target_index>
(-)a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl (-1 / +24 lines)
Lines 17-22 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
17
  <xslo:template match="text()" mode="index_heading_conditional"/>
17
  <xslo:template match="text()" mode="index_heading_conditional"/>
18
  <xslo:template match="text()" mode="index_match_heading"/>
18
  <xslo:template match="text()" mode="index_match_heading"/>
19
  <xslo:template match="text()" mode="index_subject_thesaurus"/>
19
  <xslo:template match="text()" mode="index_subject_thesaurus"/>
20
  <xslo:template match="text()" mode="index_sort_tit"/>
20
  <xslo:template match="/">
21
  <xslo:template match="/">
21
    <xslo:if test="marc:collection">
22
    <xslo:if test="marc:collection">
22
      <collection>
23
      <collection>
Lines 42-47 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
42
      <xslo:apply-templates mode="index_match_heading"/>
43
      <xslo:apply-templates mode="index_match_heading"/>
43
      <xslo:apply-templates mode="index_subject_thesaurus"/>
44
      <xslo:apply-templates mode="index_subject_thesaurus"/>
44
      <xslo:apply-templates mode="index_all"/>
45
      <xslo:apply-templates mode="index_all"/>
46
      <xslo:apply-templates mode="index_sort_tit"/>
45
    </z:record>
47
    </z:record>
46
  </xslo:template>
48
  </xslo:template>
47
  <xslo:template match="marc:leader">
49
  <xslo:template match="marc:leader">
Lines 409-414 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
409
      </xslo:if>
411
      </xslo:if>
410
    </xslo:for-each>
412
    </xslo:for-each>
411
  </xslo:template>
413
  </xslo:template>
414
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='648']">
415
    <xslo:for-each select="marc:subfield">
416
      <xslo:if test="contains('9', @code)">
417
        <z:index name="Koha-Auth-Number:w">
418
          <xslo:value-of select="."/>
419
        </z:index>
420
      </xslo:if>
421
    </xslo:for-each>
422
  </xslo:template>
412
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
423
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='650']">
413
    <xslo:for-each select="marc:subfield">
424
    <xslo:for-each select="marc:subfield">
414
      <xslo:if test="contains('9', @code)">
425
      <xslo:if test="contains('9', @code)">
Lines 1855-1860 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1855
      <xslo:value-of select="."/>
1866
      <xslo:value-of select="."/>
1856
    </z:index>
1867
    </z:index>
1857
  </xslo:template>
1868
  </xslo:template>
1869
  <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
1870
    <xslo:variable name="chop">
1871
      <xslo:choose>
1872
        <xslo:when test="not(number(@ind2))">0</xslo:when>
1873
        <xslo:otherwise>
1874
          <xslo:value-of select="number(@ind2)"/>
1875
        </xslo:otherwise>
1876
      </xslo:choose>
1877
    </xslo:variable>
1878
    <z:index name="Title:s">
1879
      <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
1880
    </z:index>
1881
  </xslo:template>
1858
  <xslo:template name="chopPunctuation">
1882
  <xslo:template name="chopPunctuation">
1859
    <xslo:param name="chopString"/>
1883
    <xslo:param name="chopString"/>
1860
    <xslo:variable name="length" select="string-length($chopString)"/>
1884
    <xslo:variable name="length" select="string-length($chopString)"/>
1861
- 

Return to bug 17547