1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/JavaScript" language="JavaScript">
7 var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete your search history?");
8 $(document).ready(function() {
9 // We show table ordered by descending dates by default
10 // (so that the more recent query is shown first)
11 $.tablesorter.defaults.sortList = [[0,1]];
12 $(".historyt").tablesorter({
13 widgets : ['zebra'],[% IF ( dateformat == 'metric' ) %]
14 dateFormat: 'uk'[% END %]
21 <body id="opac-search-history">
23 <div id="doc3" class="yui-t1">
24 [% ELSIF ( loggedinusername ) %]
25 <div id="doc3" class="yui-t1">
27 <div id="doc3" class="yui-t7">
30 [% INCLUDE 'masthead.inc' %]
33 <div class="yui-b"><div class="yui-g">
34 <div id="searchhistory" class="container">
35 <h1>Search history</h1>
36 [% 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 %]
38 [% IF ( recentSearches ) %]
39 <table class="historyt">
40 [% IF ( previousSearches ) %]
41 <caption>Current session</caption>
44 <tr><th>Date</th><th>Search</th><th>Results</th></tr>
47 [% FOREACH recentSearche IN recentSearches %]
49 <td>[% recentSearche.time %]</td>
50 <td><a href="/cgi-bin/koha/opac-search.pl?[% recentSearche.query_cgi |html %]">[% recentSearche.query_desc |html %]</a></td>
51 <td>[% recentSearche.total %]</td>
58 [% IF ( previousSearches ) %]
59 <table class="historyt">
60 <caption>Previous sessions</caption>
62 <tr><th>Date</th><th>Search</th><th>Results</th></tr>
65 [% FOREACH previousSearche IN previousSearches %]
67 <td>[% previousSearche.time %]</td>
68 <td><a href="/cgi-bin/koha/opac-search.pl?[% previousSearche.query_cgi |html %]">[% previousSearche.query_desc |html %]</a></td>
69 <td>[% previousSearche.total %]</td>
76 [% IF ( recentSearches ) %][% ELSE %][% IF ( previousSearches ) %][% ELSE %]<p>Your search history is empty.</p>[% END %][% END %]
84 <div class="yui-b"><div id="leftmenus" class="container">
85 [% INCLUDE 'navigation.inc' %]
86 [% INCLUDE 'usermenu.inc' %]
88 [% ELSIF ( loggedinusername ) %]
89 <div class="yui-b"><div id="leftmenus" class="container">
90 [% INCLUDE 'navigation.inc' %]
91 [% INCLUDE 'usermenu.inc' %]
98 [% INCLUDE 'opac-bottom.inc' %]