From 5353199801b1a1ce4654c533404a7f2e4e3ca690 Mon Sep 17 00:00:00 2001 From: Jorgia Kelsey Date: Tue, 15 Jan 2013 15:23:30 +1300 Subject: [PATCH] bug 9388 accessibility - Added feedback when successfully returning item --- circ/returns.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index 9472797..8ae8dbe 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -425,7 +425,7 @@ foreach my $code ( keys %$messages ) { ; # FIXME... anything to do here? } elsif ( $code eq 'WasReturned' ) { - ; # FIXME... anything to do here? + $err{returned} = 1; } elsif ( $code eq 'WasTransfered' ) { ; # FIXME... anything to do here? diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 7fd8d1d..5894a5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -318,6 +318,9 @@ $(document).ready(function () { [% IF ( errmsgloop ) %]
[% FOREACH errmsgloo IN errmsgloop %] + [% IF ( errmsgloo.returned ) %] +

The item was returned

+ [% END %] [% IF ( errmsgloo.badbarcode ) %]

No item with barcode: [% errmsgloo.msg %]

[% END %] -- 1.7.10.4