Bug 28337: Add System-control-number index to Zebra MARC21 files
To test:
1 - Apply patch
2 - Copy zebra files to destination:
cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml /etc/koha/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml
cp /kohadevbox/koha/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl
3 - Reindex authorities
4 - Edit an authority and add 035$aExpialodocious
5 - Export the authority
6 - Create a new record matchign rule:
Matching rule code: OCN
Description: Other control number
Match threshhold: 1000
Record type: Authority record
Search-index: Other-control-number
Score: 1000
Tag: 035
Subfields: a
7 - Stage the record and use the new matchign rule
8 - Match found!
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ecc08bf599
commit
3a30e2d66c
|
|
@ -14,6 +14,7 @@ att 9043 Kind-of-record
|
|||
att 9046 Record-status
|
||||
att 9050 Subject-heading-thesaurus
|
||||
att 9051 Previous-heading-see-from
|
||||
att 9052 Other-control-number
|
||||
|
||||
# Personal Name
|
||||
att 1 Personal-name
|
||||
|
|
|
|||
|
|
@ -888,6 +888,7 @@ Heading-use-main-or-added-entry 1=Heading-use-main-or-added-entry
|
|||
Heading-use-series-added-entry 1=Heading-use-series-added-entry
|
||||
Heading-use-subject-added-entry 1=Heading-use-subject-added-entry
|
||||
Subject-heading-thesaurus 1=Subject-heading-thesaurus
|
||||
Other-control-number 1=Other-control-number
|
||||
|
||||
###################################################
|
||||
### 2. BIB1 RELATION ATTRIBUTES
|
||||
|
|
|
|||
|
|
@ -55,6 +55,12 @@ authority-zebra-indexdefs.xsl`
|
|||
<kohaidx:target_index>LC-card-number:p</kohaidx:target_index>
|
||||
</kohaidx:index_subfields>
|
||||
|
||||
<!-- 035 Other control number -->
|
||||
<kohaidx:index_subfields tag="035" subfields="az">
|
||||
<kohaidx:target_index>Other-control-number:w</kohaidx:target_index>
|
||||
<kohaidx:target_index>Other-control-number:p</kohaidx:target_index>
|
||||
</kohaidx:index_subfields>
|
||||
|
||||
<!-- 040 cataloging agencies -->
|
||||
<kohaidx:index_subfields tag="040" subfields="acd">
|
||||
<kohaidx:target_index>Record-source:w</kohaidx:target_index>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
|||
</z:index>
|
||||
</xslo:template>
|
||||
<xslo:template match="marc:controlfield[@tag='001']">
|
||||
<z:index name="Local-Number:w Local-Number:n Local-Number:s Local-Number:p">
|
||||
<z:index name="Local-Number:w Local-Number:p Local-Number:n Local-Number:s">
|
||||
<xslo:value-of select="."/>
|
||||
</z:index>
|
||||
</xslo:template>
|
||||
|
|
@ -83,6 +83,15 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
|||
</xslo:if>
|
||||
</xslo:for-each>
|
||||
</xslo:template>
|
||||
<xslo:template mode="index_subfields" match="marc:datafield[@tag='035']">
|
||||
<xslo:for-each select="marc:subfield">
|
||||
<xslo:if test="contains('az', @code)">
|
||||
<z:index name="Other-control-number:w Other-control-number:p">
|
||||
<xslo:value-of select="."/>
|
||||
</z:index>
|
||||
</xslo:if>
|
||||
</xslo:for-each>
|
||||
</xslo:template>
|
||||
<xslo:template mode="index_subfields" match="marc:datafield[@tag='040']">
|
||||
<xslo:for-each select="marc:subfield">
|
||||
<xslo:if test="contains('acd', @code)">
|
||||
|
|
|
|||
Loading…
Reference in New Issue