Bug 12337 - Multi-clicking the renewal buttons on circulation.pl can trigger "renewal...
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / printslip.tt
index 7b29d4e..8e2b25b 100644 (file)
@@ -1,22 +1,14 @@
+[% USE Koha %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>[% title %]</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
+<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
 [% IF stylesheet %]
 <link rel="stylesheet" type="text/css" href="[% stylesheet %]" />
 [% END %]
 
-<script language="javascript">
-[% IF ( IntranetSlipPrinterJS ) %]
-    [% IntranetSlipPrinterJS %]
-[% ELSE %]
-     function printThenClose() {
-         window.print();
-         window.close();
-     }
-[% END %]
-</script>
+[% INCLUDE 'slip-print.inc' #printThenClose %]
 </head>
 <body id="circ_printslip" class="circ" onload="printThenClose();">
 <div id="receipt">