From de272e5b41a2d883645239d5485328b5b9b40245 Mon Sep 17 00:00:00 2001 From: Hector Eduardo Castro Avalos Date: Sun, 31 May 2015 20:54:58 -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 Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/Search.pm | 2 ++ etc/zebradb/biblios/etc/bib1.att | 1 + etc/zebradb/ccl.properties | 8 ++++++++ .../marc21/biblios/biblio-koha-indexdefs.xml | 5 +++++ .../marc21/biblios/biblio-zebra-indexdefs.xsl | 15 ++++++++++++++- 5 files changed, 30 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index a8715864db..11b4909a10 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1198,6 +1198,8 @@ sub getIndexes{ 'popularity', 'pubdate', 'Publisher', + 'Provider', + 'pv', 'Record-control-number', 'rcn', 'Record-type', diff --git a/etc/zebradb/biblios/etc/bib1.att b/etc/zebradb/biblios/etc/bib1.att index de04e2d971..d34325a1b6 100644 --- a/etc/zebradb/biblios/etc/bib1.att +++ b/etc/zebradb/biblios/etc/bib1.att @@ -205,6 +205,7 @@ att 1221 Subject-occupation att 1222 Subject-function att 1223 Edition att 1224 GPO-Item-Number +att 1225 Provider # Koha Local-Use Biblio Indexes att 9001 Control-number diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 51236ac67f..58df11c780 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -579,6 +579,14 @@ Personal-name-seealso 1=Personal-name-seealso Publisher 1=1018 pb Publisher +#Provider 1225 A generic, single index 257$a2 +# combining place, publisher, 260$abcdefg3 +# and date. To avoid searching 264$abc3 +# multiple indexes for 270$abcd +# publication/production info. +Provider 1=1225 +pv Provider + #Note 63 A concise statement in which 5XX # such information as extended # physical description, 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 1c1abe648f..6b1fb87baa 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -442,6 +442,11 @@ pl:w + Provider:w + + + + Provider: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 1f09b25fd4..604c76a856 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -1861,7 +1861,20 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + + + + + + + + + + + + + + -- 2.39.5