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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt (+10 lines)
Lines 8-13 Link Here
8
<script type="text/javascript" src="[% yuipath %]/container/container-min.js"></script>
8
<script type="text/javascript" src="[% yuipath %]/container/container-min.js"></script>
9
<script type="text/javascript" src="[% yuipath %]/menu/menu-min.js"></script>
9
<script type="text/javascript" src="[% yuipath %]/menu/menu-min.js"></script>
10
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
10
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
11
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery-ui.js"></script>
11
<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>
12
<script type="text/javascript">//<![CDATA[
13
<script type="text/javascript">//<![CDATA[
13
function sco_init(valid_session) {
14
function sco_init(valid_session) {
Lines 19-24 function dofocus() { // named function req'd for body onload event by some FF Link Here
19
    // alert("dofocus called");
20
    // alert("dofocus called");
20
    $(".focus:last").select();
21
    $(".focus:last").select();
21
}
22
}
23
var slip_re = /slip/;
24
function printx_window(print_type) {
25
  var handler = print_type.match(slip_re) ? "printslip" : "moremember";
26
27
  return false;
28
}
22
29
23
function checkout_confirm(patronid) {
30
function checkout_confirm(patronid) {
24
    var   barcode = $("#barcode").val();
31
    var   barcode = $("#barcode").val();
Lines 35-40 function checkout_confirm(patronid) { Link Here
35
            this.patronid.value='';
42
            this.patronid.value='';
36
        }
43
        }
37
    }
44
    }
45
    if(confirm("Would you like to print a receipt?")){
46
      window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&amp;print=qslip");
47
    }
38
    return true;
48
    return true;
39
}
49
}
40
50
(-)a/opac/sco/printslip.pl (-6 / +2 lines)
Lines 60-74 my $error = $input->param('error'); Link Here
60
60
61
# circ staff who process checkouts but can't edit
61
# circ staff who process checkouts but can't edit
62
# patrons still need to be able to print receipts
62
# patrons still need to be able to print receipts
63
my $flagsrequired = { circulate => "circulate_remaining_permissions" };
64
65
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
63
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
66
    {
64
    {
67
        template_name   => "circ/printslip.tmpl",
65
        template_name   => "/sco/printslip.tmpl",
68
        query           => $input,
66
        query           => $input,
69
        type            => "intranet",
67
        type            => "opac",
70
        authnotrequired => 0,
71
        flagsrequired   => $flagsrequired,
72
        debug           => 1,
68
        debug           => 1,
73
    }
69
    }
74
);
70
);
(-)a/opac/sco/sco-main.pl (-1 / +1 lines)
Lines 236-241 if ($borrower->{cardnumber}) { Link Here
236
        patronlogin => $patronlogin,
236
        patronlogin => $patronlogin,
237
        patronpw => $patronpw,
237
        patronpw => $patronpw,
238
        noitemlinks => 1 ,
238
        noitemlinks => 1 ,
239
	borrowernumber => $borrower->{'borrowernumber'},
239
    );
240
    );
240
    my $inputfocus = ($return_only      == 1) ? 'returnbook' :
241
    my $inputfocus = ($return_only      == 1) ? 'returnbook' :
241
                     ($confirm_required == 1) ? 'confirm'    : 'barcode' ;
242
                     ($confirm_required == 1) ? 'confirm'    : 'barcode' ;
242
- 

Return to bug 8033