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

(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml (-1 / +40 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs">
2
<kohaidx:index_defs xmlns:kohaidx="http://www.koha-community.org/schemas/index-defs"
3
                    xmlns="http://www.koha-community.org/schemas/index-defs">
3
  <!--record.abs line 40: xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)-->
4
  <!--record.abs line 40: xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)-->
4
  <id>marc:datafield[@tag='999']/marc:subfield[@code='c']</id>
5
  <id>marc:datafield[@tag='999']/marc:subfield[@code='c']</id>
5
  <index_leader xmlns="http://www.koha-community.org/schemas/index-defs" offset="0" length="5">
6
  <index_leader xmlns="http://www.koha-community.org/schemas/index-defs" offset="0" length="5">
Lines 1284-1287 Link Here
1284
    <target_index>Note:w</target_index>
1285
    <target_index>Note:w</target_index>
1285
    <target_index>Note:p</target_index>
1286
    <target_index>Note:p</target_index>
1286
  </index_subfields>
1287
  </index_subfields>
1288
1289
  <facet tag="100" subfields="a">
1290
    <target_index>au:0</target_index>
1291
  </facet>
1292
  <facet tag="110" subfields="a">
1293
    <target_index>au:0</target_index>
1294
  </facet>
1295
  <facet tag="440" subfields="a">
1296
    <target_index>se:0</target_index>
1297
  </facet>
1298
  <facet tag="490" subfields="a">
1299
    <target_index>se:0</target_index>
1300
  </facet>
1301
  <facet tag="630" subfields="a">
1302
    <target_index>su-ut:0</target_index>
1303
  </facet>
1304
  <facet tag="650" subfields="a">
1305
    <target_index>su-to:0</target_index>
1306
  </facet>
1307
  <facet tag="651" subfields="a">
1308
    <target_index>su-geo:0</target_index>
1309
  </facet>
1310
  <facet tag="700" subfields="a">
1311
    <target_index>au:0</target_index>
1312
  </facet>
1313
  <facet tag="942" subfields="c">
1314
    <target_index>itype:0</target_index>
1315
  </facet>
1316
  <facet tag="952" subfields="a">
1317
    <target_index>homebranch:0</target_index>
1318
  </facet>
1319
  <facet tag="952" subfields="b">
1320
    <target_index>holdingbranch:0</target_index>
1321
  </facet>
1322
  <facet tag="952" subfields="c">
1323
    <target_index>location:0</target_index>
1324
  </facet>
1325
1287
</kohaidx:index_defs>
1326
</kohaidx:index_defs>
(-)a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl (-2 / +79 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 27-33 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
27
    </xslo:if>
28
    </xslo:if>
28
  </xslo:template>
29
  </xslo:template>
29
  <xslo:template match="marc:record">
30
  <xslo:template match="marc:record">
30
    <xslo:variable name="idfield" select="normalize-space(marc:datafield[@tag='999']/marc:subfield[@code='c'])"/>
31
    <xslo:variable name="idfield" select="normalize-space()"/>
31
    <z:record type="update">
32
    <z:record type="update">
32
      <xslo:attribute name="z:id">
33
      <xslo:attribute name="z:id">
33
        <xslo:value-of select="$idfield"/>
34
        <xslo:value-of select="$idfield"/>
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
      <z:index name="holdingbranch:0">
2418
        <xslo:value-of select="marc:subfield[@code='b']"/>
2419
      </z:index>
2420
      <z:index name="location:0">
2421
        <xslo:value-of select="marc:subfield[@code='c']"/>
2422
      </z:index>
2423
    </xslo:if>
2424
  </xslo:template>
2347
  <xslo:template mode="index_all" match="text()">
2425
  <xslo:template mode="index_all" match="text()">
2348
    <z:index name="Any:w Any:p">
2426
    <z:index name="Any:w Any:p">
2349
      <xslo:value-of select="."/>
2427
      <xslo:value-of select="."/>
2350
- 

Return to bug 11232