Bugzilla – Attachment 83850 Details for
Bug 21850
Remove search request from page title of OPAC result list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21850: Remove search request from page title of OPAC result list
Bug-21850-Remove-search-request-from-page-title-of.patch (text/plain), 3.96 KB, created by
Katrin Fischer
on 2019-01-13 20:20:00 UTC
(
hide
)
Description:
Bug 21850: Remove search request from page title of OPAC result list
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-01-13 20:20:00 UTC
Size:
3.96 KB
patch
obsolete
>From f20f25245fb0fff14f03930c0874eda5145534aa Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 <maryse.simard@inlibro.com> >Signed-off-by: mikael <mikael.Olangcay-Brisebois@inlibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../opac-tmpl/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' %] > <title>[% 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 %]</title> >@@ -29,13 +33,24 @@ > <div class="main"> > <ul class="breadcrumb"> > <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li> >- <li> > [% IF ( searchdesc ) %] >- <a href="#">Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]</a> >+ [% IF ( ReturnPath ) %] >+ <li> >+ <a href="[% ReturnPath | url %]">Advanced search</a> <span class="divider">›</span> >+ </li> >+ [% END %] >+ <li> >+ [% IF ( ms_value ) %] >+ <a href="#">Results of search for '[% ms_value | html %]'</a> >+ [% ELSE %] >+ <a href="#">Search results</a> >+ [% END %] >+ </li> > [% ELSE %] >- <a href="#">You did not specify any search criteria</a> >+ <li> >+ <a href="#">You did not specify any search criteria</a> >+ </li> > [% END %] >- </li> > </ul> > > [% UNLESS ( total ) %] >@@ -114,7 +129,7 @@ > [% IF ( total ) %] > [% IF ( ReturnPath ) %] > <div class="returntosearch"> >- <p><a href="[% ReturnPath | uri %]">Return to the last advanced search</a></p> >+ <p><a href="[% ReturnPath | url %]">Return to the last advanced search</a></p> > </div> > [% END %] > [% END %] >-- >2.11.0
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 21850
:
83640
|
83650
|
83673
| 83850 |
84499