Bugzilla – Attachment 25672 Details for
Bug 8962
Restore Any index behavior and add Anywhere index
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 8962: Changes to CCL.properties, bib1 for authorities, and templates
SIGNED-OFF-Bug-8962-Changes-to-CCLproperties-bib1-.patch (text/plain), 4.87 KB, created by
Martin Renvoize (ashimema)
on 2014-02-26 17:32:27 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 8962: Changes to CCL.properties, bib1 for authorities, and templates
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2014-02-26 17:32:27 UTC
Size:
4.87 KB
patch
obsolete
>From 75df0962d71f7c604417a0a56a8fd22a8920a83a Mon Sep 17 00:00:00 2001 >From: Mathieu Saby <mathieu.saby@univ-rennes2.fr> >Date: Sat, 26 Jan 2013 20:14:10 +0100 >Subject: [PATCH] [SIGNED OFF] Bug 8962: Changes to CCL.properties, bib1 for > authorities, and templates > >This patch adds a new index Anywhere in ccl.properties in bib1 for authorities, 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 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Search.pm | 1 + > etc/zebradb/authorities/etc/bib1.att | 2 ++ > etc/zebradb/ccl.properties | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 4 ++++ > 5 files changed, 9 insertions(+), 1 deletion(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 6a705d9..c25a75f 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -918,6 +918,7 @@ sub getIndexes{ > 'allrecords', > 'an', > 'Any', >+ 'Anywhere', > 'at', > 'au', > 'aub', >diff --git a/etc/zebradb/authorities/etc/bib1.att b/etc/zebradb/authorities/etc/bib1.att >index 3e0f5fb..1bf03fd 100644 >--- a/etc/zebradb/authorities/etc/bib1.att >+++ b/etc/zebradb/authorities/etc/bib1.att >@@ -3,6 +3,8 @@ name bib1 > reference Bib-1 > > att 1016 Any >+att 1035 Anywhere >+ > att 9000 authtype > att 12 Local-Number > att 9038 Descriptive-cataloging-rules >diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties >index a46dc64..6a8e20a 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 @@ > <option value="pl">Publisher location</option> > <option value="yr">Publication date (yyyy)</option> > <option value="acqdate">Acquisition date (yyyy-mm-dd)</option> >+ <option value="anywhere">Any word (all indexes)</option> > </select> >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 84206fe..d0397f2 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 %]<option value="sn">ISBN</option>[% END %] > [% IF ( ms_ss ) %]<option selected="selected" value="ss">ISSN</option> > [% ELSE %]<option value="ss">ISSN</option>[% END %] >+ [% IF ( ms_anywhere ) %]<option selected="selected" value="anywhere">Any world (all indexes)</option> >+ [% ELSE %]<option value="anywhere">Any word (all indexes)</option>[% END %] >+ [% IF ( ms_anywherecommaphr ) %]<option selected="selected" value="anywhere,phr">Any phrase (all indexes)</option> >+ [% ELSE %]<option value="anywhere,phr">Any phrase (all indexes)</option>[% END %] > </select> > <input type="hidden" name="scan" value="1" /> > </td> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8962
:
13406
|
14871
|
14872
|
14873
|
21985
|
21986
|
21987
|
22675
|
23110
|
23115
|
23204
|
25671
|
25672
|
25673
|
25674
|
25675
|
70127
|
73617
|
73618
|
75569
|
75570