1 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Catalog › Search history</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
10 var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete your search history?");
11 $(document).ready(function() {
12 // We show table ordered by descending dates by default
13 // (so that the more recent query is shown first)
14 $(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, {
15 "aaSorting": [[ 0, "desc" ]],
17 { "sType": "title-string" },
29 <body id="catalogue_search-history" class="catalogue">
31 [% INCLUDE 'header.inc' %]
32 [% INCLUDE 'cat-search.inc' %]
34 <div id="breadcrumbs">
35 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › Search history
38 <div id="doc3" class="yui-t2">
43 <h1>Search history</h1>
44 <div id="tabs" class="toptabs">
46 <li><a href="#biblio_tab">Catalog</a></li>
47 <li><a href="#authority_tab">Authority</a></li>
50 [% IF ( current_biblio_searches ) %]
51 <h2>Current session</h2>
52 <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
53 <input type="hidden" name="action" value="delete" />
54 <input type="hidden" name="previous" value="0" />
55 <input type="hidden" name="type" value="biblio" />
56 <input type="submit" class="deleteshelf" value="Delete your current catalog history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
58 <table class="historyt">
67 [% FOREACH s IN current_biblio_searches %]
69 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
70 <td><a href="/cgi-bin/koha/catalogue/search.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
71 <td>[% s.total %]</td>
78 [% IF ( previous_biblio_searches ) %]
79 <h2>Previous sessions</h2>
80 <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
81 <input type="hidden" name="action" value="delete" />
82 <input type="hidden" name="previous" value="1" />
83 <input type="hidden" name="type" value="biblio" />
84 <input type="submit" class="deleteshelf" value="Delete your previous catalog search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
86 <table class="historyt">
95 [% FOREACH s IN previous_biblio_searches %]
97 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
98 <td><a href="/cgi-bin/koha/catalogue/search.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
99 <td>[% s.total %]</td>
106 [% IF !current_biblio_searches && !previous_biblio_searches %]
107 <p>Your catalog search history is empty.</p>
111 <div id="authority_tab">
112 [% IF ( current_authority_searches ) %]
113 <h2>Current session</h2>
114 <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
115 <input type="hidden" name="action" value="delete" />
116 <input type="hidden" name="previous" value="0" />
117 <input type="hidden" name="type" value="authority" />
118 <input type="submit" class="deleteshelf" value="Delete your current authority search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
120 <table class="historyt">
129 [% FOREACH s IN current_authority_searches %]
131 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
132 <td><a href="/cgi-bin/koha/authorities/authorities-home.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
133 <td>[% s.total %]</td>
140 [% IF ( previous_authority_searches ) %]
141 <h2>Previous sessions</h2>
142 <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
143 <input type="hidden" name="action" value="delete" />
144 <input type="hidden" name="previous" value="1" />
145 <input type="hidden" name="type" value="authority" />
146 <input type="submit" class="deleteshelf" value="Delete your previous authority search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
148 <table class="historyt">
157 [% FOREACH s IN previous_authority_searches %]
159 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
160 <td><a href="/cgi-bin/koha/authorities/authorities-home.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
161 <td>[% s.total %]</td>
168 [% IF !current_authority_searches && !previous_authority_searches %]
169 <p>Your authority search history is empty.</p>
176 [% INCLUDE 'intranet-bottom.inc' %]