View | Details | Raw Unified | Return to bug 18405
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/slip-print.inc (+10 lines)
Line 0 Link Here
1
<script type="text/javascript">
2
[% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
3
    [% Koha.Preference('IntranetSlipPrinterJS') %]
4
[% ELSE %]
5
    $( window ).load(function() {
6
        window.print();
7
        setTimeout('window.close()', 1);
8
    });
9
[% END %]
10
</script>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt (-8 / +9 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] &rsaquo; Self checkout &rsaquo; Print Receipt for [% borrowernumber %]</title>
3
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] &rsaquo; Self checkout &rsaquo; Print Receipt for [% borrowernumber %]</title>
3
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Lines 6-20 Link Here
6
[% IF stylesheet %]
7
[% IF stylesheet %]
7
<link rel="stylesheet" type="text/css" href="[% stylesheet %]" />
8
<link rel="stylesheet" type="text/css" href="[% stylesheet %]" />
8
[% END %]
9
[% END %]
9
<script type="text/javascript">
10
10
    function printThenClose() {
11
<!-- JavaScript includes -->
11
        window.print();
12
<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/jquery.js"></script>
12
        setTimeout('window.close()', 1);
13
<script type="text/javascript" src="[% interface %]/[% theme %]/js/global.js"></script>
13
    }
14
14
</script>
15
[% INCLUDE 'slip-print.inc' %]
16
15
</head>
17
</head>
16
18
17
<body id="circ_printslip" class="circ" onload="printThenClose();">
19
<body id="circ_printslip" class="circ">
18
    <div id="receipt">
20
    <div id="receipt">
19
        [% IF plain %]
21
        [% IF plain %]
20
            <pre>
22
            <pre>
21
- 

Return to bug 18405