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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/printslip.tt (+2 lines)
Lines 8-17 Link Here
8
[% END %]
8
[% END %]
9
9
10
<script language="javascript">
10
<script language="javascript">
11
//<![CDATA[
11
    function printThenClose() {
12
    function printThenClose() {
12
        window.print();
13
        window.print();
13
        window.close();
14
        window.close();
14
    }
15
    }
16
//]]>
15
</script>
17
</script>
16
</head>
18
</head>
17
<body id="circ_printslip" class="circ" onload="printThenClose();">
19
<body id="circ_printslip" class="circ" onload="printThenClose();">
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/receipt.tt (-2 / +4 lines)
Lines 4-10 Link Here
4
<head>
4
<head>
5
<title> RECEIPT </title>
5
<title> RECEIPT </title>
6
6
7
<script language="JavaScript" type="text/javascript">
7
<script type="text/javascript">
8
//<![CDATA[
8
x = 0; 
9
x = 0; 
9
function callPrint()
10
function callPrint()
10
{
11
{
Lines 12-18 function callPrint() Link Here
12
      
13
      
13
     {
14
     {
14
      self.print();
15
      self.print();
15
      javascript:window.opener.location='/cgi-bin/koha/sco/sco-main.pl?logout.x=1';
16
      window.opener.location='/cgi-bin/koha/sco/sco-main.pl?logout.x=1';
16
      x = 1; 
17
      x = 1; 
17
     }
18
     }
18
}
19
}
Lines 24-29 function closeNow() Link Here
24
    setTimeout('self.close()',1000);
25
    setTimeout('self.close()',1000);
25
  }    
26
  }    
26
}
27
}
28
//]]>
27
</script> 
29
</script> 
28
30
29
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
31
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt (-3 / +3 lines)
Lines 11-16 Link Here
11
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery-ui.js"></script>
11
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery-ui.js"></script>
12
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
12
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
13
<script type="text/javascript">//<![CDATA[
13
<script type="text/javascript">//<![CDATA[
14
function _(s) { return s; } // dummy function for gettext
14
function sco_init() {
15
function sco_init() {
15
    setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",[% SelfCheckTimeout %]);
16
    setTimeout("location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';",[% SelfCheckTimeout %]);
16
}
17
}
Lines 28-34 function checkout_confirm(patronid) { Link Here
28
    var   barcode = $("#barcode").val();
29
    var   barcode = $("#barcode").val();
29
    // alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'");
30
    // alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'");
30
    if (! barcode) { dofocus(); return false; }    // no barcode
31
    if (! barcode) { dofocus(); return false; }    // no barcode
31
    if (barcode == "__KOHA_NEW_CIRC__") {   // magic barcode 
32
    if (barcode == "__KOHA_NEW_CIRC__") {   // magic barcode
32
        window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';
33
        window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout';
33
        return false;
34
        return false;
34
    }
35
    }
Lines 90-96 $(document).ready(function() { Link Here
90
//]]>
91
//]]>
91
$(document).ready(function(){
92
$(document).ready(function(){
92
    $("#logout_form").submit(function(){
93
    $("#logout_form").submit(function(){
93
        if(confirm("Would you like to print a receipt?")){
94
        if(confirm(_("Would you like to print a receipt?"))){
94
            window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&amp;print=qslip");
95
            window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&amp;print=qslip");
95
        }
96
        }
96
        return true;
97
        return true;
97
- 

Return to bug 8033