[Koha-patches] [PATCH] (MT #2993) add EAN, PUC and Music-Number indexes

paul.poulain at biblibre.com paul.poulain at biblibre.com
Wed Jan 19 21:31:18 CET 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 dd41886..f0fb0a7 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -840,6 +840,7 @@ sub getIndexes{
                     'Date-of-acquisition',
                     'Date-of-publication',
                     'Dewey-classification',
+                    'EAN',
                     'extent',
                     'fic',
                     'fiction',
@@ -874,6 +875,7 @@ sub getIndexes{
                     'mc-itemtype',
                     'mc-rtype',
                     'mus',
+                    'Music-number',
                     'Name-geographic',
                     'Name-geographic-heading',
                     'Name-geographic-see',
@@ -914,6 +916,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 e8f124b..f38ed35 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