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 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'],<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
14 dateFormat: 'uk'<!-- /TMPL_IF -->
21 <body id="opac-search-history">
22 <!-- TMPL_IF NAME="OpacNav" -->
23 <div id="doc3" class="yui-t1">
24 <!-- TMPL_ELSIF NAME="loggedinusername" -->
25 <div id="doc3" class="yui-t1">
27 <div id="doc3" class="yui-t7">
30 <!--TMPL_INCLUDE NAME="masthead.inc" -->
33 <div class="yui-b"><div class="yui-g">
34 <div id="searchhistory" class="container">
35 <h1>Search history</h1>
36 <!-- 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(MSG_CONFIRM_DELETE_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(MSG_CONFIRM_DELETE_HISTORY);" /></form><!-- /TMPL_IF --><!-- /TMPL_IF -->
38 <!-- TMPL_IF NAME="recentSearches" -->
39 <table class="historyt">
40 <!-- TMPL_IF NAME="previousSearches" -->
41 <caption>Current session</caption>
44 <tr><th>Date</th><th>Search</th><th>Results</th></tr>
47 <!-- TMPL_LOOP NAME="recentSearches" -->
49 <td><!-- TMPL_VAR NAME="time" --></td>
50 <td><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" ESCAPE="html" -->"><!-- TMPL_VAR NAME="query_desc" ESCAPE="html" --></a></td>
51 <td><!-- TMPL_VAR NAME="total" --></td>
58 <!-- TMPL_IF NAME="previousSearches" -->
59 <table class="historyt">
60 <caption>Previous sessions</caption>
62 <tr><th>Date</th><th>Search</th><th>Results</th></tr>
65 <!-- TMPL_LOOP NAME="previousSearches" -->
67 <td><!-- TMPL_VAR NAME="time" --></td>
68 <td><a href="/cgi-bin/koha/opac-search.pl?<!-- TMPL_VAR NAME="query_cgi" ESCAPE="html" -->"><!-- TMPL_VAR NAME="query_desc" ESCAPE="html" --></a></td>
69 <td><!-- TMPL_VAR NAME="total" --></td>
76 <!-- TMPL_IF NAME="recentSearches" --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="previousSearches" --><!-- TMPL_ELSE --><p>Your search history is empty.</p><!-- /TMPL_IF --><!-- /TMPL_IF -->
83 <!-- TMPL_IF NAME="OpacNav" -->
84 <div class="yui-b"><div id="leftmenus" class="container">
85 <!--TMPL_INCLUDE NAME="navigation.inc" -->
86 <!--TMPL_INCLUDE NAME="usermenu.inc" -->
88 <!-- TMPL_ELSIF NAME="loggedinusername" -->
89 <div class="yui-b"><div id="leftmenus" class="container">
90 <!--TMPL_INCLUDE NAME="navigation.inc" -->
91 <!--TMPL_INCLUDE NAME="usermenu.inc" -->
98 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->