From cb59e37e56c255219298450f7a289cf7c3fe819b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 18 Mar 2013 15:13:09 -0400 Subject: [PATCH] Bug 9618: Add support for intranetuserjs to labels/spinelabel-print.pl The template for printing a single spine label is a stripped-down version of a standard Koha template, but it should include intranetuserjs and IntranetUserCSS so that libraries can make local customizations. This patch updates the page's DOCTYPE to HTML5 and adds the missing markup for including those preferences. Also added is jQuery, since there's a good chance local customizations are using jQuery. To test, make sure there is something in your intranetuserjs and IntranetUserCSS system preferences. Visit /cgi-bin/koha/labels/spinelabel-home.pl and submit a barcode. View source on the spine label output page and confirm that your custom js and css were included correctly. Signed-off-by: Campbell Reid-Tait Signed-off-by: Katrin Fischer Template only change, works nicely. Signed-off-by: Galen Charlton --- .../prog/en/modules/labels/spinelabel-print.tt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt index ab51f9f82c..f028357487 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt @@ -1,10 +1,5 @@ - -[% IF ( bidi ) %] - -[% ELSE %] - -[% END %] + +[% IF ( bidi ) %][% ELSE %][% END %] Koha › Tools › Spine labels @@ -15,6 +10,15 @@ .noprint { display: none; } } +[% IF ( IntranetUserCSS ) %][% END %] + +[% IF ( intranetuserjs ) %] + +[% END %] [% IF ( BarcodeNotFound ) %] -- 2.39.2