From 40b49900c34e47916ebf7c8ec4a73446dec72820 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 4 Apr 2011 17:51:50 +0200 Subject: [PATCH] Bug 5631 : (MT #2993) add EAN, PUC and Music-Number indexes This fix add different "music" identifier to zebra indexes, for example it permit search through CDs via EAN. Signed-off-by: fdurand Signed-off-by: Chris Cormack --- C4/Search.pm | 3 +++ etc/zebradb/ccl.properties | 6 ++++++ etc/zebradb/marc_defs/unimarc/biblios/record.abs | 3 +++ 3 files changed, 12 insertions(+) diff --git a/C4/Search.pm b/C4/Search.pm index 81f66f40a4..a19a5b7e44 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -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', diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 59c270553e..ee2553c10f 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 c5d8ec5ebb..16b99e4fae 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/record.abs +++ b/etc/zebradb/marc_defs/unimarc/biblios/record.abs @@ -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 -- 2.39.5