From 67d0b6779197b01dacde03018a5cd06744e44d61 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 18 Sep 2012 06:22:35 +1000 Subject: [PATCH] Bug 8778 - Add "Phrase" Searching to OPAC Search Content-Type: text/plain; charset="utf-8" Add "Keyword phrase", "Title phrase", and "Notes/Comments" to drop-down menu in masthead.inc, which populates top search box in OPAC. Also, edit opac-search.pl so that the correct index appears in the drop-down menu following a search (which doesn't seem possible using JQuery) Finally, add "Keyword phrase" to OPAC Advanced Search, and move "Title phrase" and "Notes/Comments" so that they appear on the default advanced search screen rather than after clicking "More Options". --- koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 15 +++++++++++++++ .../opac-tmpl/prog/en/modules/opac-advsearch.tt | 6 ++++-- opac/opac-search.pl | 5 +++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index 3f661ad..e96aebc 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -41,11 +41,21 @@ [% ELSE %] [% END %] + [% IF ( ms_kw_phr ) %] + + [% ELSE %] + + [% END %] [% IF ( ms_ti ) %] [% ELSE %] [% END %] + [% IF ( ms_ti_phr ) %] + + [% ELSE %] + + [% END %] [% IF ( ms_au ) %] [% ELSE %] @@ -66,6 +76,11 @@ [% ELSE %] [% END %] + [% IF ( ms_nt ) %] + + [% ELSE %] + + [% END %] [% IF ( ms_callnum ) %] [% ELSE %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt index 6ed2b86..76662c5 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt @@ -66,13 +66,14 @@ [% IF ( expanded_options ) %][% left_content %][% END %]