Bugzilla – Attachment 1788 Details for
Bug 4028
OPAC search history available to non-logged-in users
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-BZ-4028-OPAC-search-history-available-to-non-logged-.patch (text/plain), 3.70 KB, created by
Chris Cormack
on 2010-01-06 15:45:00 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-01-06 15:45:00 UTC
Size:
3.70 KB
patch
obsolete
>From 99214cc53cb34824571f4c8b091e7ce4514bdb5a Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Wed, 6 Jan 2010 16:34:30 +0100 >Subject: [PATCH] BZ 4028 : OPAC search history available to non-logged-in users > >The "search history" link and the "delete history" link are now correctly displayed after the first search. >Moreover, an additional "delete history" link as been added on the "search history" page itself. >--- > koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 12 +++++++++++- > .../prog/en/modules/opac-search-history.tmpl | 1 + > 2 files changed, 12 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc >index 0112166..11c6f30 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc >@@ -1,6 +1,16 @@ > <div id="header-wrapper"><div id="members"> > <!-- TMPL_IF NAME="opacuserlogin" --> >- <ul><!-- TMPL_IF NAME="loggedinusername" --><li><span class="members">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername"><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP --></span></a></span></li><!-- TMPL_IF NAME="ShowOpacRecentSearchLink" --><li><a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> [<a href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history" onclick="javascript:return confirm(_('Are you sure you want to delete your search history?'));">x</a>]</li> <!-- /TMPL_IF --><li><a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></li><!-- TMPL_ELSE --><li><a href="/cgi-bin/koha/opac-user.pl">Log in to Your Account</a></li><!-- /TMPL_IF --> >+ <ul> >+ <!-- TMPL_IF NAME="ShowOpacRecentSearchLink" --> >+ <li><a href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> [<a href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history" onclick="javascript:return confirm(_('Are you sure you want to delete your search history?'));">x</a>]</li> >+ <!-- /TMPL_IF --> >+ >+ <!-- TMPL_IF NAME="loggedinusername" --> >+ <li><span class="members">Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername"><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP --></span></a></span></li> >+ <li><a class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></li> >+ <!-- TMPL_ELSE --> >+ <li><a href="/cgi-bin/koha/opac-user.pl">Log in to Your Account</a></li> >+ <!-- /TMPL_IF --> > </ul> > <!-- /TMPL_IF --> > </div> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl >index 2823501..3323ac0 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl >@@ -26,6 +26,7 @@ > <div class="container"> > <h1>Search history</h1> > <!-- TMPL_IF EXPR="recentSearches || previousSearches" --> >+ <a href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history" onclick="javascript:return confirm(_('Are you sure you want to delete your search history?'));">Delete your search history</a> > <!-- TMPL_IF NAME="recentSearches" --> > <!-- TMPL_IF NAME="previousSearches" --> > <h2>Current session</h2> >-- >1.6.3.3 >
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 4028
:
1788
|
1789