From 9b541824fddcdbf483c80fedc4d25bd25cce9d28 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 27 Nov 2017 12:51:16 +0000 Subject: [PATCH] Bug 19697: Move template JavaScript to the footer: Search results This patch modifies the staff client catalog search results template so that JavaScript is included in the footer instead of the header. To test, apply the patch and test the various JavaScript-driven features of the results page: Floating toolbar, cart, lists, cover images, search to hold, etc. Signed-off-by: Claire Gravely Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- .../prog/en/modules/catalogue/results.tt | 517 +++++++++--------- 1 file changed, 261 insertions(+), 256 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index b20150efc5..87ed564fc5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -1,10 +1,7 @@ [% USE Koha %] [% USE Biblio %] [% USE KohaDates %] -[% INCLUDE 'doc-head-open.inc' %] -Koha › Catalog › [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %] -[% INCLUDE 'doc-head-close.inc' %] -[% INCLUDE 'browser-strings.inc' %] +[% SET footerjs = 1 %] [% IF BiblioDefaultViewmarc %] [% SET DetailPage="MARCdetail.pl" %] [% ELSIF BiblioDefaultViewlabeled_marc %] @@ -14,259 +11,11 @@ [% ELSE %] [% SET DetailPage="detail.pl" %] [% END %] - - - - - +[% INCLUDE 'doc-head-open.inc' %] +Koha › Catalog › [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %] +[% INCLUDE 'doc-head-close.inc' %] + [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] @@ -867,4 +616,260 @@ function holdForPatron() { [% INCLUDE 'facets.inc' %] + +[% MACRO jsinclude BLOCK %] + [% INCLUDE 'browser-strings.inc' %] + + + + +[% END %] + [% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5