From e7250c10b4c70339a5877746c849e20071c6bd42 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 4 Oct 2024 09:26:49 +0100 Subject: [PATCH] Bug 38089: Move style to head and correct regular expression This patch moves the local style sections from the body to the head where they belong and it also updates the regular expression used to prepend the slip_id id to css selectors rather than replace them --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 3f24b22223a..938c52f41e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt @@ -29,6 +29,9 @@ [% IF ( Koha.Preference('SlipCSS') ) %] [% END %] +[% FOR slip IN slips %] +[% IF slip.style %][% END %] +[% END %] [% INCLUDE 'slip-print.inc' #printThenClose %] @@ -39,7 +42,6 @@ [% SET slips = [{content => slip, is_html => !plain, style => style }] %] [% END %] [% FOR slip IN slips %] -[% IF slip.style %][% END %]
[% UNLESS slip.is_html %]
-- 
2.46.2