From 0eab023d5c5ee32ecbb9c04f7f7c3c09dd4d5ac0 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Mon, 11 Feb 2013 10:46:20 +0100 Subject: [PATCH 2/2] Bug 9352 : More specific indexing of UNIMARC 7XX fields and 511 (DOM) Content-Type: text/plain; charset="utf-8" 2d patch, for DOM indexing Rebased on 20 Aug 2014 Same changes as in GRS-1 patch, with 2 small additions : - I take the occasion for indexing the 511 field (I don't know why it was omitted) - index 710$a and 720$a in Author:s as well as 700$a (seems logical) (biblio-zebra-indexdefs.xsl is made from biblio-koha-indexdefs.xml with xsltproc) Same test as first patch : Testing : a/ Create a record with some values. for example: 700$a Doe $b John $f1950 $cteacher $4070 710$a Corporate $b Meeting $q Address 716$a Trademark $f1960 $cgreat $4340 720$a Family $f1980 $4651 205$a 1st edition $fBy some guy $gAnd other guys 511$a falsetitle b/ Before applying patch, make several searches : Search in simple search and author search : "teacher", "great", "Address", "1950", "1960", "070", "340", "651" => you will see the record among the results Search in simple search and author search : "Doe", "John Doe", "Trademark", "Family","corporate", "meeting" => you will see the record among the results Search in simple search and author search : "guy", "guys" => you will see the record among the results with simple search (because 205 is indexed in title) => you will not see the record among the results with author search Search ti:falsetitle => no results c/ Apply the patch d/ copy the 2 modified files into your zebra configuration directory e/ Rebuild Zebra with ./misc/migration_tools/rebuild_zebra.pl -b -x -v -reset f/ Try the same searches as before : Search in simple search and author search : "teacher", "great", "Address", "1950", "1960", "070", "340", "651" => you will not see the record among the results Search in simple search and author search : "Doe", "John Doe", "Trademark", "Family","corporate", "meeting" => you will see the record among the results Search in simple search and author search : "guy", "guys" => you will see the record among the results in both simple search and author search Search ti:falsetitle => 1 result --- .../unimarc/biblios/biblio-koha-indexdefs.xml | 125 ++++++----- .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 228 +++++++++----------- 2 files changed, 179 insertions(+), 174 deletions(-) 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 e70a12c..8b7b5a4 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml @@ -290,17 +290,22 @@ Graphics-support:w - + Author:w Author:p - + + + Author:w + Author:p + + + Koha-Auth-Number:w Koha-Auth-Number:n - Author:w Personal-name:w @@ -309,47 +314,46 @@ Personal-name:w Author:s - - + Author:w Personal-name:w Author:p Personal-name:p - Personal-name:p - - + Personal-name:w + + + Koha-Auth-Number:w Koha-Auth-Number:n - - + Author:w Personal-name:w Author:p Personal-name:p - Personal-name:p - - + Personal-name:w + + + Koha-Auth-Number:w Koha-Auth-Number:n - - + Author:w Personal-name:w Author:p Personal-name:p - Personal-name:p - - + Personal-name:w + + + Koha-Auth-Number:w Koha-Auth-Number:n - - + Author:w Author-name-corporate:w Author-name-conference:w @@ -360,14 +364,27 @@ Author-name-conference:p Corporate-name:p Conference-name:p - - + Author:s + + + Author:w + Author-name-corporate:w + Author-name-conference:w + Corporate-name:w + Conference-name:w + Author:p + Author-name-corporate:p + Author-name-conference:p + Corporate-name:p + Conference-name:p + + + Koha-Auth-Number:w Koha-Auth-Number:n - - + Author:w Author-name-corporate:w Author-name-conference:w @@ -378,14 +395,14 @@ Author-name-conference:p Corporate-name:p Conference-name:p - - + + + Koha-Auth-Number:w Koha-Auth-Number:n - - + Author:w Author-name-corporate:w Author-name-conference:w @@ -396,57 +413,59 @@ Author-name-conference:p 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 - - + Author:s + + + 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 - + + @@ -972,6 +991,11 @@ Koha-Auth-Number:w Koha-Auth-Number:n + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Koha-Auth-Number:w @@ -1072,6 +1096,11 @@ Title:w Title:p + + + Title:w + Title:p + Title:w diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl index c1a41aa..91fda78 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl @@ -436,8 +436,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - @@ -654,6 +652,15 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + @@ -669,6 +676,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -678,6 +692,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -687,6 +708,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -696,6 +724,20 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + + + + + @@ -705,6 +747,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -714,6 +763,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -732,6 +788,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -741,6 +804,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -750,6 +820,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -759,6 +836,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -1532,6 +1616,15 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + @@ -1857,84 +1950,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1948,47 +1963,8 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -2000,7 +1976,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2013,7 +1989,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2026,7 +2002,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2039,7 +2015,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2052,7 +2028,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + -- 1.7.9.5