The message in circulation.tt assumed to get days but date is given. Updated comments and message depending on expiration date or no expiration of restriction.
The message shows up on top of Bug 643 Allow override of 'debarred' status if a patron has a restriction.
Replaced date_format with date template (see comment #6)
Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
$needsconfirmation{USERBLOCKEDOVERDUE} = $count;
}
} elsif($blocktype == 1) {
- # patron has accrued fine days
- $issuingimpossible{USERBLOCKEDREMAINING} = $count;
+ # patron has accrued fine days or has a restriction. $count is a date
+ if ($count eq '9999-12-31') {
+ $issuingimpossible{USERBLOCKEDNOENDDATE} = $count;
+ }
+ else {
+ $issuingimpossible{USERBLOCKEDWITHENDDATE} = $count;
+ }
}
#
C<$block_status> can have the following values:
-1 if the patron has outstanding fine days, in which case C<$count> is the number of them
+1 if the patron has outstanding fine days or a manual debarment, in which case
+C<$count> is the expiration date (9999-12-31 for indefinite)
-1 if the patron has overdue items, in which case C<$count> is the number of them
<li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
[% END %]
- [% IF ( USERBLOCKEDREMAINING ) %]
- <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li>
+ [% IF ( USERBLOCKEDWITHENDDATE ) %]
+ <li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li>
[% END %]
-
- [% IF ( USERBLOCKEDOVERDUE ) %]
- <li>Checkouts are BLOCKED because patron has overdue items</li>
+
+ [% IF ( USERBLOCKEDNOENDDATE ) %]
+ <li>Patron has a restriction (no expiry date).</li>
+ [% END %]
+
+ [% IF ( USERBLOCKEDOVERDUE ) %]
+ <li>Checkouts are BLOCKED because patron has overdue items.</li>
[% END %]
</ul>