|
Lines 2-11
Link Here
|
| 2 |
[% USE Branches %] |
2 |
[% USE Branches %] |
| 3 |
[% USE Categories %] |
3 |
[% USE Categories %] |
| 4 |
[% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %] |
4 |
[% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %] |
|
|
5 |
[% SET UnresolvedClaimReturnedWarningThreshold = Koha.Preference('UnresolvedClaimReturnedWarningThreshold') %] |
| 6 |
|
| 5 |
[% SET return_claims = patron.return_claims %] |
7 |
[% SET return_claims = patron.return_claims %] |
|
|
8 |
[% SET unresolved_return_claims = patron.unresolved_return_claims %] |
| 6 |
[% SET logged_in_branchcode = Branches.GetLoggedInBranchcode() %] |
9 |
[% SET logged_in_branchcode = Branches.GetLoggedInBranchcode() %] |
| 7 |
|
10 |
|
| 8 |
[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || limited_category || charges || charges_guarantors_guarantees || charges_guarantees || credits ) %] |
11 |
[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || ( unresolved_return_claims.count > UnresolvedClaimReturnedWarningThreshold ) || age_limitations || limited_category || charges || charges_guarantors_guarantees || charges_guarantees || credits ) %] |
| 9 |
<h3>Attention</h3> |
12 |
<h3>Attention</h3> |
| 10 |
<ul> |
13 |
<ul> |
| 11 |
[% IF ( has_modifications ) %] |
14 |
[% IF ( has_modifications ) %] |
|
Lines 117-122
Link Here
|
| 117 |
<li class="return_claims blocker"> <span class="circ-hlt return-claims">Return claims:</span> Patron has [% return_claims.count | html %] RETURN CLAIMS </li> |
120 |
<li class="return_claims blocker"> <span class="circ-hlt return-claims">Return claims:</span> Patron has [% return_claims.count | html %] RETURN CLAIMS </li> |
| 118 |
[% END %] |
121 |
[% END %] |
| 119 |
|
122 |
|
|
|
123 |
[% IF unresolved_return_claims.count > UnresolvedClaimReturnedWarningThreshold %] |
| 124 |
[% IF unresolved_return_claims.count > 1 %] |
| 125 |
<li class="return_claims blocker"> |
| 126 |
<span class="circ-hlt return-claims">Unresolved return claims:</span> Patron has [% unresolved_return_claims.count | html %] unresolved RETURN CLAIMS |
| 127 |
</li> |
| 128 |
[% ELSE %] |
| 129 |
<li class="return_claims blocker"> |
| 130 |
<span class="circ-hlt return-claims">Unresolved return claims:</span> Patron has [% unresolved_return_claims.count | html %] unresolved RETURN CLAIM |
| 131 |
</li> |
| 132 |
[% END %] |
| 133 |
[% END %] |
| 134 |
|
| 120 |
[% IF age_limitations %] |
135 |
[% IF age_limitations %] |
| 121 |
<li class="invalid_age"> |
136 |
<li class="invalid_age"> |
| 122 |
<span class="circ-hlt">Patron's age is incorrect for their category.</span> |
137 |
<span class="circ-hlt">Patron's age is incorrect for their category.</span> |
| 123 |
- |
|
|