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" },
22 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]$('#tabs').tabs();[% END %]
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 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
44 <div id="tabs" class="toptabs">
46 <li><a href="#biblio_tab">Catalog searches</a></li>
47 <li><a href="#authority_tab">Authority searches</a></li>
51 [% IF ( current_biblio_searches ) %]
52 <h2>Current session</h2>
53 <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
54 <input type="hidden" name="action" value="delete" />
55 <input type="hidden" name="previous" value="0" />
56 <input type="hidden" name="type" value="biblio" />
57 <input type="submit" class="deleteshelf" value="Delete your current catalog history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
59 <table class="historyt">
68 [% FOREACH s IN current_biblio_searches %]
70 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
71 <td><a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
72 <td>[% s.total %]</td>
79 [% IF ( previous_biblio_searches ) %]
80 <h2>Previous sessions</h2>
81 <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
82 <input type="hidden" name="action" value="delete" />
83 <input type="hidden" name="previous" value="1" />
84 <input type="hidden" name="type" value="biblio" />
85 <input type="submit" class="deleteshelf" value="Delete your previous catalog search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
87 <table class="historyt">
96 [% FOREACH s IN previous_biblio_searches %]
98 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
99 <td><a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
100 <td>[% s.total %]</td>
107 [% IF !current_biblio_searches && !previous_biblio_searches %]
108 <p>Your catalog search history is empty.</p>
113 [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
114 <div id="authority_tab">
115 [% IF ( current_authority_searches ) %]
116 <h2>Current session</h2>
117 <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
118 <input type="hidden" name="action" value="delete" />
119 <input type="hidden" name="previous" value="0" />
120 <input type="hidden" name="type" value="authority" />
121 <input type="submit" class="deleteshelf" value="Delete your current authority search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
123 <table class="historyt">
132 [% FOREACH s IN current_authority_searches %]
134 <td><span title="[% s.time %]">[% s.time %]</span></td>
135 <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
136 <td>[% s.total %]</td>
143 [% IF ( previous_authority_searches ) %]
144 <h2>Previous sessions</h2>
145 <form action="/cgi-bin/koha/opac-search-history.pl" method="get">
146 <input type="hidden" name="action" value="delete" />
147 <input type="hidden" name="previous" value="1" />
148 <input type="hidden" name="type" value="authority" />
149 <input type="submit" class="deleteshelf" value="Delete your previous authority search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
151 <table class="historyt">
160 [% FOREACH s IN previous_authority_searches %]
162 <td><span title="[% s.time %]">[% s.time |$KohaDates with_hours => 1 %]</span></td>
163 <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi |html %]">[% s.query_desc |html %]</a></td>
164 <td>[% s.total %]</td>
171 [% IF !current_authority_searches && !previous_authority_searches %]
172 <p>Your authority search history is empty.</p>
183 <div id="leftmenus" class="container">
184 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
187 [% ELSIF ( loggedinusername ) %]
189 <div id="leftmenus" class="container">
190 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
196 [% INCLUDE 'opac-bottom.inc' %]