From c9e2f41bf4388e4562f23506b3879b0edc0ae6ca Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 20 Mar 2017 10:48:21 -0400 Subject: [PATCH] Bug 18251 (QA Followup) Add alerts for all SCO actions To test: Add sound alerts for sco-alert-warning Test various actions (return,renew) and verify success/failure notices and sounds Note additional classes (return,renew,issue) to allow for more specificity of sounds alerts --- .../opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 22 +++++++++++++++++++++- opac/sco/sco-main.pl | 3 +++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index d47e692..a8ab8ce 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/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 %] diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index bd29126..721399d 100755 --- a/opac/sco/sco-main.pl +++ b/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( -- 2.1.4