[Koha-patches] [PATCH] Bug 5631 : (MT #2993) add EAN, PUC and Music-Number indexes
Chris Cormack
chrisc at catalyst.net.nz
Thu Mar 31 05:02:15 CEST 2011
From: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
This fix add different "music" identifier to zebra indexes, for example it permit search through CDs via EAN.
---
C4/Search.pm | 3 +++
etc/zebradb/ccl.properties | 6 ++++++
etc/zebradb/marc_defs/unimarc/biblios/record.abs | 4 ++++
3 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index 35f0166..323a6bf 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -865,6 +865,7 @@ sub getIndexes{
'Date-of-acquisition',
'Date-of-publication',
'Dewey-classification',
+ 'EAN',
'extent',
'fic',
'fiction',
@@ -902,6 +903,7 @@ sub getIndexes{
'mc-rtype',
'mus',
'name',
+ 'Music-number',
'Name-geographic',
'Name-geographic-heading',
'Name-geographic-see',
@@ -943,6 +945,7 @@ sub getIndexes{
'su-to',
'su-ut',
'ut',
+ 'UPC',
'Term-genre-form',
'Term-genre-form-heading',
'Term-genre-form-see',
diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties
index 709410d..8f1c4f5 100644
--- a/etc/zebradb/ccl.properties
+++ b/etc/zebradb/ccl.properties
@@ -438,6 +438,12 @@ ns ISSN
#
#Identifier-stock 1028 A stock number that could be 037
# used for ordering the item.
+Identifier-standard 1=1007 4=6
+ident Identifier-standard
+upc 1=UPC
+ean 1=EAN
+music 1=Music-number
+
Stock-number 1=1028
#Identifier-thematic 1030 The numeric designation for a $n in the following:
diff --git a/etc/zebradb/marc_defs/unimarc/biblios/record.abs b/etc/zebradb/marc_defs/unimarc/biblios/record.abs
index 9406aac..84b3b50 100644
--- a/etc/zebradb/marc_defs/unimarc/biblios/record.abs
+++ b/etc/zebradb/marc_defs/unimarc/biblios/record.abs
@@ -39,6 +39,10 @@ melm 011$y ISSN:w,Identifier-standard:w
# wrong ISSN
melm 011$z ISSN:w,Identifier-standard:w
+melm 071$a Music-number:w,Identifier-standard:w
+melm 072$a UPC:w,Identifier-standard:w
+melm 073$a EAN:w,Identifier-standard:w
+
melm 200$b itemtype:w,itype:w
melm 995$r itemtype:w,itype:w
--
1.7.1
More information about the Koha-patches
mailing list