Bug 10731: fix use of IntranetSlipPrinterJS by hold slips
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / printslip.tt
index 9c60023..7dc5b81 100644 (file)
@@ -1,3 +1,4 @@
+[% USE Koha %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>[% title %]</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@@ -8,8 +9,8 @@
 [% END %]
 
 <script type="text/javascript">
-[% IF ( IntranetSlipPrinterJS ) %]
-    [% IntranetSlipPrinterJS %]
+[% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
+    [% Koha.Preference('IntranetSlipPrinterJS') %]
 [% ELSE %]
      function printThenClose() {
          window.print();