Bug 10850 - give quick spine label template page its own ID
authorOwen Leonard <oleonard@myacpl.org>
Wed, 11 Sep 2013 15:51:54 +0000 (11:51 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 18 Oct 2013 04:51:14 +0000 (04:51 +0000)
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.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt

index b5b9256..72aa9b1 100644 (file)
@@ -27,9 +27,9 @@
                </body>
        [% ELSE %]
                [% IF ( autoprint ) %]
                </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 %]      
                [% ELSE %]      
-                       <body>
+            <body id="labels_spinelabel-print" class="tools labels">
                [% END %] 
                        <span id="spinelabel" class="label">
                                [% content %]
                [% END %] 
                        <span id="spinelabel" class="label">
                                [% content %]