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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/printslip.tt (-1 / +3 lines)
Lines 1-5 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>[% title %]</title>
2
3
 <title i18n-content="title">Print Receipt for [% borrowernumber %]</title>
4
3
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
6
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
5
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
7
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
(-)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