@@ -, +, @@ --- .../opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 22 +++++++++++++++++++++- opac/sco/sco-main.pl | 3 +++ 2 files changed, 24 insertions(+), 1 deletion(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -35,6 +35,7 @@ [% IF ( impossible ) %]
+

Item cannot be checked out.

Sorry, this item cannot be checked out at this station.

[% IF ( title ) %] @@ -96,6 +97,7 @@ [% IF ( confirm ) %]

Please confirm the checkout:

+ [% IF ( confirm_renew_issue ) %]

This item is already checked out to you.

[% END %] @@ -139,6 +141,7 @@ [% IF ( nopermission ) %]
+

Access denied

Sorry, this self-checkout station has lost authentication. Please contact the administrator to resolve this problem.

@@ -147,6 +150,7 @@ [% IF ( different_ip ) %]
+

Session lost

You are accessing self-checkout from a different IP address! please log in again.

@@ -155,16 +159,32 @@ [% IF ( invalid_username_or_password ) %]
+

Record not found

Your userid was not found in the database. Please try again.

[% END %] [% IF ( issued ) %] - +

Item checked out

+ [% ELSIF ( renewed ) %] + +
+

Item renewed

+
+ [% ELSIF ( returned == 0 ) %] + +
+

Item not checked in: please see circulation staff for assistance

+
+ [% ELSIF ( returned == 1 ) %] + +
+

Item checked in

+
[% END %] --- a/opac/sco/sco-main.pl +++ a/opac/sco/sco-main.pl @@ -126,11 +126,13 @@ my $return_only = 0; #warn "issuer cardnumber: " . $issuer->{cardnumber}; #warn "patron cardnumber: " . $borrower->{cardnumber}; if ($op eq "logout") { + $template->param( loggedout => 1 ); $query->param( patronid => undef, patronlogin => undef, patronpw => undef ); } elsif ( $op eq "returnbook" && $allowselfcheckreturns ) { my ($doreturn) = AddReturn( $barcode, $branch ); #warn "returnbook: " . $doreturn; + $template->param( returned => $doreturn ); $borrower = GetMember( cardnumber => $patronid ); } elsif ( $op eq "checkout" ) { @@ -176,6 +178,7 @@ elsif ( $op eq "checkout" ) { if ($confirmed) { #warn "renewing"; AddRenewal( $borrower, $item->{itemnumber} ); + $template->param( renewed => 1 ); } else { #warn "renew confirmation"; $template->param( --