From 38dc5c75c48254c79277424e789e36e58e92dc36 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 15 Jan 2016 18:20:09 +0000 Subject: [PATCH] Bug 15375 [QA Followup] - Fix non-functional restriction message and date MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Kyle M Hall Signed-off-by: Brendan A Gallagher (cherry picked from commit 43694867676ed627759a302ade7d666ab029490b) Signed-off-by: Julian Maurice (cherry picked from commit db2a954579499d8f21670c157ee50959fe50143e) Signed-off-by: Frédéric Demians --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 4 ++-- opac/opac-reserve.pl | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 254dcf4acd..a587b734d8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -40,8 +40,8 @@ [% IF ( debarred ) %]
  • Your account has been frozen. - [% IF ( BORROWER_INF.debarredcomment ) %] Comment: "[% BORROWER_INF.debarredcomment %]"[% END %] - [% IF ( BORROWER_INF.userdebarreddate ) %] End date: [% BORROWER_INF.userdebarreddate | $KohaDates %][% END %] + [% IF debarred_comment %] Comment: "[% debarred_comment %]"[% END %] + [% IF debarred_date && debarred_date != '9999-12-31' %] End date: [% debarred_date | $KohaDates %][% END %]
    Usually the reason for freezing an account is old overdues or damage fees. If shows your account to be clear, please contact the library. Go to your account page
  • [% END %] diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index f4f8532925..7225e0eced 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -314,6 +314,7 @@ if ( $borr->{'amountoutstanding'} && ($borr->{'amountoutstanding'} > $maxoutstan $noreserves = 1; $template->param( too_much_oweing => $amount ); } + if ( $borr->{gonenoaddress} && ($borr->{gonenoaddress} == 1) ) { $noreserves = 1; $template->param( @@ -321,6 +322,7 @@ if ( $borr->{gonenoaddress} && ($borr->{gonenoaddress} == 1) ) { GNA => 1 ); } + if ( $borr->{lost} && ($borr->{lost} == 1) ) { $noreserves = 1; $template->param( @@ -328,11 +330,14 @@ if ( $borr->{lost} && ($borr->{lost} == 1) ) { lost => 1 ); } + if ( IsDebarred($borrowernumber) ) { $noreserves = 1; $template->param( - message => 1, - debarred => 1 + message => 1, + debarred => 1, + debarred_comment => $borr->{debarredcomment}, + debarred_date => $borr->{debarred}, ); } -- 2.39.5