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

(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (+38 lines)
Lines 1284-1287 Link Here
1284
    <target_index>Note:w</target_index>
1284
    <target_index>Note:w</target_index>
1285
    <target_index>Note:p</target_index>
1285
    <target_index>Note:p</target_index>
1286
  </index_subfields>
1286
  </index_subfields>
1287
1288
  <facet tag="100" subfields="a">
1289
    <target_index>au:0</target_index>
1290
  </facet>
1291
  <facet tag="110" subfields="a">
1292
    <target_index>au:0</target_index>
1293
  </facet>
1294
  <facet tag="440" subfields="a">
1295
    <target_index>se:0</target_index>
1296
  </facet>
1297
  <facet tag="490" subfields="a">
1298
    <target_index>se:0</target_index>
1299
  </facet>
1300
  <facet tag="630" subfields="a">
1301
    <target_index>su-ut:0</target_index>
1302
  </facet>
1303
  <facet tag="650" subfields="a">
1304
    <target_index>su-to:0</target_index>
1305
  </facet>
1306
  <facet tag="651" subfields="a">
1307
    <target_index>su-geo:0</target_index>
1308
  </facet>
1309
  <facet tag="700" subfields="a">
1310
    <target_index>au:0</target_index>
1311
  </facet>
1312
  <facet tag="942" subfields="c">
1313
    <target_index>itype:0</target_index>
1314
  </facet>
1315
  <facet tag="952" subfields="a">
1316
    <target_index>homebranch:0</target_index>
1317
  </facet>
1318
  <facet tag="952" subfields="b">
1319
    <target_index>holdingbranch:0</target_index>
1320
  </facet>
1321
  <facet tag="952" subfields="c">
1322
    <target_index>location:0</target_index>
1323
  </facet>
1324
1287
</kohaidx:index_defs>
1325
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-1 / +86 lines)
Lines 12-17 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
12
  <xslo:template match="text()"/>
12
  <xslo:template match="text()"/>
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_facets"/>
15
  <xslo:template match="text()" mode="index_heading"/>
16
  <xslo:template match="text()" mode="index_heading"/>
16
  <xslo:template match="text()" mode="index_heading_conditional"/>
17
  <xslo:template match="text()" mode="index_heading_conditional"/>
17
  <xslo:template match="text()" mode="index_match_heading"/>
18
  <xslo:template match="text()" mode="index_match_heading"/>
Lines 35-40 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
35
      <xslo:apply-templates/>
36
      <xslo:apply-templates/>
36
      <xslo:apply-templates mode="index_subfields"/>
37
      <xslo:apply-templates mode="index_subfields"/>
37
      <xslo:apply-templates mode="index_data_field"/>
38
      <xslo:apply-templates mode="index_data_field"/>
39
      <xslo:apply-templates mode="index_facets"/>
38
      <xslo:apply-templates mode="index_heading"/>
40
      <xslo:apply-templates mode="index_heading"/>
39
      <xslo:apply-templates mode="index_heading_conditional"/>
41
      <xslo:apply-templates mode="index_heading_conditional"/>
40
      <xslo:apply-templates mode="index_match_heading"/>
42
      <xslo:apply-templates mode="index_match_heading"/>
Lines 2344-2349 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
2344
      <xslo:value-of select="normalize-space($raw_heading)"/>
2346
      <xslo:value-of select="normalize-space($raw_heading)"/>
2345
    </z:index>
2347
    </z:index>
2346
  </xslo:template>
2348
  </xslo:template>
2349
  <xslo:template mode="index_facets" match="marc:datafield[@tag='100']">
2350
    <xslo:if test="not(@ind1='z')">
2351
      <z:index name="au:0">
2352
        <xslo:value-of select="marc:subfield[@code='a']"/>
2353
      </z:index>
2354
    </xslo:if>
2355
  </xslo:template>
2356
  <xslo:template mode="index_facets" match="marc:datafield[@tag='110']">
2357
    <xslo:if test="not(@ind1='z')">
2358
      <z:index name="au:0">
2359
        <xslo:value-of select="marc:subfield[@code='a']"/>
2360
      </z:index>
2361
    </xslo:if>
2362
  </xslo:template>
2363
  <xslo:template mode="index_facets" match="marc:datafield[@tag='440']">
2364
    <xslo:if test="not(@ind1='z')">
2365
      <z:index name="se:0">
2366
        <xslo:value-of select="marc:subfield[@code='a']"/>
2367
      </z:index>
2368
    </xslo:if>
2369
  </xslo:template>
2370
  <xslo:template mode="index_facets" match="marc:datafield[@tag='490']">
2371
    <xslo:if test="not(@ind1='z')">
2372
      <z:index name="se:0">
2373
        <xslo:value-of select="marc:subfield[@code='a']"/>
2374
      </z:index>
2375
    </xslo:if>
2376
  </xslo:template>
2377
  <xslo:template mode="index_facets" match="marc:datafield[@tag='630']">
2378
    <xslo:if test="not(@ind1='z')">
2379
      <z:index name="su-ut:0">
2380
        <xslo:value-of select="marc:subfield[@code='a']"/>
2381
      </z:index>
2382
    </xslo:if>
2383
  </xslo:template>
2384
  <xslo:template mode="index_facets" match="marc:datafield[@tag='650']">
2385
    <xslo:if test="not(@ind1='z')">
2386
      <z:index name="su-to:0">
2387
        <xslo:value-of select="marc:subfield[@code='a']"/>
2388
      </z:index>
2389
    </xslo:if>
2390
  </xslo:template>
2391
  <xslo:template mode="index_facets" match="marc:datafield[@tag='651']">
2392
    <xslo:if test="not(@ind1='z')">
2393
      <z:index name="su-geo:0">
2394
        <xslo:value-of select="marc:subfield[@code='a']"/>
2395
      </z:index>
2396
    </xslo:if>
2397
  </xslo:template>
2398
  <xslo:template mode="index_facets" match="marc:datafield[@tag='700']">
2399
    <xslo:if test="not(@ind1='z')">
2400
      <z:index name="au:0">
2401
        <xslo:value-of select="marc:subfield[@code='a']"/>
2402
      </z:index>
2403
    </xslo:if>
2404
  </xslo:template>
2405
  <xslo:template mode="index_facets" match="marc:datafield[@tag='942']">
2406
    <xslo:if test="not(@ind1='z')">
2407
      <z:index name="itype:0">
2408
        <xslo:value-of select="marc:subfield[@code='c']"/>
2409
      </z:index>
2410
    </xslo:if>
2411
  </xslo:template>
2412
  <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
2413
    <xslo:if test="not(@ind1='z')">
2414
      <z:index name="homebranch:0">
2415
        <xslo:value-of select="marc:subfield[@code='a']"/>
2416
      </z:index>
2417
    </xslo:if>
2418
  </xslo:template>
2419
  <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
2420
    <xslo:if test="not(@ind1='z')">
2421
      <z:index name="holdingbranch:0">
2422
        <xslo:value-of select="marc:subfield[@code='b']"/>
2423
      </z:index>
2424
    </xslo:if>
2425
  </xslo:template>
2426
  <xslo:template mode="index_facets" match="marc:datafield[@tag='952']">
2427
    <xslo:if test="not(@ind1='z')">
2428
      <z:index name="location:0">
2429
        <xslo:value-of select="marc:subfield[@code='c']"/>
2430
      </z:index>
2431
    </xslo:if>
2432
  </xslo:template>
2347
  <xslo:template mode="index_all" match="text()">
2433
  <xslo:template mode="index_all" match="text()">
2348
    <z:index name="Any:w Any:p">
2434
    <z:index name="Any:w Any:p">
2349
      <xslo:value-of select="."/>
2435
      <xslo:value-of select="."/>
2350
- 

Return to bug 11232