Merge branch 'patroncards-wip' of git://git.foundations.edu/koha into community
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-search-history.tmpl
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">
6 //<![CDATA[
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 -->
14                 });
15             });
16 //]]>
17
18 </script>
19 </head>
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">
25 <!-- TMPL_ELSE -->
26 <div id="doc3" class="yui-t7">
27 <!-- /TMPL_IF -->
28    <div id="bd">
29 <!--TMPL_INCLUDE NAME="masthead.inc" -->
30
31         <div id="yui-main">
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 -->
36
37             <!-- TMPL_IF NAME="recentSearches" -->
38             <table class="historyt">
39             <!-- TMPL_IF NAME="previousSearches" -->
40             <caption>Current session</caption>
41             <!-- /TMPL_IF -->
42                 <thead>
43                     <tr><th>Date</th><th>Search</th><th>Results</th></tr>
44                 </thead>
45                 <tbody>
46                     <!-- TMPL_LOOP NAME="recentSearches" -->
47                     <tr>
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>
51                     </tr>
52                     <!-- /TMPL_LOOP -->
53                 </tbody>
54             </table>
55             <!-- /TMPL_IF -->
56
57             <!-- TMPL_IF NAME="previousSearches" -->
58             <table class="historyt">
59             <caption>Previous sessions</caption>
60                 <thead>
61                     <tr><th>Date</th><th>Search</th><th>Results</th></tr>
62                 </thead>
63                 <tbody>
64                     <!-- TMPL_LOOP NAME="previousSearches" -->
65                     <tr>
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>
69                     </tr>
70                     <!-- /TMPL_LOOP -->
71                 </tbody>
72             </table>
73             <!-- /TMPL_IF -->
74
75 <!-- TMPL_IF NAME="recentSearches" --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="previousSearches" --><!-- TMPL_ELSE --><p>Your search history is empty.</p><!-- /TMPL_IF --><!-- /TMPL_IF -->
76
77      </div>
78      </div>
79      </div>
80      </div>
81
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" -->
86 </div></div>
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" -->
91 </div></div>
92 <!-- TMPL_ELSE -->
93 <!-- /TMPL_IF -->
94
95
96 </div>
97 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->