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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/receipt.tt (-46 lines)
Lines 1-46 Link Here
1
<!DOCTYPE html>
2
[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
3
<head>
4
<title>RECEIPT</title>
5
<script type="text/javascript">
6
    x = 0;
7
    function callPrint(){
8
         while (x == 0){
9
          self.print();
10
          javascript:window.opener.location='/cgi-bin/koha/sco/sco-main.pl?logout.x=1';
11
          x = 1;
12
         }
13
    }
14
15
    function closeNow(){
16
      if (x == 1){
17
        setTimeout('self.close()',1000);
18
      }
19
    }
20
</script>
21
22
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
23
[% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %]
24
25
</head>
26
27
<body onLoad="callPrint(); closeNow();">
28
29
[% branchname %]<br><br>
30
[% cardnumber %]<br>
31
32
[% IF ( todayissues ) %]<br>
33
<p><b>Today's checkouts</b></p>
34
[% FOREACH todayissue IN todayissues %]<br>
35
[% todayissue.title |html %]<br>
36
[% todayissue.author %]<br>
37
[% todayissue.dd %]<br>
38
[% todayissue.barcode %]<br>
39
[% END %]
40
[% END %]
41
42
</body>
43
</html>
44
45
[% BLOCK jsinclude %]
46
[% END %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/receipt.tt (-57 lines)
Lines 1-57 Link Here
1
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.01 Transitional//EN">
2
<html>
3
4
<head>
5
<title> RECEIPT </title>
6
7
<script type="text/javascript">
8
//<![CDATA[
9
x = 0; 
10
function callPrint()
11
{
12
     while (x == 0)
13
      
14
     {
15
      self.print();
16
      window.opener.location='/cgi-bin/koha/sco/sco-main.pl?logout.x=1';
17
      x = 1; 
18
     }
19
}
20
21
function closeNow()
22
{
23
  if (x == 1)
24
  {
25
    setTimeout('self.close()',1000);
26
  }    
27
}
28
//]]>
29
</script> 
30
31
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
32
[% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %]
33
34
</head>
35
36
<body onLoad="callPrint(); closeNow();"> 
37
38
[% branchname %]<br><br>
39
[% cardnumber %]<br>      
40
41
<!-- begin code Mamata-->
42
[% IF ( todayissues ) %]<br>
43
<p><b>Today's checkouts</b></p>
44
[% FOREACH todayissue IN todayissues %]<br>
45
[% todayissue.title |html %]<br> 
46
[% todayissue.author %]<br>
47
[% todayissue.dd %]<br>	    
48
[% todayissue.barcode %]<br>
49
[% END %]
50
[% END %]
51
52
<!-- end code Mamata-->
53
54
55
</body>
56
57
</html>
(-)a/opac/sco/printslip.pl (-3 / +2 lines)
Lines 45-51 my $error = $input->param('error'); Link Here
45
# patrons still need to be able to print receipts
45
# patrons still need to be able to print receipts
46
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
46
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
47
    {
47
    {
48
        template_name   => "/sco/printslip.tmpl",
48
        template_name   => "/sco/printslip.tt",
49
        query           => $input,
49
        query           => $input,
50
        type            => "opac",
50
        type            => "opac",
51
    }
51
    }
Lines 61-67 if (my $letter = IssueSlip ($session->param('branch') || $branch, $borrowernumbe Link Here
61
61
62
$template->{VARS}->{slip} = $slip;
62
$template->{VARS}->{slip} = $slip;
63
$template->{VARS}->{plain} = !$is_html;
63
$template->{VARS}->{plain} = !$is_html;
64
$template->{VARS}->{title} = "Print Receipt for $borrowernumber";
64
$template->{VARS}->{borrowernumber} = $borrowernumber;
65
$template->{VARS}->{stylesheet} = C4::Context->preference("SlipCSS");
65
$template->{VARS}->{stylesheet} = C4::Context->preference("SlipCSS");
66
$template->{VARS}->{error} = $error;
66
$template->{VARS}->{error} = $error;
67
67
68
- 

Return to bug 8033