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

(-)a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml (+1 lines)
Lines 6-11 run the following command: Link Here
6
authority-zebra-indexdefs.xsl`
6
authority-zebra-indexdefs.xsl`
7
-->
7
-->
8
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs">
8
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs">
9
  <id>marc:controlfield[@tag='001']</id>
9
  <!-- variables -->
10
  <!-- variables -->
10
  <kohaidx:var name="form_subdivision_subfield">v</kohaidx:var>
11
  <kohaidx:var name="form_subdivision_subfield">v</kohaidx:var>
11
  <kohaidx:var name="general_subdivision_subfield">x</kohaidx:var>
12
  <kohaidx:var name="general_subdivision_subfield">x</kohaidx:var>
(-)a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl (-3 / +3 lines)
Lines 27-36 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
27
    </xslo:if>
27
    </xslo:if>
28
  </xslo:template>
28
  </xslo:template>
29
  <xslo:template match="marc:record">
29
  <xslo:template match="marc:record">
30
    <xslo:variable name="controlField001" select="normalize-space(marc:controlfield[@tag='001'])"/>
30
    <xslo:variable name="idfield" select="normalize-space(marc:controlfield[@tag='001'])"/>
31
    <z:record type="update">
31
    <z:record type="update">
32
      <xslo:attribute name="z:id">
32
      <xslo:attribute name="z:id">
33
        <xslo:value-of select="$controlField001"/>
33
        <xslo:value-of select="$idfield"/>
34
      </xslo:attribute>
34
      </xslo:attribute>
35
      <xslo:apply-templates/>
35
      <xslo:apply-templates/>
36
      <xslo:apply-templates mode="index_subfields"/>
36
      <xslo:apply-templates mode="index_subfields"/>
Lines 1122-1128 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1122
      <xslo:value-of select="normalize-space($raw_heading)"/>
1122
      <xslo:value-of select="normalize-space($raw_heading)"/>
1123
    </z:index>
1123
    </z:index>
1124
  </xslo:template>
1124
  </xslo:template>
1125
  <xslo:template mode="index_heading_conditional" match="marc:datafield[@tag='450']">
1125
  <xslo:template mode="index_heading_conditional">
1126
    <xslo:if test="substring(marc:subfield[@code='w']/text(), 2, 1)">
1126
    <xslo:if test="substring(marc:subfield[@code='w']/text(), 2, 1)">
1127
      <z:index name="Previous-heading-see-from:p">
1127
      <z:index name="Previous-heading-see-from:p">
1128
        <xslo:variable name="raw_heading">
1128
        <xslo:variable name="raw_heading">
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (-1 / +2 lines)
Lines 1-6 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
  <!--record.abs line 40: xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)-->
3
  <!--record.abs line 40: xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)-->
4
  <id>marc:datafield[@tag='999']/marc:subfield[@code='c']</id>
4
  <index_leader xmlns="http://www.koha-community.org/schemas/index-defs" offset="0" length="5">
5
  <index_leader xmlns="http://www.koha-community.org/schemas/index-defs" offset="0" length="5">
5
    <target_index>llength:w</target_index>
6
    <target_index>llength:w</target_index>
6
  </index_leader>
7
  </index_leader>
Lines 1124-1130 Link Here
1124
  </index_subfields>
1125
  </index_subfields>
1125
  <!--record.abs line 286: melm 952$3      materials-specified -->
1126
  <!--record.abs line 286: melm 952$3      materials-specified -->
1126
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="3">
1127
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="3">
1127
    <target_index>materials-specified :w</target_index>
1128
    <target_index>materials-specified:w</target_index>
1128
  </index_subfields>
1129
  </index_subfields>
1129
  <!--record.abs line 287: melm 952$4      damaged:n,damaged:w-->
1130
  <!--record.abs line 287: melm 952$4      damaged:n,damaged:w-->
1130
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="4">
1131
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="4">
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-2 / +4 lines)
Lines 13-18 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
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_heading"/>
15
  <xslo:template match="text()" mode="index_heading"/>
16
  <xslo:template match="text()" mode="index_heading_conditional"/>
16
  <xslo:template match="text()" mode="index_match_heading"/>
17
  <xslo:template match="text()" mode="index_match_heading"/>
17
  <xslo:template match="text()" mode="index_subject_thesaurus"/>
18
  <xslo:template match="text()" mode="index_subject_thesaurus"/>
18
  <xslo:template match="/">
19
  <xslo:template match="/">
Lines 26-40 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
26
    </xslo:if>
27
    </xslo:if>
27
  </xslo:template>
28
  </xslo:template>
28
  <xslo:template match="marc:record">
29
  <xslo:template match="marc:record">
29
    <xslo:variable name="controlField001" select="normalize-space(marc:controlfield[@tag='001'])"/>
30
    <xslo:variable name="idfield" select="normalize-space(marc:datafield[@tag='999']/marc:subfield[@code='c'])"/>
30
    <z:record type="update">
31
    <z:record type="update">
31
      <xslo:attribute name="z:id">
32
      <xslo:attribute name="z:id">
32
        <xslo:value-of select="$controlField001"/>
33
        <xslo:value-of select="$idfield"/>
33
      </xslo:attribute>
34
      </xslo:attribute>
34
      <xslo:apply-templates/>
35
      <xslo:apply-templates/>
35
      <xslo:apply-templates mode="index_subfields"/>
36
      <xslo:apply-templates mode="index_subfields"/>
36
      <xslo:apply-templates mode="index_data_field"/>
37
      <xslo:apply-templates mode="index_data_field"/>
37
      <xslo:apply-templates mode="index_heading"/>
38
      <xslo:apply-templates mode="index_heading"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
38
      <xslo:apply-templates mode="index_match_heading"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
39
      <xslo:apply-templates mode="index_subject_thesaurus"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
40
    </z:record>
42
    </z:record>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (+1 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
  <id>marc:controlfield[@tag='001']</id>
3
  <!--record.abs line 24: melm 001        Local-number,Local-number:n-->
4
  <!--record.abs line 24: melm 001        Local-number,Local-number:n-->
4
  <index_control_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="001">
5
  <index_control_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="001">
5
    <target_index>Local-number:w</target_index>
6
    <target_index>Local-number:w</target_index>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-2 / +4 lines)
Lines 13-18 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
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_heading"/>
15
  <xslo:template match="text()" mode="index_heading"/>
16
  <xslo:template match="text()" mode="index_heading_conditional"/>
16
  <xslo:template match="text()" mode="index_match_heading"/>
17
  <xslo:template match="text()" mode="index_match_heading"/>
17
  <xslo:template match="text()" mode="index_subject_thesaurus"/>
18
  <xslo:template match="text()" mode="index_subject_thesaurus"/>
18
  <xslo:template match="/">
19
  <xslo:template match="/">
Lines 26-40 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
26
    </xslo:if>
27
    </xslo:if>
27
  </xslo:template>
28
  </xslo:template>
28
  <xslo:template match="marc:record">
29
  <xslo:template match="marc:record">
29
    <xslo:variable name="controlField001" select="normalize-space(marc:controlfield[@tag='001'])"/>
30
    <xslo:variable name="idfield" select="normalize-space(marc:controlfield[@tag='001'])"/>
30
    <z:record type="update">
31
    <z:record type="update">
31
      <xslo:attribute name="z:id">
32
      <xslo:attribute name="z:id">
32
        <xslo:value-of select="$controlField001"/>
33
        <xslo:value-of select="$idfield"/>
33
      </xslo:attribute>
34
      </xslo:attribute>
34
      <xslo:apply-templates/>
35
      <xslo:apply-templates/>
35
      <xslo:apply-templates mode="index_subfields"/>
36
      <xslo:apply-templates mode="index_subfields"/>
36
      <xslo:apply-templates mode="index_data_field"/>
37
      <xslo:apply-templates mode="index_data_field"/>
37
      <xslo:apply-templates mode="index_heading"/>
38
      <xslo:apply-templates mode="index_heading"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
38
      <xslo:apply-templates mode="index_match_heading"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
39
      <xslo:apply-templates mode="index_subject_thesaurus"/>
41
      <xslo:apply-templates mode="index_subject_thesaurus"/>
40
    </z:record>
42
    </z:record>
(-)a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl (-3 / +4 lines)
Lines 49-57 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
49
            </xslo:template>
49
            </xslo:template>
50
50
51
            <xslo:template match="marc:record">
51
            <xslo:template match="marc:record">
52
                <xslo:variable name="controlField001" select="normalize-space(marc:controlfield[@tag='001'])"/>
52
                <xslo:variable name="idfield">
53
                    <xsl:attribute name="select">normalize-space(<xsl:value-of select="//id"/>)</xsl:attribute>
54
                </xslo:variable>
53
                <z:record type="update">
55
                <z:record type="update">
54
                    <xslo:attribute name="z:id"><xslo:value-of select="$controlField001"/></xslo:attribute>
56
                    <xslo:attribute name="z:id"><xslo:value-of select="$idfield"/></xslo:attribute>
55
                    <xslo:apply-templates/>
57
                    <xslo:apply-templates/>
56
                    <xslo:apply-templates mode="index_subfields"/>
58
                    <xslo:apply-templates mode="index_subfields"/>
57
                    <xslo:apply-templates mode="index_data_field"/>
59
                    <xslo:apply-templates mode="index_data_field"/>
58
- 

Return to bug 8665