From 5a0b7218fc6d3e54d661d117e0978a6432483576 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Mon, 11 Feb 2013 10:46:20 +0100 Subject: [PATCH] [SIGNED OFF] Bug 9352 : More specific indexing of UNIMARC 7XX fields and 511 (DOM) 2d patch, for DOM indexing Rebased on 20 Aug 2014, Fixed on 25 Aug 2014 (716 field and 205$g) 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 Signed-off-by: Martin Renvoize --- .../unimarc/biblios/biblio-koha-indexdefs.xml | 127 ++++++---- .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 248 +++++++++----------- 2 files changed, 187 insertions(+), 188 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 aeeacc5..cf27720 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 - + + @@ -974,6 +993,11 @@ Koha-Auth-Number:w Koha-Auth-Number:n + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Koha-Auth-Number:w @@ -1074,6 +1098,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 46f106d..c66b377 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) + + + + + + + @@ -723,6 +779,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -732,6 +795,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -741,6 +811,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -750,6 +827,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -759,6 +843,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + @@ -1525,6 +1616,15 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + @@ -1850,138 +1950,8 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -1993,7 +1963,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2006,7 +1976,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2019,7 +1989,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2032,7 +2002,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2045,7 +2015,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + -- 1.7.10.4