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

(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (-1 lines)
Lines 377-383 Link Here
377
    <target_index>Title-cover:s</target_index>
377
    <target_index>Title-cover:s</target_index>
378
    <target_index>Title:w</target_index>
378
    <target_index>Title:w</target_index>
379
    <target_index>Title:p</target_index>
379
    <target_index>Title:p</target_index>
380
    <target_index>Title:s</target_index>
381
  </index_subfields>
380
  </index_subfields>
382
  <!--record.abs line 114: melm 245$c      Author,Author-in-order:w,Author-in-order:p,Author-in-order:s-->
381
  <!--record.abs line 114: melm 245$c      Author,Author-in-order:w,Author-in-order:p,Author-in-order:s-->
383
  <index_subfields tag="245" subfields="c">
382
  <index_subfields tag="245" subfields="c">
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-1 / +16 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 297-303 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
297
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
299
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
298
    <xslo:for-each select="marc:subfield">
300
    <xslo:for-each select="marc:subfield">
299
      <xslo:if test="contains('a', @code)">
301
      <xslo:if test="contains('a', @code)">
300
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s">
302
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p">
301
          <xslo:value-of select="."/>
303
          <xslo:value-of select="."/>
302
        </z:index>
304
        </z:index>
303
      </xslo:if>
305
      </xslo:if>
Lines 2430-2435 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2430
      <xslo:value-of select="."/>
2432
      <xslo:value-of select="."/>
2431
    </z:index>
2433
    </z:index>
2432
  </xslo:template>
2434
  </xslo:template>
2435
  <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
2436
    <xslo:variable name="chop">
2437
      <xslo:choose>
2438
        <xslo:when test="not(number(@ind2))">0</xslo:when>
2439
        <xslo:otherwise>
2440
          <xslo:value-of select="number(@ind2)"/>
2441
        </xslo:otherwise>
2442
      </xslo:choose>
2443
    </xslo:variable>
2444
    <z:index name="Title:s">
2445
      <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
2446
    </z:index>
2447
  </xslo:template>
2433
  <xslo:template name="chopPunctuation">
2448
  <xslo:template name="chopPunctuation">
2434
    <xslo:param name="chopString"/>
2449
    <xslo:param name="chopString"/>
2435
    <xslo:variable name="length" select="string-length($chopString)"/>
2450
    <xslo:variable name="length" select="string-length($chopString)"/>
(-)a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl (-1 / +13 lines)
Lines 39-44 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
39
            <xslo:template match="text()" mode="index_heading_conditional"/>
39
            <xslo:template match="text()" mode="index_heading_conditional"/>
40
            <xslo:template match="text()" mode="index_match_heading"/>
40
            <xslo:template match="text()" mode="index_match_heading"/>
41
            <xslo:template match="text()" mode="index_subject_thesaurus"/>
41
            <xslo:template match="text()" mode="index_subject_thesaurus"/>
42
            <xslo:template match="text()" mode="index_sort_tit"/>
42
            <xslo:template match="/">
43
            <xslo:template match="/">
43
                <xslo:if test="marc:collection">
44
                <xslo:if test="marc:collection">
44
                    <collection>
45
                    <collection>
Lines 65-70 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
65
                    <xslo:apply-templates mode="index_match_heading"/>
66
                    <xslo:apply-templates mode="index_match_heading"/>
66
                    <xslo:apply-templates mode="index_subject_thesaurus"/>
67
                    <xslo:apply-templates mode="index_subject_thesaurus"/>
67
                    <xslo:apply-templates mode="index_all"/>
68
                    <xslo:apply-templates mode="index_all"/>
69
                    <xslo:apply-templates mode="index_sort_tit"/>
68
                </z:record>
70
                </z:record>
69
            </xslo:template>
71
            </xslo:template>
70
72
Lines 82-87 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
82
                    <xslo:value-of select="."/>
84
                    <xslo:value-of select="."/>
83
                </z:index>
85
                </z:index>
84
            </xslo:template>
86
            </xslo:template>
87
            <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
88
                <xslo:variable name="chop">
89
                    <xslo:choose>
90
                        <xslo:when test="not(number(@ind2))">0</xslo:when>
91
                        <xslo:otherwise><xslo:value-of select="number(@ind2)"/></xslo:otherwise>
92
                    </xslo:choose>
93
                </xslo:variable>
94
                <z:index name="Title:s">
95
                    <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
96
                </z:index>
97
            </xslo:template>
85
            <xslo:template name="chopPunctuation">
98
            <xslo:template name="chopPunctuation">
86
            <xslo:param name="chopString"/>
99
            <xslo:param name="chopString"/>
87
                <xslo:variable name="length" select="string-length($chopString)"/>
100
                <xslo:variable name="length" select="string-length($chopString)"/>
88
- 

Return to bug 14332