Bug 10850 - give quick spine label template page its own ID
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / spinelabel-print.tt
index ab51f9f..72aa9b1 100644 (file)
@@ -1,10 +1,5 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-[% IF ( bidi ) %]
-<html lang="[% lang %]" xml:lang="[% lang %]" dir="[% bidi %]" xmlns="http://www.w3.org/1999/xhtml">
-[% ELSE %]
-<html lang="[% lang %]" xml:lang="[% lang %]" xmlns="http://www.w3.org/1999/xhtml">
-[% END %]
+<!DOCTYPE html>
+[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
 <head>
 <title>Koha &rsaquo; Tools &rsaquo; Spine labels</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                        .noprint { display: none; }
                }
        </style>
+[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
+[% IF ( intranetuserjs ) %]
+    <script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
+    <script type="text/javascript">
+    //<![CDATA[
+    [% intranetuserjs %]
+    //]]>
+    </script>
+[% END %]
 </head>
        [% IF ( BarcodeNotFound ) %]
                <body id="labels_spinelabel-print" class="tools labels">
@@ -23,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 %]
@@ -35,4 +39,4 @@
                        </span>
                </body>
        [% END %]
-</html>
\ No newline at end of file
+</html>