From 125f0da2176097c5545cf0a3876d4119c4ab4a64 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Sat, 26 Jan 2013 20:14:10 +0100 Subject: [PATCH 1/3] Bug 8962: Changes to CCL and templates Content-Type: text/plain; charset="utf-8" This patch adds a new index Anywhere in ccl.properties and add "any word" option in intranet search for using this index. Default OPAC and intranet search in still using CCL "Any" index. Testing plan : In a Marc21 GRS-1 Koha : 1/ make some biblio searches without selecting any index (Koha will use "any" index) and note the results. Ex : search "fre", "eng", "book", "history", "history book" 2/ apply the 3 patches 3/ copy the 4 new record.abs files (Marc21 auth, Marc21 bib, Unimarc auth, Unimarc bib) from your sources to the directory used by Zebra configuration in your Koha instance 4/ launch rebuild_zebra.pl -b -r -x -v 5/ check that a new choice "Any word (all indexes)" is visible in advanced search. 6/ make the same searches as 1/ : you should see less results (detailed test plan in patchs 2 and 3) 7/ in Staff interface adavanced search, select "Any word (all indexes)" and make the same searches as 1/ : you should see the same results (maybe with a slight differences, because more notes fields are indexed in Marc21) In a UNIMARC GRS-1 Koha : same test --- etc/zebradb/ccl.properties | 2 +- .../prog/en/includes/search_indexes.inc | 1 + .../prog/en/modules/catalogue/results.tt | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 14aa7b2..0ec0ed2 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -84,7 +84,7 @@ kw Any # support both 'any' and 'anywhere', if the origin uses 'Any' # (rather than 'Anywhere') it is asking the target to locate # the term only if it can do so relatively inexpensively. -#Anywhere 1=1035 +Anywhere 1=1035 #Author-name 1003 A personal or corporate author, 100, 110, 111, 400 # or a conference or meeting 410, 411, 700, 710, diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc index 67725c6..7cec1bb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc @@ -42,4 +42,5 @@ + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 520e6d2..962803b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -389,6 +389,10 @@ var holdForPatron = function () { [% ELSE %][% END %] [% IF ( ms_ss ) %] [% ELSE %][% END %] + [% IF ( ms_anywhere ) %] + [% ELSE %][% END %] + [% IF ( ms_anywherecommaphr ) %] + [% ELSE %][% END %] -- 1.7.9.5