From 85dbf9759a963557704e7e641213d8d098246b16 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 7 Oct 2024 07:14:44 +0100 Subject: [PATCH] Bug 35267: Move JS to bottom in printslip --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt index 26ebc3eb551..5f2a3254cd6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt @@ -2,6 +2,7 @@ [% USE Asset %] [% USE Koha %] [% PROCESS 'i18n.inc' %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% UNLESS slips && slips.size %] [% SET slips = [{content => slip, is_html => !plain, style => style, id => id }] %] @@ -35,6 +36,7 @@ [% INCLUDE 'doc-head-close.inc' %] + [% Asset.css("css/print.css") | $raw %] [% IF ( Koha.Preference('PrintSlipStylesheet') ) %] @@ -43,11 +45,9 @@ [% IF slip.style %][% END %] [% END %] -[% INCLUDE 'slip-print.inc' #printThenClose %]
- [% UNLESS slips && slips.size %] [% SET slips = [{content => slip, is_html => !plain, style => style }] %] [% END %] @@ -64,4 +64,8 @@ [% IF slips.size > 1 && !loop.last%]
[% END %] [% END %] +[% MACRO jsinclude BLOCK %] + [% INCLUDE 'slip-print.inc' #printThenClose %] +[% END %] + [% INCLUDE 'intranet-bottom.inc' %] -- 2.46.2