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

(-)a/Koha/Biblio.pm (-3 / +3 lines)
Lines 1018-1030 sub get_volumes_query { Link Here
1018
            if ( !defined($pf003) ) {
1018
            if ( !defined($pf003) ) {
1019
1019
1020
                # search for linking_field$w='Host001'
1020
                # search for linking_field$w='Host001'
1021
                $searchstr .= "rcn:" . $pf001->data();
1021
                $searchstr .= "rcn-volumes:" . $pf001->data();
1022
            } else {
1022
            } else {
1023
                $searchstr .= "(";
1023
                $searchstr .= "(";
1024
1024
1025
                # search for (linking_field$w='Host001' and 003='Host003') or linking_field$w='(Host003)Host001'
1025
                # search for (linking_field$w='Host001' and 003='Host003') or linking_field$w='(Host003)Host001'
1026
                $searchstr .= "(rcn:" . $pf001->data() . " AND cni:" . $pf003->data() . ")";
1026
                $searchstr .= "(rcn-volumes:" . $pf001->data() . " AND cni:" . $pf003->data() . ")";
1027
                $searchstr .= " OR rcn:\"" . $pf003->data() . " " . $pf001->data() . "\"";
1027
                $searchstr .= " OR rcn-volumes:\"" . $pf003->data() . " " . $pf001->data() . "\"";
1028
                $searchstr .= ")";
1028
                $searchstr .= ")";
1029
            }
1029
            }
1030
1030
(-)a/etc/zebradb/biblios/etc/bib1.att (+1 lines)
Lines 174-179 att 1094 Identifier-DOI Link Here
174
att 1095    language-original
174
att 1095    language-original
175
att 1096    Title-later
175
att 1096    Title-later
176
att 1097    Multipart-resource-level
176
att 1097    Multipart-resource-level
177
att 1098    rcn-volumes
177
178
178
att 1185    Performer
179
att 1185    Performer
179
att 1186    Performer-Individual
180
att 1186    Performer-Individual
(-)a/etc/zebradb/ccl.properties (+2 lines)
Lines 1291-1293 itg Index-term-genre Link Here
1291
1291
1292
ln-audio 1=9906
1292
ln-audio 1=9906
1293
ln-subtitle 1=9907
1293
ln-subtitle 1=9907
1294
1295
rcn-volumes 1=1098
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+5 lines)
Lines 1013-1018 Link Here
1013
  <!--record.abs line 232: melm 773$w      Record-control-number-->
1013
  <!--record.abs line 232: melm 773$w      Record-control-number-->
1014
  <index_subfields tag="773" subfields="w">
1014
  <index_subfields tag="773" subfields="w">
1015
    <target_index>Record-control-number:w</target_index>
1015
    <target_index>Record-control-number:w</target_index>
1016
    <target_index>rcn-volumes:w</target_index>
1016
  </index_subfields>
1017
  </index_subfields>
1017
  <!--record.abs line 233: melm 774$w      Record-control-number-->
1018
  <!--record.abs line 233: melm 774$w      Record-control-number-->
1018
  <index_subfields tag="774" subfields="w">
1019
  <index_subfields tag="774" subfields="w">
Lines 1093-1098 Link Here
1093
  <!--record.abs line 248: melm 800$w      Record-control-number-->
1094
  <!--record.abs line 248: melm 800$w      Record-control-number-->
1094
  <index_subfields tag="800" subfields="w">
1095
  <index_subfields tag="800" subfields="w">
1095
    <target_index>Record-control-number:w</target_index>
1096
    <target_index>Record-control-number:w</target_index>
1097
    <target_index>rcn-volumes:w</target_index>
1096
  </index_subfields>
1098
  </index_subfields>
1097
  <!--record.abs line 249: melm 800        Author,Author-name-personal,Name,Personal-name-->
1099
  <!--record.abs line 249: melm 800        Author,Author-name-personal,Name,Personal-name-->
1098
  <index_data_field tag="800">
1100
  <index_data_field tag="800">
Lines 1118-1123 Link Here
1118
  <!--record.abs line 252: melm 810$w      Record-control-number-->
1120
  <!--record.abs line 252: melm 810$w      Record-control-number-->
1119
  <index_subfields tag="810" subfields="w">
1121
  <index_subfields tag="810" subfields="w">
1120
    <target_index>Record-control-number:w</target_index>
1122
    <target_index>Record-control-number:w</target_index>
1123
    <target_index>rcn-volumes:w</target_index>
1121
  </index_subfields>
1124
  </index_subfields>
1122
  <!--record.abs line 253: melm 810$9      Koha-Auth-Number-->
1125
  <!--record.abs line 253: melm 810$9      Koha-Auth-Number-->
1123
  <index_subfields tag="810" subfields="9">
1126
  <index_subfields tag="810" subfields="9">
Lines 1152-1157 Link Here
1152
  <!--record.abs line 259: melm 811$w      Record-control-number-->
1155
  <!--record.abs line 259: melm 811$w      Record-control-number-->
1153
  <index_subfields tag="811" subfields="w">
1156
  <index_subfields tag="811" subfields="w">
1154
    <target_index>Record-control-number:w</target_index>
1157
    <target_index>Record-control-number:w</target_index>
1158
    <target_index>rcn-volumes:w</target_index>
1155
  </index_subfields>
1159
  </index_subfields>
1156
  <!--record.abs line 260: melm 811        Author,Author-name-corporate,Name,Conference-name-->
1160
  <!--record.abs line 260: melm 811        Author,Author-name-corporate,Name,Conference-name-->
1157
  <index_data_field tag="811">
1161
  <index_data_field tag="811">
Lines 1163-1168 Link Here
1163
  <!--record.abs line 261: melm 830$w      Record-control-number-->
1167
  <!--record.abs line 261: melm 830$w      Record-control-number-->
1164
  <index_subfields tag="830" subfields="w">
1168
  <index_subfields tag="830" subfields="w">
1165
    <target_index>Record-control-number:w</target_index>
1169
    <target_index>Record-control-number:w</target_index>
1170
    <target_index>rcn-volumes:w</target_index>
1166
  </index_subfields>
1171
  </index_subfields>
1167
  <!--record.abs line 262: melm 830$9      Koha-Auth-Number-->
1172
  <!--record.abs line 262: melm 830$9      Koha-Auth-Number-->
1168
  <index_subfields tag="830" subfields="9">
1173
  <index_subfields tag="830" subfields="9">
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-5 / +5 lines)
Lines 1004-1010 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1004
    </xslo:for-each>
1004
    </xslo:for-each>
1005
    <xslo:for-each select="marc:subfield">
1005
    <xslo:for-each select="marc:subfield">
1006
      <xslo:if test="contains('w', @code)">
1006
      <xslo:if test="contains('w', @code)">
1007
        <z:index name="Record-control-number:w">
1007
        <z:index name="Record-control-number:w rcn-volumes:w">
1008
          <xslo:value-of select="."/>
1008
          <xslo:value-of select="."/>
1009
        </z:index>
1009
        </z:index>
1010
      </xslo:if>
1010
      </xslo:if>
Lines 1140-1146 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1140
    </xslo:for-each>
1140
    </xslo:for-each>
1141
    <xslo:for-each select="marc:subfield">
1141
    <xslo:for-each select="marc:subfield">
1142
      <xslo:if test="contains('w', @code)">
1142
      <xslo:if test="contains('w', @code)">
1143
        <z:index name="Record-control-number:w">
1143
        <z:index name="Record-control-number:w rcn-volumes:w">
1144
          <xslo:value-of select="."/>
1144
          <xslo:value-of select="."/>
1145
        </z:index>
1145
        </z:index>
1146
      </xslo:if>
1146
      </xslo:if>
Lines 1163-1169 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1163
    </xslo:for-each>
1163
    </xslo:for-each>
1164
    <xslo:for-each select="marc:subfield">
1164
    <xslo:for-each select="marc:subfield">
1165
      <xslo:if test="contains('w', @code)">
1165
      <xslo:if test="contains('w', @code)">
1166
        <z:index name="Record-control-number:w">
1166
        <z:index name="Record-control-number:w rcn-volumes:w">
1167
          <xslo:value-of select="."/>
1167
          <xslo:value-of select="."/>
1168
        </z:index>
1168
        </z:index>
1169
      </xslo:if>
1169
      </xslo:if>
Lines 1200-1206 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1200
    </xslo:for-each>
1200
    </xslo:for-each>
1201
    <xslo:for-each select="marc:subfield">
1201
    <xslo:for-each select="marc:subfield">
1202
      <xslo:if test="contains('w', @code)">
1202
      <xslo:if test="contains('w', @code)">
1203
        <z:index name="Record-control-number:w">
1203
        <z:index name="Record-control-number:w rcn-volumes:w">
1204
          <xslo:value-of select="."/>
1204
          <xslo:value-of select="."/>
1205
        </z:index>
1205
        </z:index>
1206
      </xslo:if>
1206
      </xslo:if>
Lines 1209-1215 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
1209
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
1209
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='830']">
1210
    <xslo:for-each select="marc:subfield">
1210
    <xslo:for-each select="marc:subfield">
1211
      <xslo:if test="contains('w', @code)">
1211
      <xslo:if test="contains('w', @code)">
1212
        <z:index name="Record-control-number:w">
1212
        <z:index name="Record-control-number:w rcn-volumes:w">
1213
          <xslo:value-of select="."/>
1213
          <xslo:value-of select="."/>
1214
        </z:index>
1214
        </z:index>
1215
      </xslo:if>
1215
      </xslo:if>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-2 / +1 lines)
Lines 244-250 Link Here
244
            <a>
244
            <a>
245
            <xsl:choose>
245
            <xsl:choose>
246
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
246
            <xsl:when test="$UseControlNumber = '1' and marc:controlfield[@tag=001]">
247
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+NOT+(bib-level:a+OR+bib-level:b)</xsl:attribute>
247
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=rcn-volumes:<xsl:value-of select="str:encode-uri(marc:controlfield[@tag=001], true())"/>+NOT+(bib-level:a+OR+bib-level:b)</xsl:attribute>
248
            </xsl:when>
248
            </xsl:when>
249
            <xsl:otherwise>
249
            <xsl:otherwise>
250
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=title-series,phr:"<xsl:value-of select="$title"/>"+OR+host-item,phr="<xsl:value-of select="$title"/>"+NOT+(bib-level:a+OR+bib-level:b)</xsl:attribute>
250
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=title-series,phr:"<xsl:value-of select="$title"/>"+OR+host-item,phr="<xsl:value-of select="$title"/>"+NOT+(bib-level:a+OR+bib-level:b)</xsl:attribute>
251
- 

Return to bug 39287