Bug 7563 - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client...
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / printslip.tt
index 3e60d73..7b29d4e 100644 (file)
@@ -8,10 +8,14 @@
 [% END %]
 
 <script language="javascript">
-    function printThenClose() {
-        window.print();
-        window.close();
-    }
+[% IF ( IntranetSlipPrinterJS ) %]
+    [% IntranetSlipPrinterJS %]
+[% ELSE %]
+     function printThenClose() {
+         window.print();
+         window.close();
+     }
+[% END %]
 </script>
 </head>
 <body id="circ_printslip" class="circ" onload="printThenClose();">