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

(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml (-4 / +19 lines)
Lines 1562-1573 Link Here
1562
    <target_index>Local-classification:w</target_index>
1562
    <target_index>Local-classification:w</target_index>
1563
    <target_index>Local-classification:p</target_index>
1563
    <target_index>Local-classification:p</target_index>
1564
  </index_data_field>
1564
  </index_data_field>
1565
  <!--record.abs line 331: melm 995$2		lost,lost:n,item-->
1565
  <!--record.abs melm 995$1   damaged,damaged:n,item-->
1566
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="1">
1567
    <target_index>damaged:w</target_index>
1568
    <target_index>damaged:n</target_index>
1569
    <target_index>item:w</target_index>
1570
  </index_subfields>
1571
  <!--record.abs melm 995$2    lost,lost:n,item-->
1566
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="2">
1572
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="2">
1567
    <target_index>lost:w</target_index>
1573
    <target_index>lost:w</target_index>
1568
    <target_index>lost:n</target_index>
1574
    <target_index>lost:n</target_index>
1569
    <target_index>item:w</target_index>
1575
    <target_index>item:w</target_index>
1570
  </index_subfields>
1576
  </index_subfields>
1577
  <!--record.abs melm 995$3    withdrawn,withdrawn:n,item-->
1578
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="3">
1579
    <target_index>withdrawn:w</target_index>
1580
    <target_index>withdrawn:n</target_index>
1581
    <target_index>item:w</target_index>
1582
  </index_subfields>
1571
  <!--record.abs line 332: melm 995$a		homebranch,Host-item,item-->
1583
  <!--record.abs line 332: melm 995$a		homebranch,Host-item,item-->
1572
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="a">
1584
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="a">
1573
    <target_index>homebranch:w</target_index>
1585
    <target_index>homebranch:w</target_index>
Lines 1592-1610 Link Here
1592
    <target_index>Record-Source:w</target_index>
1604
    <target_index>Record-Source:w</target_index>
1593
    <target_index>item:w</target_index>
1605
    <target_index>item:w</target_index>
1594
  </index_subfields>
1606
  </index_subfields>
1595
  <!--record.abs line 336: melm 995$e      location,item-->
1607
  <!--record.abs melm 995$e    location,location:p,item-->
1596
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="e">
1608
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="e">
1597
    <target_index>location:w</target_index>
1609
    <target_index>location:w</target_index>
1610
    <target_index>location:p</target_index>
1598
    <target_index>item:w</target_index>
1611
    <target_index>item:w</target_index>
1599
  </index_subfields>
1612
  </index_subfields>
1600
  <!--record.abs line 337: melm 995$f		barcode,item-->
1613
  <!--record.abs line 337: melm 995$f		barcode,barcode:p,item-->
1601
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="f">
1614
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="f">
1602
    <target_index>barcode:w</target_index>
1615
    <target_index>barcode:w</target_index>
1616
    <target_index>barcode:p</target_index>
1603
    <target_index>item:w</target_index>
1617
    <target_index>item:w</target_index>
1604
  </index_subfields>
1618
  </index_subfields>
1605
  <!--record.abs line 338: melm 995$h		ccode,item-->
1619
  <!--record.abs line 338: melm 995$h		ccode,ccode:p,item-->
1606
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="h">
1620
  <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="995" subfields="h">
1607
    <target_index>ccode:w</target_index>
1621
    <target_index>ccode:w</target_index>
1622
    <target_index>ccode:p</target_index>
1608
    <target_index>item:w</target_index>
1623
    <target_index>item:w</target_index>
1609
  </index_subfields>
1624
  </index_subfields>
1610
  <!--record.abs line 339: melm 995$j      LC-card-number:s,item-->
1625
  <!--record.abs line 339: melm 995$j      LC-card-number:s,item-->
(-)a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl (-3 / +17 lines)
Lines 370-375 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
370
      </xslo:if>
370
      </xslo:if>
371
    </xslo:for-each>
371
    </xslo:for-each>
372
    <xslo:for-each select="marc:subfield">
372
    <xslo:for-each select="marc:subfield">
373
      <xslo:if test="contains('1', @code)">
374
        <z:index name="damaged:w damaged:n item:w">
375
          <xslo:value-of select="."/>
376
        </z:index>
377
      </xslo:if>
378
    </xslo:for-each>
379
    <xslo:for-each select="marc:subfield">
373
      <xslo:if test="contains('2', @code)">
380
      <xslo:if test="contains('2', @code)">
374
        <z:index name="lost:w lost:n item:w">
381
        <z:index name="lost:w lost:n item:w">
375
          <xslo:value-of select="."/>
382
          <xslo:value-of select="."/>
Lines 377-382 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
377
      </xslo:if>
384
      </xslo:if>
378
    </xslo:for-each>
385
    </xslo:for-each>
379
    <xslo:for-each select="marc:subfield">
386
    <xslo:for-each select="marc:subfield">
387
      <xslo:if test="contains('3', @code)">
388
        <z:index name="withdrawn:w withdrawn:n item:w">
389
          <xslo:value-of select="."/>
390
        </z:index>
391
      </xslo:if>
392
    </xslo:for-each>
393
    <xslo:for-each select="marc:subfield">
380
      <xslo:if test="contains('a', @code)">
394
      <xslo:if test="contains('a', @code)">
381
        <z:index name="homebranch:w Host-item:w item:w">
395
        <z:index name="homebranch:w Host-item:w item:w">
382
          <xslo:value-of select="."/>
396
          <xslo:value-of select="."/>
Lines 406-426 definition file (probably something like {biblio,authority}-koha-indexdefs.xml) Link Here
406
    </xslo:for-each>
420
    </xslo:for-each>
407
    <xslo:for-each select="marc:subfield">
421
    <xslo:for-each select="marc:subfield">
408
      <xslo:if test="contains('e', @code)">
422
      <xslo:if test="contains('e', @code)">
409
        <z:index name="location:w item:w">
423
        <z:index name="location:w location:p item:w">
410
          <xslo:value-of select="."/>
424
          <xslo:value-of select="."/>
411
        </z:index>
425
        </z:index>
412
      </xslo:if>
426
      </xslo:if>
413
    </xslo:for-each>
427
    </xslo:for-each>
414
    <xslo:for-each select="marc:subfield">
428
    <xslo:for-each select="marc:subfield">
415
      <xslo:if test="contains('f', @code)">
429
      <xslo:if test="contains('f', @code)">
416
        <z:index name="barcode:w item:w">
430
        <z:index name="barcode:w barcode:p item:w">
417
          <xslo:value-of select="."/>
431
          <xslo:value-of select="."/>
418
        </z:index>
432
        </z:index>
419
      </xslo:if>
433
      </xslo:if>
420
    </xslo:for-each>
434
    </xslo:for-each>
421
    <xslo:for-each select="marc:subfield">
435
    <xslo:for-each select="marc:subfield">
422
      <xslo:if test="contains('h', @code)">
436
      <xslo:if test="contains('h', @code)">
423
        <z:index name="ccode:w item:w">
437
        <z:index name="ccode:w ccode:p item:w">
424
          <xslo:value-of select="."/>
438
          <xslo:value-of select="."/>
425
        </z:index>
439
        </z:index>
426
      </xslo:if>
440
      </xslo:if>
(-)a/etc/zebradb/marc_defs/unimarc/biblios/record.abs (-15 / +84 lines)
Lines 496-515 melm 680 LC-call-number:w,LC-call-number:p Link Here
496
# Other class numbers // see Marc21 084
496
# Other class numbers // see Marc21 084
497
melm 686		Local-classification:w,Local-classification:p
497
melm 686		Local-classification:w,Local-classification:p
498
498
499
#############"# item information (based on 995) ###############
499
500
melm 995$2		lost,lost:n,item
500
############## KOHA ITEM INFORMATION (based on 995) ###############
501
melm 995$a		homebranch,Host-item,item
501
# Koha specific : $1, $2, $3
502
melm 995$b		homebranch,Host-item,item
502
melm 995$1    damaged,damaged:n
503
melm 995$c		holdingbranch,Record-Source,item
503
melm 995$2    lost,lost:n
504
melm 995$d		holdingbranch,Record-Source,item
504
melm 995$3    withdrawn,withdrawn:n
505
melm 995$e      location,item
505
506
melm 995$f		barcode,item
506
# most subfields are based on "995 recommandation"
507
melm 995$h		ccode,item
507
# used by French libraries for exchanging holding information
508
melm 995$j      LC-card-number:s,item
508
# source: http://www.abes.fr/content/download/1949/8319/version/1/file/pdf_r995.pdf
509
melm 995$k      Call-Number,Local-classification,lcn,Call-Number:p,Local-classification:p,lcn:p,item,Local-classification:s
509
# (last version, 2005)
510
melm 995$n      onloan:d,onloan:n,onloan:s,onloan:w,item
510
# Note that :
511
melm 995$u      Note,Note:p,item
511
# - the use of $e,$h,$j in Koha and in 995 recommandation is different
512
melm  995       item   # just to index every subfield
512
# - $i, $m, $l, $o, $p, $q, $v, $w, $x, $y, $z are defined in 995 recommandation, but not used by Koha
513
514
# 6 blocs of subfields are defined in 995 recommandation
515
516
# 1. Information about origin of the document
517
# $a - Origin of the document, free text
518
# Not used in Sudoc network
519
melm 995$a    homebranch,Host-item,item
520
# $a - Origin of the document, coded information
521
melm 995$b    homebranch,Host-item,item
522
# $c - Lending or holding library - free text
523
melm 995$c    holdingbranch,Record-Source,item
524
# $d - Lending or holding library - coded information
525
melm 995$d    holdingbranch,Record-Source,item
526
527
# 2. Identification and classification
528
# $e - shelving information
529
# (in 995 recommandation : $e - detailed genre)
530
melm 995$e    location,location:p,item
531
# $f - barcode - complete
532
melm 995$f    barcode,barcode:p,item
533
# $h - ccode
534
# (in 995 recommandation : $h - barcode - prefix)
535
melm 995$h    ccode,ccode:p,item
536
# $i - not used currently
537
# (in 995 recommandation : $i - barcode - suffix)
538
# $j - LC-card-number,
539
# (in 995 recommandation : $j - section, i.e. part of a library)
540
melm 995$j    LC-card-number:s,item
541
# $k - callnumber
542
melm 995$k    Call-Number,Local-classification,Call-Number:p,Local-classification:p,Local-classification:s,item
543
# $l - not used currently
544
# (in 995 recommandation : $l - volumes)
545
546
# 3 - Checkout and deposal information
547
# $m - not used currently
548
# (in 995 recommandation : $m - Date of loan or deposit)
549
# $n - Expiration of loan
550
melm 995$n    onloan:d,onloan:n,onloan:s,onloan:w,item
551
# $o - not used currently
552
# (in 995 recommandation : $o - Circulation type (not for loan))
553
554
# 4 - Sorting and statistic information
555
# $p - not used currently
556
# (in 955 recommandation : $p - Serial)
557
# $q - not used currently
558
# (in 995 recommandation : $q - Target audience (age))
559
# $r - Type of document and carriage
560
melm 995$r    itemtype:w,itemtype:p,itype:w,itype:p,item
561
# $s - not used currently
562
# (in 995 recommandation : $s - Sorting element)
563
# $t - not used currently
564
# (in 995 recommandation : $t - Genre : fiction vs non-fiction)
565
566
# 5 - Notes
567
# $u - item note
568
melm 995$u    Note,Note:p,item
569
# $v - not used currently
570
# (in 995 recommandation : $v - serial issue note)
571
572
# 6 - Target of document
573
# $w - not used currently
574
# (in 995 recommandation : $w - target library - free text)
575
# $x - not used currently
576
# (in 995 recommandation : $x - target library - coded information)
577
# $y - not used currently
578
# (in 995 recommandation : $y - target network of libraries - free text)
579
# $z - not used currently
580
# (in 995 recommandation : $z - target network of libraries - coded information)
581
582
melm 995    item   # just to index every subfield
513
583
514
### biblioitems information (based on 942) ######
584
### biblioitems information (based on 942) ######
515
melm 942$0      totalissues:n,totalissues:s
585
melm 942$0      totalissues:n,totalissues:s
516
- 

Return to bug 9830