From 562ef06413ebdd670df0f2ba1f64dd15cdb59f04 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Wed, 23 Oct 2013 00:17:43 +0200 Subject: [PATCH] Bug 11119 silent zebra in UNIMARC This patch fixes some zebra configuration mistakes in UNIMARC, that results in many warnings issued on zebra console Test plan: * run a search with zebra, see that there are lot of warnes like : 23:32:56-22/10 zebrasrv(1) [warn] Index 'lcn' not found in attset(s) * apply the patch * update your zebra config file, reload zebra (no need to reindex afaik) * run the same search => no more warnings Changes: * UPC (on 072$a & $z) has been removed * Serials, Printed-music & Electronic-ressource has been removed * Title-host has been replaced by Host-item * lcn has been removed --- etc/zebradb/ccl.properties | 1 - .../unimarc/biblios/biblio-koha-indexdefs.xml | 679 +++++++++----------- etc/zebradb/marc_defs/unimarc/biblios/record.abs | 18 +- 3 files changed, 299 insertions(+), 399 deletions(-) diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 14aa7b2..201fab2 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -442,7 +442,6 @@ music Identifier-publisher-for-music #Identifier-standard 1=1007 4=6 Identifier-standard 1=1007 4=6 ident Identifier-standard -upc 1=UPC ean 1=EAN # diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml index fdd1dfe..412d7a9 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml @@ -1,26 +1,25 @@ - marc:controlfield[@tag='001'] - + Local-number:w Local-number:n - + Identifier-standard:w Identifier-standard:n - + Local-number:w Local-number:n - + date-entered-on-file:s date-entered-on-file:n @@ -29,36 +28,36 @@ Date-of-acquisition:d Date-of-acquisition:s - + Date/time-last-modified:s Date/time-last-modified:n Date/time-last-modified:y - + ccode:w - + ISBN:w - + ISBN:w Identifier-standard:w - + ISSN:w Identifier-standard:w - + ISSN:w Identifier-standard:w - + ISSN:w Identifier-standard:w @@ -123,12 +122,12 @@ Identifier-standard:w - + Identifier-publisher-for-music:w Identifier-standard:w - + Identifier-publisher-for-music:w Identifier-standard:w @@ -138,14 +137,12 @@ Publisher:w Publisher:p - + - UPC:w Identifier-standard:w - + - UPC:w Identifier-standard:w @@ -158,7 +155,7 @@ EAN:w Identifier-standard:w - + itemtype:w itemtype:p @@ -167,152 +164,92 @@ Material-type:w Material-type:p - + itemtype:w itemtype:p itype:w itype:p - - + + tpubdate:s - - ta:w - - ta:w - - ta:w - - Modified-code:n - - char-encoding:n - - char-encoding:n - - char-encoding:n - - script-Title:n - + ln:w - + Country-publication:w - - + + ff8-18-21:w - - ff8-18-21:w - - ff8-18-21:w - - ff8-18-21:w - - ctype:w - - ctype:w - - ctype:w - - ctype:w - - ff8-29:w - - ff8-30:w - - ff8-31:w - - lf:w - - bio:w - + ff8-23:w ff8-23:p - - + + ff8-21:w - - ff8-18:w - - ff8-19:w - - ctype:w - - ctype:w - - ff8-29:w - - Title-page-availability:w - - ff8-31:w - - Cumulative-index-availability:w - - + + Video-mt:w - - + + Graphics-type:w - - Graphics-support:w - - Graphics-support:w - + Author:w Author:p - + Author:w Author:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Personal-name:w @@ -321,7 +258,7 @@ Personal-name:w Author:s - + Author:w Personal-name:w @@ -329,12 +266,12 @@ Personal-name:p Personal-name:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Personal-name:w @@ -342,12 +279,12 @@ Personal-name:p Personal-name:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Personal-name:w @@ -355,12 +292,12 @@ Personal-name:p Personal-name:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Author-name-corporate:w @@ -373,12 +310,12 @@ Corporate-name:p Conference-name:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Author-name-corporate:w @@ -391,12 +328,12 @@ Corporate-name:p Conference-name:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Author-name-corporate:w @@ -409,57 +346,57 @@ Corporate-name:p Conference-name:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Author:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Author:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Author:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Author:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Author:w Author:p - + Title:w Title:p @@ -468,1162 +405,1134 @@ Title-cover:p Title-cover:s - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p Title-cover:w Title-cover:p - + Title:w Title:p Title-cover:w Title-cover:p - + Title:w Title:p - - - Serials:w - Serials:p - - - - Printed-music:w - Printed-music:p - - - - Electronic-ressource:w - - + pl:w pl:p - + Publisher:w Publisher:p - + pubdate:n pubdate:y pubdate:s - + Extent:w - + Title-series:w Title-series:p - + Title-series:w Title-series:p - + Title-series:w Title-series:p - + Author:w Author:p Name-and-title:w Name-and-title:p - + Title-series:w Title-series:p - + Title-series:w Title-series:p - + Title-series:w Title-series:p - + ISSN:w - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Abstract:w Note:w Abstract:p Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Title-series:w Title-series:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - - - Title:w - Title-host:w - title-host:p - - + Title:w Title:p - + Title:w Title:p - - - Title:w - Title-host:w - title-host:p - Title:p - - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Host-Item-Number:w - + + + Host-Item:w + Host-item:p + + Title:w Title:p - + Title:w Title:p - + Title:w Title:p Title-Uniform:w Title-Uniform:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - + pubdate:n - - - Host-Item-Number:w - - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Koha-Auth-Number:w Koha-Auth-Number:n - + Personal-name:w Personal-name:p Subject:w Subject:p - + Subject:w Subject:p - + Corporate-name:w Conference-name:w Corporate-name:p Conference-name:p - + Subject:w Subject:p - + Personal-name:w Personal-name:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject:w Subject:p - + Subject-precis:w Subject-precis:p - + UDC-classification:w UDC-classification:p UDC-classification:s - + Dewey-classification:w Dewey-classification:p Dewey-classification:s - + LC-call-number:s - + LC-call-number:w LC-call-number:p - + Local-classification:w Local-classification:p - + lost:w lost:n item:w - + homebranch:w Host-item:w item:w - + homebranch:w Host-item:w item:w - + holdingbranch:w Record-Source:w item:w - + holdingbranch:w Record-Source:w item:w - + location:w item:w - + barcode:w item:w - + ccode:w item:w - + LC-card-number:s item:w - + Call-Number:w Local-classification:w - lcn:w Call-Number:p Local-classification:p - lcn:p item:w Local-classification:s - + onloan:d onloan:n @@ -1631,17 +1540,17 @@ onloan:w item:w - + Note:w Note:p item:w - + - item:w + item # just to index every subfield:w - + totalissues:n totalissues:s diff --git a/etc/zebradb/marc_defs/unimarc/biblios/record.abs b/etc/zebradb/marc_defs/unimarc/biblios/record.abs index dfcd8b8..21546d2 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/record.abs +++ b/etc/zebradb/marc_defs/unimarc/biblios/record.abs @@ -76,8 +76,8 @@ melm 071$a Identifier-publisher-for-music:w,Identifier-standard:w melm 071$z Identifier-publisher-for-music:w,Identifier-standard:w melm 071$b Publisher,Publisher:p # UPC -melm 072$a UPC:w,Identifier-standard:w -melm 072$z UPC:w,Identifier-standard:w +melm 072$a Identifier-standard:w +melm 072$z Identifier-standard:w # EAN melm 073$a EAN:w,Identifier-standard:w melm 073$z EAN:w,Identifier-standard:w @@ -195,12 +195,6 @@ melm 200$i Title:w,Title:p,Title-cover:w,Title-cover:p # edition statement melm 205 Title,Title:p -########## MATERIAL SPECIFIC AREA ################# -# TODO 206 -melm 207 Serials,Serials:p -melm 208 Printed-music,Printed-music:p -melm 230$a Electronic-ressource - ########## PUBLISHER ################# melm 210$a pl,pl:p melm 210$c Publisher,Publisher:p @@ -328,12 +322,8 @@ melm 453$t Title,Title:p melm 454$t Title,Title:p melm 455$t Title,Title:p melm 456$t Title,Title:p -# FIXME Warning : field used by Koha for analytics, but also in Sudoc network -melm 461$t Title,Title-host:w,title-host:p melm 462$t Title,Title:p melm 463$t Title,Title:p -# FIXME Warning : field used by Koha for analytics, but also in Sudoc network -melm 464$t Title,Title-host:w,title-host:p,Title:p melm 470$t Title,Title:p melm 481$t Title,Title:p melm 482$t Title,Title:p @@ -342,6 +332,8 @@ melm 488$t Title,Title:p # Linking ids (Koha analytics) # FIXME Warning : field used by Koha for analytics, but also in Sudoc network melm 461$9 Host-Item-Number +melm 461$t Host-Item,Host-item:p + #FIXME Fields 400, 401, 403, 414, 415, 416, 417, 418, 419, 420 are not defined in Unimarc, but may be used by some libraries. melm 400$t Title,Title:p @@ -506,7 +498,7 @@ melm 995$e location,item melm 995$f barcode,item melm 995$h ccode,item melm 995$j LC-card-number:s,item -melm 995$k Call-Number,Local-classification,lcn,Call-Number:p,Local-classification:p,lcn:p,item,Local-classification:s +melm 995$k Call-Number,Local-classification,Call-Number:p,Local-classification:p,item,Local-classification:s melm 995$n onloan:d,onloan:n,onloan:s,onloan:w,item melm 995$u Note,Note:p,item melm 995 item # just to index every subfield -- 1.7.9.5