3 [% INCLUDE 'doc-head-open.inc' %]
4 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your search history
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
9 var MSG_CONFIRM_DELETE_HISTORY = _("Are you sure you want to delete your search history?");
10 $(document).ready(function() {
11 // We show table ordered by descending dates by default
12 // (so that the more recent query is shown first)
13 $(".historyt").dataTable($.extend(true, {}, dataTablesDefaults, {
14 "aaSorting": [[ 0, "desc" ]],
16 { "sType": "title-string" },
28 <body id="opac-search-history">
30 <div id="doc3" class="yui-t1">
31 [% ELSIF ( loggedinusername ) %]
32 <div id="doc3" class="yui-t1">
34 <div id="doc3" class="yui-t7">
37 [% INCLUDE 'masthead.inc' %]
42 <h1>Search history</h1>
43 <div id="tabs" class="toptabs">
45 <li><a href="#biblio_tab">Biblio</a></li>
46 <li><a href="#authority_tab">Authority</a></li>
49 [% IF ( current_biblio_searches ) %]
50 <h2>Current session</h2>
51 <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
52 <input type="hidden" name="action" value="delete" />
53 <input type="hidden" name="previous" value="0" />
54 <input type="hidden" name="type" value="biblio" />
55 <input type="submit" class="deleteshelf" value="Delete your current biblio history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
57 <table class="historyt">
66 [% FOREACH s IN current_biblio_searches %]
68 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
69 <td><a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
70 <td>[% s.total %]</td>
77 [% IF ( previous_biblio_searches ) %]
78 <h2>Previous sessions</h2>
79 <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
80 <input type="hidden" name="action" value="delete" />
81 <input type="hidden" name="previous" value="1" />
82 <input type="hidden" name="type" value="biblio" />
83 <input type="submit" class="deleteshelf" value="Delete your previous biblio search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
85 <table class="historyt">
94 [% FOREACH s IN previous_biblio_searches %]
96 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
97 <td><a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
98 <td>[% s.total %]</td>
105 <div id="authority_tab">
106 [% IF ( current_authority_searches ) %]
107 <h2>Current session</h2>
108 <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
109 <input type="hidden" name="action" value="delete" />
110 <input type="hidden" name="previous" value="0" />
111 <input type="hidden" name="type" value="authority" />
112 <input type="submit" class="deleteshelf" value="Delete your current authority search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
114 <table class="historyt">
123 [% FOREACH s IN current_authority_searches %]
125 <td><span title="[% s.time %]">[% s.time %]</span></td>
126 <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
127 <td>[% s.total %]</td>
134 [% IF ( previous_authority_searches ) %]
135 <h2>Previous sessions</h2>
136 <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
137 <input type="hidden" name="action" value="delete" />
138 <input type="hidden" name="previous" value="1" />
139 <input type="hidden" name="type" value="authority" />
140 <input type="submit" class="deleteshelf" value="Delete your previous authority search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
142 <table class="historyt">
151 [% FOREACH s IN previous_authority_searches %]
153 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
154 <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
155 <td>[% s.total %]</td>
162 [% IF !current_authority_searches && !previous_authority_searches %]
163 <p>Your authority search history is empty.</p>
173 <div id="leftmenus" class="container">
174 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
177 [% ELSIF ( loggedinusername ) %]
179 <div id="leftmenus" class="container">
180 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
186 [% INCLUDE 'opac-bottom.inc' %]