Bug 15375 [QA Followup] - Fix non-functional restriction message and date
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
parent
a633af13b6
commit
4369486767
2 changed files with 9 additions and 4 deletions
|
@ -40,8 +40,8 @@
|
|||
[% IF ( debarred ) %]
|
||||
<li id="debarred">
|
||||
Your account has been frozen.
|
||||
[% IF ( BORROWER_INF.debarredcomment ) %] Comment: <span id="userdebarred_comment">"[% BORROWER_INF.debarredcomment %]"</span>[% END %]
|
||||
[% IF ( BORROWER_INF.userdebarreddate ) %] End date: <span id="userdebarred_date">[% BORROWER_INF.userdebarreddate | $KohaDates %]</span>[% END %]
|
||||
[% IF debarred_comment %] Comment: <span id="userdebarred_comment">"[% debarred_comment %]"</span>[% END %]
|
||||
[% IF debarred_date && debarred_date != '9999-12-31' %] End date: <span id="userdebarred_date">[% debarred_date | $KohaDates %]</span>[% END %]
|
||||
<br /><em>Usually the reason for freezing an account is old overdues or damage fees. If shows your account to be clear, please contact the library.</em> <a href="/cgi-bin/koha/opac-account.pl">Go to your account page</a>
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
|
@ -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},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue