3 <title>Koha › Catalog › History search</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
8 [% INCLUDE 'datatables-strings.inc' %]
9 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
10 <script type="text/javascript">
12 var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete your search history?");
13 $(document).ready(function() {
14 // We show table ordered by descending dates by default
15 // (so that the more recent query is shown first)
16 $(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, {
17 "aaSorting": [[ 0, "desc" ]],
19 { "sType": "title-string" },
31 <body id="catalogue_search-history" class="catalogue">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'cat-search.inc' %]
36 <div id="breadcrumbs">
37 <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › History search
40 <div id="doc3" class="yui-t2">
45 <h1>Search history</h1>
46 <div id="tabs" class="toptabs">
48 <li><a href="#biblio_tab">Biblio</a></li>
49 <li><a href="#authority_tab">Authority</a></li>
52 [% IF ( current_biblio_searches ) %]
53 <h2>Current session</h2>
54 <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
55 <input type="hidden" name="action" value="delete" />
56 <input type="hidden" name="previous" value="0" />
57 <input type="hidden" name="type" value="biblio" />
58 <input type="submit" class="deleteshelf" value="Delete your current biblio history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
60 <table class="historyt">
69 [% FOREACH s IN current_biblio_searches %]
71 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
72 <td><a href="/cgi-bin/koha/catalogue/search.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
73 <td>[% s.total %]</td>
80 [% IF ( previous_biblio_searches ) %]
81 <h2>Previous sessions</h2>
82 <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
83 <input type="hidden" name="action" value="delete" />
84 <input type="hidden" name="previous" value="1" />
85 <input type="hidden" name="type" value="biblio" />
86 <input type="submit" class="deleteshelf" value="Delete your previous biblio search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
88 <table class="historyt">
97 [% FOREACH s IN previous_biblio_searches %]
99 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
100 <td><a href="/cgi-bin/koha/catalogue/search.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
101 <td>[% s.total %]</td>
108 [% IF !current_biblio_searches && !previous_biblio_searches %]
109 <p>Your biblio search history is empty.</p>
113 <div id="authority_tab">
114 [% IF ( current_authority_searches ) %]
115 <h2>Current session</h2>
116 <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
117 <input type="hidden" name="action" value="delete" />
118 <input type="hidden" name="previous" value="0" />
119 <input type="hidden" name="type" value="authority" />
120 <input type="submit" class="deleteshelf" value="Delete your current authority search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
122 <table class="historyt">
131 [% FOREACH s IN current_authority_searches %]
133 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
134 <td><a href="/cgi-bin/koha/authorities/authorities-home.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
135 <td>[% s.total %]</td>
142 [% IF ( previous_authority_searches ) %]
143 <h2>Previous sessions</h2>
144 <form action="/cgi-bin/koha/catalogue/search-history.pl" method="get">
145 <input type="hidden" name="action" value="delete" />
146 <input type="hidden" name="previous" value="1" />
147 <input type="hidden" name="type" value="authority" />
148 <input type="submit" class="deleteshelf" value="Delete your previous authority search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
150 <table class="historyt">
159 [% FOREACH s IN previous_authority_searches %]
161 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
162 <td><a href="/cgi-bin/koha/authorities/authorities-home.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
163 <td>[% s.total %]</td>
170 [% IF !current_authority_searches && !previous_authority_searches %]
171 <p>Your authority search history is empty.</p>
178 [% INCLUDE 'intranet-bottom.inc' %]