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 389-395 Link Here
389
    <target_index>Title-cover:s</target_index>
389
    <target_index>Title-cover:s</target_index>
390
    <target_index>Title:w</target_index>
390
    <target_index>Title:w</target_index>
391
    <target_index>Title:p</target_index>
391
    <target_index>Title:p</target_index>
392
    <target_index>Title:s</target_index>
393
  </index_subfields>
392
  </index_subfields>
394
  <!--record.abs line 114: melm 245$c      Author,Author-in-order:w,Author-in-order:p,Author-in-order:s-->
393
  <!--record.abs line 114: melm 245$c      Author,Author-in-order:w,Author-in-order:p,Author-in-order:s-->
395
  <index_subfields tag="245" subfields="c">
394
  <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 318-324 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
318
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
320
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='245']">
319
    <xslo:for-each select="marc:subfield">
321
    <xslo:for-each select="marc:subfield">
320
      <xslo:if test="contains('a', @code)">
322
      <xslo:if test="contains('a', @code)">
321
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p Title:s">
323
        <z:index name="Title-cover:w Title-cover:p Title-cover:s Title:w Title:p">
322
          <xslo:value-of select="."/>
324
          <xslo:value-of select="."/>
323
        </z:index>
325
        </z:index>
324
      </xslo:if>
326
      </xslo:if>
Lines 2464-2469 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2464
      <xslo:value-of select="."/>
2466
      <xslo:value-of select="."/>
2465
    </z:index>
2467
    </z:index>
2466
  </xslo:template>
2468
  </xslo:template>
2469
  <xslo:template mode="index_sort_tit" match="marc:datafield[@tag='245']">
2470
    <xslo:variable name="chop">
2471
      <xslo:choose>
2472
        <xslo:when test="not(number(@ind2))">0</xslo:when>
2473
        <xslo:otherwise>
2474
          <xslo:value-of select="number(@ind2)"/>
2475
        </xslo:otherwise>
2476
      </xslo:choose>
2477
    </xslo:variable>
2478
    <z:index name="Title:s">
2479
      <xslo:value-of select="substring(marc:subfield[@code='a'], $chop+1)"/>
2480
    </z:index>
2481
  </xslo:template>
2467
  <xslo:template name="chopPunctuation">
2482
  <xslo:template name="chopPunctuation">
2468
    <xslo:param name="chopString"/>
2483
    <xslo:param name="chopString"/>
2469
    <xslo:variable name="length" select="string-length($chopString)"/>
2484
    <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