2 [% INCLUDE 'doc-head-open.inc' %]
3 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your search history
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6 <script type="text/javascript">
8 var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete your search history?");
9 $(document).ready(function() {
10 // We show table ordered by descending dates by default
11 // (so that the more recent query is shown first)
12 $.tablesorter.defaults.sortList = [[0,1]];
13 $(".historyt").tablesorter({
14 widgets : ['zebra'],[% IF ( dateformat == 'metric' ) %]
15 dateFormat: 'uk'[% END %]
22 <body id="opac-search-history">
24 <div id="doc3" class="yui-t1">
25 [% ELSIF ( loggedinusername ) %]
26 <div id="doc3" class="yui-t1">
28 <div id="doc3" class="yui-t7">
31 [% INCLUDE 'masthead.inc' %]
34 <div class="yui-b"><div class="yui-g">
35 <div id="searchhistory" class="container">
36 <h1>Search history</h1>
37 [% 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 %]
39 [% IF ( recentSearches ) %]
40 <table class="historyt">
41 [% IF ( previousSearches ) %]
42 <caption>Current session</caption>
45 <tr><th>Date</th><th>Search</th><th>Results</th></tr>
48 [% FOREACH recentSearche IN recentSearches %]
50 <td>[% recentSearche.time %]</td>
51 <td><a href="/cgi-bin/koha/opac-search.pl?[% recentSearche.query_cgi |html %]">[% recentSearche.query_desc |html %]</a></td>
52 <td>[% recentSearche.total %]</td>
59 [% IF ( previousSearches ) %]
60 <table class="historyt">
61 <caption>Previous sessions</caption>
63 <tr><th>Date</th><th>Search</th><th>Results</th></tr>
66 [% FOREACH previousSearche IN previousSearches %]
68 <td>[% previousSearche.time %]</td>
69 <td><a href="/cgi-bin/koha/opac-search.pl?[% previousSearche.query_cgi |html %]">[% previousSearche.query_desc |html %]</a></td>
70 <td>[% previousSearche.total %]</td>
77 [% IF ( recentSearches ) %][% ELSE %][% IF ( previousSearches ) %][% ELSE %]<p>Your search history is empty.</p>[% END %][% END %]
85 <div class="yui-b"><div id="leftmenus" class="container">
86 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
88 [% ELSIF ( loggedinusername ) %]
89 <div class="yui-b"><div id="leftmenus" class="container">
90 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
97 [% INCLUDE 'opac-bottom.inc' %]