@@ -, +, @@
---
.../prog/en/modules/opac-search-history.tt | 264 +++++++++++++-------
1 files changed, 172 insertions(+), 92 deletions(-)
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tt
+++ a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tt
@@ -4,23 +4,67 @@
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your search history
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'datatables.inc' %]
+
@@ -48,124 +92,160 @@ $(document).ready(function() {
[% END %]
+
[% IF ( current_biblio_searches ) %]
Current session
-
-
-
- Date |
- Search |
- Results |
-
-
-
- [% FOREACH s IN current_biblio_searches %]
-
- [% s.time |$KohaDates with_hours => 1 %] |
- [% s.query_desc |html %] |
- [% s.total %] |
-
- [% END %]
-
-
[% END %]
+
+
[% IF ( previous_biblio_searches ) %]
Previous sessions
-
-
-
- Date |
- Search |
- Results |
-
-
-
- [% FOREACH s IN previous_biblio_searches %]
-
- [% s.time |$KohaDates with_hours => 1 %] |
- [% s.query_desc |html %] |
- [% s.total %] |
-
- [% END %]
-
-
[% END %]
+
[% IF !current_biblio_searches && !previous_biblio_searches %]
Your catalog search history is empty.
[% END %]
-
[% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
[% IF ( current_authority_searches ) %]
Current session
-
-
-
- Date |
- Search |
- Results |
-
-
-
- [% FOREACH s IN current_authority_searches %]
-
- [% s.time %] |
- [% s.query_desc |html %] |
- [% s.total %] |
-
- [% END %]
-
-
[% END %]
[% IF ( previous_authority_searches ) %]
Previous sessions
-
-
-
- Date |
- Search |
- Results |
-
-
-
- [% FOREACH s IN previous_authority_searches %]
-
- [% s.time |$KohaDates with_hours => 1 %] |
- [% s.query_desc |html %] |
- [% s.total %] |
-
- [% END %]
-
-
[% END %]
[% IF !current_authority_searches && !previous_authority_searches %]
--