Bug 5631 : (MT #2993) add EAN, PUC and Music-Number indexes
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Mon, 4 Apr 2011 15:51:50 +0000 (17:51 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 9 Apr 2011 07:32:04 +0000 (19:32 +1200)
This fix add different "music" identifier to zebra indexes, for example it permit search through CDs via EAN.

Signed-off-by: fdurand <frederic.durand@univ-lyon2.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Search.pm
etc/zebradb/ccl.properties
etc/zebradb/marc_defs/unimarc/biblios/record.abs

index 81f66f4..a19a5b7 100644 (file)
@@ -870,6 +870,7 @@ sub getIndexes{
                     'Date-of-acquisition',
                     'Date-of-publication',
                     'Dewey-classification',
+                    'EAN',
                     'extent',
                     'fic',
                     'fiction',
@@ -907,6 +908,7 @@ sub getIndexes{
                     'mc-rtype',
                     'mus',
                     'name',
+                    'Music-number',
                     'Name-geographic',
                     'Name-geographic-heading',
                     'Name-geographic-see',
@@ -948,6 +950,7 @@ sub getIndexes{
                     'su-to',
                     'su-ut',
                     'ut',
+                    'UPC',
                     'Term-genre-form',
                     'Term-genre-form-heading',
                     'Term-genre-form-see',
index 59c2705..ee2553c 100644 (file)
@@ -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:
index c5d8ec5..16b99e4 100644 (file)
@@ -41,6 +41,9 @@ melm 011$z    ISSN:w,Identifier-standard:w
 
 melm 200$b      itemtype:w,itemtype:p,itype:w,itype:p
 melm 995$r      itemtype:w,itemtype:p,itype:w,itype:p
+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 100$a      tpubdate:s:range(data,8,1),ta:w:range(data,17,1),ta:w:range(data,18,1),ta:w:range(data,19,1),Modified-code:n:range(data,21,1),ln:s:range(data,22,3),char-encoding:n:range(data,26,2),char-encoding:n:range(data,28,2),char-encoding:n:range(data,30,2),script-Title:n:range(data,34,2)
 melm 101$a     ln