Adds auto print/auto close functionality to hold transit slip.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / hold-transfer-slip.tmpl
index 173d3bb..2b82cd8 100644 (file)
@@ -1,8 +1,12 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
 <title>Koha -- Circulation: Transfers</title>
 <!-- TMPL_INCLUDE NAME="doc-head-close-receipt.inc" -->
+<script language="javascript">
+window.print();
+window.close();
+</script>
 </head>
-<body onload="window.print();window.close();">
+<body onload="window.print();">
 <div id="main">
         <!-- TMPL_LOOP NAME="reservedata" -->
 <h5>Date: <!-- TMPL_VAR NAME="pulldate" --></h5>
     <!-- TMPL_IF NAME="email" --><li><!-- TMPL_VAR NAME="email" --></li> <!-- /TMPL_IF -->
 </ul>
 <br />
-<h3>RESERVED ITEM</h2>
- <h4><!-- TMPL_VAR Name="title" --></h4>
+<h3>RESERVED ITEM</h3>
+ <h4><!-- TMPL_VAR Name="title" escape="html" --></h4>
  <h5><!-- TMPL_VAR NAME="author" --> </h5>
  <p><!-- TMPL_VAR Name="barcode" --></p>
+ <!-- TMPL_IF NAME="reservenotes" --><p>Notes: <!-- TMPL_VAR Name="reservenotes" --></p><!-- /TMPL_IF -->