[Koha-patches] [PATCH] Bug 10850 - Give Quick spine label template page its own id

Owen Leonard oleonard at myacpl.org
Wed Sep 11 17:58:44 CEST 2013


Out of three conditional cases for display of the <body> tag one lacked
a unique ID. This patch copies the unique ID from the other cases to the
one lacking.

This patch also corrects the case of an "onload" attribute which should
follow XHTML style rules.

To test, the patch for Bug 9618 must be applied. Set the
SpineLabelAutoPrint system preference to "[don't] automatically pop up a
print dialog." Submit a barcode on the quick spine label creator and
view source. The <body> tag should have an ID attribute.
---
 .../prog/en/modules/labels/spinelabel-print.tt     |    4 ++--
 1 file changed, 2 insertions(+), 2 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 b5b9256..72aa9b1 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
@@ -27,9 +27,9 @@
 		</body>
 	[% ELSE %]
 		[% IF ( autoprint ) %]
-			<body id="labels_spinelabel-print" class="tools labels" onLoad="window.print()">
+            <body id="labels_spinelabel-print" class="tools labels" onload="window.print()">
 		[% ELSE %]	
-			<body>
+            <body id="labels_spinelabel-print" class="tools labels">
 		[% END %] 
 			<span id="spinelabel" class="label">
 				[% content %]
-- 
1.7.9.5


More information about the Koha-patches mailing list