David Cook
8e00a96cf1
This patch adds missing Javascript libraries to the self-checkout print slip. These missing libraries were preventing the auto print prompt and close. There was also a font error. To Test: 0) Apply patch 1) Turn on system preference SelfCheckReceiptPrompt 2) Check out item via /cgi-bin/koha/sco/sco-main.pl 3) Click "Finish" 4) Press F12 on keyboard and choose Console 5) Note no Javascript errors 6) Note that print dialog appears and closes after a print option is chosen Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %] › Self checkout › Print Receipt for [% borrowernumber | html %]</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link rel="shortcut icon" href="[% IF ( OpacFavicon ) %][% OpacFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/images/favicon.ico[% END %]" type="image/x-icon" />
|
|
[% Asset.css("css/print.css") | $raw %]
|
|
[% IF stylesheet %]
|
|
<link rel="stylesheet" type="text/css" href="[% stylesheet | $raw %]" />
|
|
[% END %]
|
|
|
|
<!-- JavaScript includes -->
|
|
[% Asset.js("lib/jquery/jquery-3.4.1.min.js") | $raw %]
|
|
[% Asset.js("lib/jquery/jquery-migrate-3.1.0.min.js") | $raw %]
|
|
[% Asset.js("lib/fontfaceobserver.min.js") | $raw %]
|
|
[% Asset.js("js/global.js") | $raw %]
|
|
|
|
[% INCLUDE 'slip-print.inc' #printThenClose %]
|
|
|
|
</head>
|
|
|
|
<body id="circ_printslip" class="circ">
|
|
<div id="receipt">
|
|
[% IF plain %]
|
|
<pre>
|
|
[% slip | html %]
|
|
</pre>
|
|
[% ELSE %]
|
|
[% slip | $raw %]
|
|
[% END %]
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|