Bug 28830: Add cni index for 003
This patch adds the cni/Control-number-identifier index to enable searches to use the 003 field. Test plan 1/ Apply patch 2/ Re-index using updated configurations 3/ Confirm cni:number searches yield the expected results 4/ Signoff Split-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Pasi Kallinen <pasi.kallinen@koha-suomi.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.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
cfe76ffc29
commit
deece7b76b
|
|
@ -996,6 +996,8 @@ sub getIndexes{
|
|||
'Conference-name-seealso',
|
||||
'Content-type',
|
||||
'Control-number',
|
||||
'Control-number-identifier',
|
||||
'cni',
|
||||
'copydate',
|
||||
'Corporate-name',
|
||||
'Corporate-name-heading',
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ our %index_field_convert = (
|
|||
'nt' => 'note',
|
||||
'notes' => 'note',
|
||||
'rcn' => 'record-control-number',
|
||||
'cni' => 'control-number-identifier',
|
||||
'su' => 'subject',
|
||||
'su-to' => 'subject',
|
||||
#'su-geo' => 'subject',
|
||||
|
|
|
|||
|
|
@ -3299,6 +3299,15 @@ biblios:
|
|||
sort: ~
|
||||
suggestible: ''
|
||||
type: ''
|
||||
control-number-identifier:
|
||||
label: control-number-identifier
|
||||
mappings:
|
||||
- facet: ''
|
||||
marc_field: 003
|
||||
marc_type: marc21
|
||||
sort: ~
|
||||
suggestible: ''
|
||||
type: ''
|
||||
record-source:
|
||||
label: record-source
|
||||
mappings:
|
||||
|
|
|
|||
|
|
@ -221,6 +221,7 @@ att 9010 cn-suffix
|
|||
att 9011 Suppress
|
||||
att 9012 Identifier-other
|
||||
att 9013 not-onloan-count
|
||||
att 9014 Control-number-identifier
|
||||
|
||||
# Items Index
|
||||
att 8001 withdrawn
|
||||
|
|
|
|||
|
|
@ -996,6 +996,9 @@ llength 1=llength
|
|||
Summary 1=Summary
|
||||
not-onloan-count 1=9013 4=109
|
||||
|
||||
Control-number-identifier 1=9014
|
||||
cni Control-number-identifier
|
||||
|
||||
###
|
||||
# Items Index
|
||||
withdrawn 1=8001
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
<index_control_field tag="001">
|
||||
<target_index>Control-number:w</target_index>
|
||||
</index_control_field>
|
||||
<index_control_field tag="003">
|
||||
<target_index>Control-number-identifier:w</target_index>
|
||||
</index_control_field>
|
||||
<!--record.abs line 44: melm 005 Date/time-last-modified-->
|
||||
<index_control_field tag="005">
|
||||
<target_index>Date/time-last-modified:w</target_index>
|
||||
|
|
|
|||
|
|
@ -62,6 +62,11 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
|
|||
<xslo:value-of select="."/>
|
||||
</z:index>
|
||||
</xslo:template>
|
||||
<xslo:template match="marc:controlfield[@tag='003']">
|
||||
<z:index name="Control-number-identifier:w">
|
||||
<xslo:value-of select="."/>
|
||||
</z:index>
|
||||
</xslo:template>
|
||||
<xslo:template match="marc:controlfield[@tag='005']">
|
||||
<z:index name="Date/time-last-modified:w">
|
||||
<xslo:value-of select="."/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue