1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/JavaScript" language="JavaScript">
7 $(document).ready(function() {
8 // We show table ordered by descending dates by default
9 // (so that the more recent query is shown first)
10 $.tablesorter.defaults.sortList = [[0,1]];
11 $(".historyt").tablesorter({
12 widgets : ['zebra'],<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
13 dateFormat: 'uk'<!-- /TMPL_IF -->
20 <body id="opac-search-history">
21 <!-- TMPL_IF NAME="OpacNav" -->
22 <div id="doc3" class="yui-t1">
23 <!-- TMPL_ELSIF NAME="loggedinusername" -->
24 <div id="doc3" class="yui-t1">
26 <div id="doc3" class="yui-t7">
29 <!--TMPL_INCLUDE NAME="masthead.inc" -->
32 <div class="yui-b"><div class="yui-g">
33 <div id="searchhistory" class="container">
34 <h1>Search history</h1>
35 <!-- TMPL_IF NAME="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(_('Are you sure you want to delete your search history?'));" /></form><!-- TMPL_ELSE --><!-- TMPL_IF NAME="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(_('Are you sure you want to delete your search history?'));" /></form><!-- /TMPL_IF --><!-- /TMPL_IF -->
37 <!-- TMPL_IF NAME="recentSearches" -->
38 <table class="historyt">
39 <!-- TMPL_IF NAME="previousSearches" -->
40 <caption>Current session</caption>
43 <tr><th>Date</th><th>Search</th><th>Results</th></tr>
46 <!-- TMPL_LOOP NAME="recentSearches" -->
48 <td><!-- TMPL_VAR NAME="time" --></td>
49 <td><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" -->"><!-- TMPL_VAR NAME="query_desc" --></a></td>
50 <td><!-- TMPL_VAR NAME="total" --></td>
57 <!-- TMPL_IF NAME="previousSearches" -->
58 <table class="historyt">
59 <caption>Previous sessions</caption>
61 <tr><th>Date</th><th>Search</th><th>Results</th></tr>
64 <!-- TMPL_LOOP NAME="previousSearches" -->
66 <td><!-- TMPL_VAR NAME="time" --></td>
67 <td><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" -->"><!-- TMPL_VAR NAME="query_desc" --></a></td>
68 <td><!-- TMPL_VAR NAME="total" --></td>
75 <!-- TMPL_IF NAME="recentSearches" --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="previousSearches" --><!-- TMPL_ELSE --><p>Your search history is empty.</p><!-- /TMPL_IF --><!-- /TMPL_IF -->
82 <!-- TMPL_IF NAME="OpacNav" -->
83 <div class="yui-b"><div class="container">
84 <!--TMPL_INCLUDE NAME="navigation.inc" -->
85 <!--TMPL_INCLUDE NAME="usermenu.inc" -->
87 <!-- TMPL_ELSIF NAME="loggedinusername" -->
88 <div class="yui-b"><div class="container">
89 <!--TMPL_INCLUDE NAME="navigation.inc" -->
90 <!--TMPL_INCLUDE NAME="usermenu.inc" -->
97 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->