Owen Leonard
3a0b35cfbc
Correcting capitalization in OPAC templates Signed-off-by: Liz Rea <wizzyrea@gmail.com> Passes tests, changes look consistent by reading through the patch. What a doozy! Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
96 lines
3.4 KiB
Text
96 lines
3.4 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your search history
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
|
<script type="text/JavaScript" language="JavaScript">
|
|
//<![CDATA[
|
|
var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete your search history?");
|
|
$(document).ready(function() {
|
|
// We show table ordered by descending dates by default
|
|
// (so that the more recent query is shown first)
|
|
$.tablesorter.defaults.sortList = [[0,1]];
|
|
$(".historyt").tablesorter({
|
|
widgets : ['zebra'],[% IF ( dateformat == 'metric' ) %]
|
|
dateFormat: 'uk'[% END %]
|
|
});
|
|
});
|
|
//]]>
|
|
|
|
</script>
|
|
</head>
|
|
<body id="opac-search-history">
|
|
[% IF ( OpacNav ) %]
|
|
<div id="doc3" class="yui-t1">
|
|
[% ELSIF ( loggedinusername ) %]
|
|
<div id="doc3" class="yui-t1">
|
|
[% ELSE %]
|
|
<div id="doc3" class="yui-t7">
|
|
[% END %]
|
|
<div id="bd">
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div id="yui-main">
|
|
<div class="yui-b"><div class="yui-g">
|
|
<div id="searchhistory" class="container">
|
|
<h1>Search history</h1>
|
|
[% IF ( recentSearches ) %]<form action="/cgi-bin/koha/opac-search-history.pl" method="get"><input type="hidden" name="action" value="delete" /><input type="submit" class="deleteshelf" value="Delete your search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" /></form>[% ELSE %][% IF ( previousSearches ) %]<form action="/cgi-bin/koha/opac-search-history.pl" method="get"><input type="hidden" name="action" value="delete" /><input type="submit" class="deleteshelf" value="Delete your search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" /></form>[% END %][% END %]
|
|
|
|
[% IF ( recentSearches ) %]
|
|
<table class="historyt">
|
|
[% IF ( previousSearches ) %]
|
|
<caption>Current session</caption>
|
|
[% END %]
|
|
<thead>
|
|
<tr><th>Date</th><th>Search</th><th>Results</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH recentSearche IN recentSearches %]
|
|
<tr>
|
|
<td>[% recentSearche.time %]</td>
|
|
<td><a href="/cgi-bin/koha/opac-search.pl?[% recentSearche.query_cgi |html %]">[% recentSearche.query_desc |html %]</a></td>
|
|
<td>[% recentSearche.total %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% END %]
|
|
|
|
[% IF ( previousSearches ) %]
|
|
<table class="historyt">
|
|
<caption>Previous sessions</caption>
|
|
<thead>
|
|
<tr><th>Date</th><th>Search</th><th>Results</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH previousSearche IN previousSearches %]
|
|
<tr>
|
|
<td>[% previousSearche.time %]</td>
|
|
<td><a href="/cgi-bin/koha/opac-search.pl?[% previousSearche.query_cgi |html %]">[% previousSearche.query_desc |html %]</a></td>
|
|
<td>[% previousSearche.total %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% END %]
|
|
|
|
[% IF ( recentSearches ) %][% ELSE %][% IF ( previousSearches ) %][% ELSE %]<p>Your search history is empty.</p>[% END %][% END %]
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
[% IF ( OpacNav ) %]
|
|
<div class="yui-b"><div id="leftmenus" class="container">
|
|
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
|
|
</div></div>
|
|
[% ELSIF ( loggedinusername ) %]
|
|
<div class="yui-b"><div id="leftmenus" class="container">
|
|
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
|
|
</div></div>
|
|
[% ELSE %]
|
|
[% END %]
|
|
|
|
|
|
</div>
|
|
[% INCLUDE 'opac-bottom.inc' %]
|