From 572763ffbdb2263180e48ce92d5f46907a1179c8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 4 Jan 2019 15:26:05 +0000 Subject: [PATCH] Bug 21850: Remove search request from page title of OPAC result list This patch modifies the OPAC search results template so that advanced search terms are not shown in the page title and breadcrumbs. This removes potentially confusing computer-oriented code from the public view. For simple searches the search term is displayed, using the same logic that determines whether the search bar should be populated with the last search term. To test: - Apply the patch - Peform a simple keyword search in the OPAC - On the results page the title and breadcrumbs should show 'Results of search for [your keyword] - Perform an advanced search with multiple parameters - The page title and breadrumbs should show only 'Search results' - The breadcrumbs should also show a link back to Advanced search using the returntosearch parameter Signed-off-by: Maryse Simard Signed-off-by: mikael --- .../bootstrap/en/modules/opac-results.tt | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 548c0c055c..5ecd8c490b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -9,7 +9,11 @@ [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › [% IF ( searchdesc ) %] - Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %] + [% IF ( ms_value ) %] + Results of search for '[% ms_value | html %]' + [% ELSE %] + Search results + [% END %] [% ELSE %] You did not specify any search criteria. [% END %] @@ -29,13 +33,24 @@
[% UNLESS ( total ) %] @@ -114,7 +129,7 @@ [% IF ( total ) %] [% IF ( ReturnPath ) %] [% END %] [% END %] -- 2.17.1