From b477f507fc397584f4d32bb6472f34961558081f Mon Sep 17 00:00:00 2001 From: Hector Eduardo Castro Avalos Date: Tue, 2 Jun 2015 22:28:10 -0600 Subject: [PATCH] Bug 14198: RDA: Indexing 264 field (Zebra) This patch add zebra indexes to RDA 264 field. The new Provider index is added too. QA comments corrected. To test: 1) Download RDA records with 264 fields from this attachment . Import the file and re-index/rebuild zebra. These records contain 260 and 264 fields per record. 2) Do a search with pb:Bethany two records will appear with title The guardian. Search with pl:Minneapolis too, the two records will appear. 3) Select one record of both records and delete the 260 field keeping the 264 field and save, rebuild your zebra. 4) Search again with pb:Bethany and just one record will appear. Thats mean 264 is not indexed. 5) Apply patches. 6) Rebuild your zebra but this time all biblio records. 7) Search again with pv:Bethany or Provider:Bethany, this time will appear the two records, 264 is indexed. Note that if you search again with pb only one record appear. This is because the suggestion of LOC. 10) Search with copydate:2013 only launch records with 260 fields and pv:2013 show both fields, i.e., 260 and 264. 11) Apply QA Test Tools Sponsored-by: Universidad de El Salvador --- C4/Search.pm | 3 +- etc/zebradb/biblios/etc/bib1.att | 2 -- etc/zebradb/ccl.properties | 3 +- .../marc21/biblios/biblio-koha-indexdefs.xml | 33 +++----------------- .../marc21/biblios/biblio-zebra-indexdefs.xsl | 31 +++--------------- 5 files changed, 10 insertions(+), 62 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 080d9d9..02e23b1 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1199,8 +1199,7 @@ sub getIndexes{ 'pubdate', 'Publisher', 'Provider', - 'Provider-place', - 'Provider-date', + 'pv', 'Record-control-number', 'rcn', 'Record-type', diff --git a/etc/zebradb/biblios/etc/bib1.att b/etc/zebradb/biblios/etc/bib1.att index d8369b2..e0a8ba3 100644 --- a/etc/zebradb/biblios/etc/bib1.att +++ b/etc/zebradb/biblios/etc/bib1.att @@ -220,8 +220,6 @@ att 9009 cn-prefix att 9010 cn-suffix att 9011 Suppress att 9012 Identifier-other -att 9014 Provider-place -att 9015 Provider-date # Items Index att 8001 withdrawn diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 48ec428..7298c61 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -584,8 +584,7 @@ pb Publisher # multiple indexes for 270$abcd # publication/production info. Provider 1=1225 -Provider-place 1=9014 -Provider-date 1=9015 +pv Provider Place-publication Publisher copydate #Note 63 A concise statement in which 5XX # such information as extended diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml index 37d060b..e93730c 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -416,51 +416,26 @@ pl:w pl:p - Provider-place:w - Provider-place:p Publisher:w Publisher:p - Provider:w - Provider:p copydate:w copydate:s - Provider-date:w - Provider-date:s pl:w Provider:w - - - pl:w - pl:p - Provider-place:w - Provider-place:p - - - Publisher:w - Publisher:p - Provider:w - Provider:p - - - copydate:w - copydate:s - Provider-date:w - Provider-date:s - - - pl:w - Provider:w - + + + Provider:w + Extent:w diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl index 61920ba..c260b93 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -320,44 +320,21 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - + - - - - - - - - - - - - - - - - - - - - - - - - + @@ -1876,7 +1853,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + -- 1.7.10.4