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

(-)a/etc/searchengine/queryparser.yaml (-13 / +92 lines)
Lines 1196-1204 field_mappings: Link Here
1196
      label: ''
1196
      label: ''
1197
      aliases:
1197
      aliases:
1198
        - su
1198
        - su
1199
        - su-to
1199
    authority-number:
1200
        - su-geo
1201
        - su-ut
1202
    authority-number:
1200
    authority-number:
1203
      bib1_mapping:
1201
      bib1_mapping:
1204
        biblioserver:
1202
        biblioserver:
Lines 1270-1285 field_mappings: Link Here
1270
      aliases:
1268
      aliases:
1271
        - matchheading
1269
        - matchheading
1272
        - match-heading
1270
        - match-heading
1273
    name-personal:
1274
      bib1_mapping:
1275
        biblioserver:
1276
          1: 1009
1277
      enabled: 1
1278
      index: name-personal
1279
      label: Name-personal
1280
      aliases:
1281
        - name-personal
1282
        - su-na
1283
    index-term-genre:
1271
    index-term-genre:
1284
      bib1_mapping:
1272
      bib1_mapping:
1285
        biblioserver:
1273
        biblioserver:
Lines 1321-1326 field_mappings: Link Here
1321
      label: Start
1309
      label: Start
1322
      aliases:
1310
      aliases:
1323
        - start
1311
        - start
1312
    subject-chronological:
1313
      bib1_mapping:
1314
        biblioserver:
1315
          1: 1077
1316
      enabled: 1
1317
      index: subject-chronological
1318
      label: Subject-chronological
1319
      aliases:
1320
        - subject-chronological
1321
        - su-chrono
1322
    subject-division:
1323
      bib1_mapping:
1324
        biblioserver:
1325
          1: 47
1326
      enabled: 1
1327
      index: subject-division
1328
      label: Subject-division
1329
      aliases:
1330
        - subject-division
1331
    subject-genre-form:
1332
      bib1_mapping:
1333
        biblioserver:
1334
          1: 1075
1335
      enabled: 1
1336
      index: subject-genre-form
1337
      label: Subject-genre-form
1338
      aliases:
1339
        - subject-genre-form
1340
        - su-genre
1341
        - su-form
1342
    subject-name-conference:
1343
      bib1_mapping:
1344
        biblioserver:
1345
          1: 1073
1346
      enabled: 1
1347
      index: subject-name-conference
1348
      label: Subject-name-conference
1349
      aliases:
1350
        - subject-name-conference
1351
        - su-conf
1352
    subject-name-corporate:
1353
      bib1_mapping:
1354
        biblioserver:
1355
          1: 1074
1356
      enabled: 1
1357
      index: subject-name-corporate
1358
      label: Subject-name-corporate
1359
      aliases:
1360
        - subject-name-corporate
1361
        - su-corp
1362
    subject-name-geographical:
1363
      bib1_mapping:
1364
        biblioserver:
1365
          1: 1076
1366
      enabled: 1
1367
      index: subject-name-geographical
1368
      label: Subject-name-geographical
1369
      aliases:
1370
        - subject-name-geographical
1371
        - su-geo
1372
    subject-name-personal:
1373
      bib1_mapping:
1374
        biblioserver:
1375
          1: 1009
1376
      enabled: 1
1377
      index: subject-name-personal
1378
      label: Subject-name-personal
1379
      aliases:
1380
        - subject-name-personal
1381
        - su-na
1382
    subject-title:
1383
      bib1_mapping:
1384
        biblioserver:
1385
          1: 1078
1386
      enabled: 1
1387
      index: subject-title
1388
      label: Subject-title
1389
      aliases:
1390
        - subject-title
1391
        - su-ti
1392
        - su-ut
1393
    subject-topical:
1394
      bib1_mapping:
1395
        biblioserver:
1396
          1: 1079
1397
      enabled: 1
1398
      index: subject-topical
1399
      label: Subject-topical
1400
      aliases:
1401
        - subject-topical
1402
        - su-to
1324
  title:
1403
  title:
1325
    title:
1404
    title:
1326
      bib1_mapping:
1405
      bib1_mapping:
(-)a/etc/zebradb/ccl.properties (-3 / +3 lines)
Lines 739-748 Subject-genre-form 1=1075 Link Here
739
su-genre Subject-genre-form
739
su-genre Subject-genre-form
740
su-form Subject-genre-form
740
su-form Subject-genre-form
741
741
742
#Subject-geographical 1076                                 MARC21 651 ; UNIMARC 607
742
#Subject-name-geographical 1076                            MARC21 651 ; UNIMARC 607
743
#                                                          MARC21 AND UNIMARC 6XX$y
743
#                                                          MARC21 AND UNIMARC 6XX$y
744
Subject-geographical 1=1076
744
Subject-name-geographical 1=1076
745
su-geo Subject-geographical
745
su-geo Subject-name-geographical
746
746
747
#Subject-chronological 1077                                MARC21 and UNIMARC 6XX$z
747
#Subject-chronological 1077                                MARC21 and UNIMARC 6XX$z
748
Subject-chronological 1=1077
748
Subject-chronological 1=1077
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (-34 / +4 lines)
Lines 1232-1274 Link Here
1232
    <target_index>Koha-Auth-Number:w</target_index>
1232
    <target_index>Koha-Auth-Number:w</target_index>
1233
    <target_index>Koha-Auth-Number:n</target_index>
1233
    <target_index>Koha-Auth-Number:n</target_index>
1234
  </index_subfields>
1234
  </index_subfields>
1235
  <!--603$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1235
  <!--660$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1236
  <index_subfields tag="603" subfields="9">
1236
  <index_subfields tag="660" subfields="9">
1237
    <target_index>Koha-Auth-Number:w</target_index>
1237
    <target_index>Koha-Auth-Number:w</target_index>
1238
    <target_index>Koha-Auth-Number:n</target_index>
1238
    <target_index>Koha-Auth-Number:n</target_index>
1239
  </index_subfields>
1239
  </index_subfields>
1240
  <!--630$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1240
  <!--661$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1241
  <index_subfields tag="630" subfields="9">
1241
  <index_subfields tag="661" subfields="9">
1242
    <target_index>Koha-Auth-Number:w</target_index>
1243
    <target_index>Koha-Auth-Number:n</target_index>
1244
  </index_subfields>
1245
  <!--631$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1246
  <index_subfields tag="631" subfields="9">
1247
    <target_index>Koha-Auth-Number:w</target_index>
1248
    <target_index>Koha-Auth-Number:n</target_index>
1249
  </index_subfields>
1250
  <!--632$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1251
  <index_subfields tag="632" subfields="9">
1252
    <target_index>Koha-Auth-Number:w</target_index>
1253
    <target_index>Koha-Auth-Number:n</target_index>
1254
  </index_subfields>
1255
  <!--633$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1256
  <index_subfields tag="633" subfields="9">
1257
    <target_index>Koha-Auth-Number:w</target_index>
1258
    <target_index>Koha-Auth-Number:n</target_index>
1259
  </index_subfields>
1260
  <!--634$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1261
  <index_subfields tag="634" subfields="9">
1262
    <target_index>Koha-Auth-Number:w</target_index>
1263
    <target_index>Koha-Auth-Number:n</target_index>
1264
  </index_subfields>
1265
  <!--635$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1266
  <index_subfields tag="635" subfields="9">
1267
    <target_index>Koha-Auth-Number:w</target_index>
1268
    <target_index>Koha-Auth-Number:n</target_index>
1269
  </index_subfields>
1270
  <!--636$9      Koha-Auth-Number,Koha-Auth-Number:n-->
1271
  <index_subfields tag="636" subfields="9">
1272
    <target_index>Koha-Auth-Number:w</target_index>
1242
    <target_index>Koha-Auth-Number:w</target_index>
1273
    <target_index>Koha-Auth-Number:n</target_index>
1243
    <target_index>Koha-Auth-Number:n</target_index>
1274
  </index_subfields>
1244
  </index_subfields>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-63 / +4 lines)
Lines 2138-2189 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2138
      </xslo:if>
2138
      </xslo:if>
2139
    </xslo:for-each>
2139
    </xslo:for-each>
2140
  </xslo:template>
2140
  </xslo:template>
2141
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='603']">
2141
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='660']">
2142
    <xslo:for-each select="marc:subfield">
2143
      <xslo:if test="contains('9', @code)">
2144
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2145
          <xslo:value-of select="."/>
2146
        </z:index>
2147
      </xslo:if>
2148
    </xslo:for-each>
2149
  </xslo:template>
2150
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='630']">
2151
    <xslo:for-each select="marc:subfield">
2152
      <xslo:if test="contains('9', @code)">
2153
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2154
          <xslo:value-of select="."/>
2155
        </z:index>
2156
      </xslo:if>
2157
    </xslo:for-each>
2158
  </xslo:template>
2159
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='631']">
2160
    <xslo:for-each select="marc:subfield">
2161
      <xslo:if test="contains('9', @code)">
2162
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2163
          <xslo:value-of select="."/>
2164
        </z:index>
2165
      </xslo:if>
2166
    </xslo:for-each>
2167
  </xslo:template>
2168
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='632']">
2169
    <xslo:for-each select="marc:subfield">
2170
      <xslo:if test="contains('9', @code)">
2171
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2172
          <xslo:value-of select="."/>
2173
        </z:index>
2174
      </xslo:if>
2175
    </xslo:for-each>
2176
  </xslo:template>
2177
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='633']">
2178
    <xslo:for-each select="marc:subfield">
2179
      <xslo:if test="contains('9', @code)">
2180
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2181
          <xslo:value-of select="."/>
2182
        </z:index>
2183
      </xslo:if>
2184
    </xslo:for-each>
2185
  </xslo:template>
2186
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='634']">
2187
    <xslo:for-each select="marc:subfield">
2142
    <xslo:for-each select="marc:subfield">
2188
      <xslo:if test="contains('9', @code)">
2143
      <xslo:if test="contains('9', @code)">
2189
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2144
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
Lines 2191-2207 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2191
        </z:index>
2146
        </z:index>
2192
      </xslo:if>
2147
      </xslo:if>
2193
    </xslo:for-each>
2148
    </xslo:for-each>
2194
  </xslo:template>
2195
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='635']">
2196
    <xslo:for-each select="marc:subfield">
2149
    <xslo:for-each select="marc:subfield">
2197
      <xslo:if test="contains('9', @code)">
2150
      <xslo:if test="contains('a', @code)">
2198
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2151
        <z:index name="Subject:w Subject:p">
2199
          <xslo:value-of select="."/>
2152
          <xslo:value-of select="."/>
2200
        </z:index>
2153
        </z:index>
2201
      </xslo:if>
2154
      </xslo:if>
2202
    </xslo:for-each>
2155
    </xslo:for-each>
2203
  </xslo:template>
2156
  </xslo:template>
2204
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='636']">
2157
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='661']">
2205
    <xslo:for-each select="marc:subfield">
2158
    <xslo:for-each select="marc:subfield">
2206
      <xslo:if test="contains('9', @code)">
2159
      <xslo:if test="contains('9', @code)">
2207
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
2160
        <z:index name="Koha-Auth-Number:w Koha-Auth-Number:n">
Lines 2209-2225 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2209
        </z:index>
2162
        </z:index>
2210
      </xslo:if>
2163
      </xslo:if>
2211
    </xslo:for-each>
2164
    </xslo:for-each>
2212
  </xslo:template>
2213
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='660']">
2214
    <xslo:for-each select="marc:subfield">
2215
      <xslo:if test="contains('a', @code)">
2216
        <z:index name="Subject:w Subject:p">
2217
          <xslo:value-of select="."/>
2218
        </z:index>
2219
      </xslo:if>
2220
    </xslo:for-each>
2221
  </xslo:template>
2222
  <xslo:template mode="index_subfields" match="marc:datafield[@tag='661']">
2223
    <xslo:for-each select="marc:subfield">
2165
    <xslo:for-each select="marc:subfield">
2224
      <xslo:if test="contains('a', @code)">
2166
      <xslo:if test="contains('a', @code)">
2225
        <z:index name="Subject:w Subject:p">
2167
        <z:index name="Subject:w Subject:p">
2226
- 

Return to bug 9828