Bugzilla – Attachment 14871 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]
[PATCH 1/3] Bug 8962: Changes to CCL and templates
0005-CommonChanges.patch (text/plain), 3.03 KB, created by
Mathieu Saby
on 2013-01-26 19:45:53 UTC
(
hide
)
Description:
[PATCH 1/3] Bug 8962: Changes to CCL and templates
Filename:
MIME Type:
Creator:
Mathieu Saby
Created:
2013-01-26 19:45:53 UTC
Size:
3.03 KB
patch
obsolete
>From 966f2e885fda1c2ce933cfed71428b2bc3fc264e 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 1/3] Bug 8962: Changes to CCL and templates > >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. > >--- > 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 f93de96..36f1da1 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 8102201..a841e5b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc >@@ -33,4 +33,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 4d89a53..e7740e9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -364,6 +364,10 @@ YAHOO.util.Event.onContentReady("searchheader", 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.9.5 >
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