Lines 1-5
Link Here
|
1 |
[% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %] |
1 |
[% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %] |
2 |
[% SET return_claims = patron.return_claims %] |
2 |
[% SET return_claims = patron.return_claims %] |
|
|
3 |
[% SET logged_in_branchcode = Branches.GetLoggedInBranchcode() %] |
3 |
|
4 |
|
4 |
[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || charges || charges_guarantors_guarantees || charges_guarantees || credits ) %] |
5 |
[% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || charges || charges_guarantors_guarantees || charges_guarantees || credits ) %] |
5 |
<h3>Attention</h3> |
6 |
<h3>Attention</h3> |
Lines 134-140
Link Here
|
134 |
[% SET waiting_here = 0 %] |
135 |
[% SET waiting_here = 0 %] |
135 |
[% SET waiting_elsewhere = 0 %] |
136 |
[% SET waiting_elsewhere = 0 %] |
136 |
[% FOREACH w IN waiting_recalls %] |
137 |
[% FOREACH w IN waiting_recalls %] |
137 |
[% IF ( w.pickup_library_id == Branches.GetLoggedInBranchcode() ) %] |
138 |
[% IF ( w.pickup_library_id == logged_in_branchcode ) %] |
138 |
[% waiting_here = waiting_here + 1 %] |
139 |
[% waiting_here = waiting_here + 1 %] |
139 |
[% ELSE %] |
140 |
[% ELSE %] |
140 |
[% waiting_elsewhere = waiting_elsewhere + 1 %] |
141 |
[% waiting_elsewhere = waiting_elsewhere + 1 %] |
Lines 145-151
Link Here
|
145 |
<h4>Recalls waiting here ([% waiting_here | html %])</h4> |
146 |
<h4>Recalls waiting here ([% waiting_here | html %])</h4> |
146 |
<ul> |
147 |
<ul> |
147 |
[% FOREACH w IN waiting_recalls %] |
148 |
[% FOREACH w IN waiting_recalls %] |
148 |
[% IF ( w.pickup_library_id == Branches.GetLoggedInBranchcode() ) %] |
149 |
[% IF ( w.pickup_library_id == logged_in_branchcode ) %] |
149 |
<li> |
150 |
<li> |
150 |
<a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a> |
151 |
<a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a> |
151 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
152 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
Lines 167-173
Link Here
|
167 |
<h4>Recalls waiting at other libraries ([% waiting_elsewhere | html %])</h4> |
168 |
<h4>Recalls waiting at other libraries ([% waiting_elsewhere | html %])</h4> |
168 |
<ul> |
169 |
<ul> |
169 |
[% FOREACH w IN waiting_recalls %] |
170 |
[% FOREACH w IN waiting_recalls %] |
170 |
[% IF ( w.pickup_library_id != Branches.GetLoggedInBranchcode() ) %] |
171 |
[% IF ( w.pickup_library_id != logged_in_branchcode ) %] |
171 |
<li> |
172 |
<li> |
172 |
<a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a> |
173 |
<a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a> |
173 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
174 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
Lines 192-198
Link Here
|
192 |
[% SET waiting_here = 0 %] |
193 |
[% SET waiting_here = 0 %] |
193 |
[% SET waiting_elsewhere = 0 %] |
194 |
[% SET waiting_elsewhere = 0 %] |
194 |
[% FOREACH w IN WaitingHolds %] |
195 |
[% FOREACH w IN WaitingHolds %] |
195 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] |
196 |
[% IF ( w.branch.branchcode == logged_in_branchcode ) %] |
196 |
[% waiting_here = waiting_here + 1 %] |
197 |
[% waiting_here = waiting_here + 1 %] |
197 |
[% ELSE %] |
198 |
[% ELSE %] |
198 |
[% waiting_elsewhere = waiting_elsewhere + 1 %] |
199 |
[% waiting_elsewhere = waiting_elsewhere + 1 %] |
Lines 203-209
Link Here
|
203 |
<h4>Holds waiting here ([% waiting_here | html %])</h4> |
204 |
<h4>Holds waiting here ([% waiting_here | html %])</h4> |
204 |
<ul> |
205 |
<ul> |
205 |
[% FOREACH w IN WaitingHolds %] |
206 |
[% FOREACH w IN WaitingHolds %] |
206 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] |
207 |
[% IF ( w.branch.branchcode == logged_in_branchcode ) %] |
207 |
<li> |
208 |
<li> |
208 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
209 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
209 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
210 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
Lines 225-231
Link Here
|
225 |
<h4>Holds waiting at other libraries ([% waiting_elsewhere | html %])</h4> |
226 |
<h4>Holds waiting at other libraries ([% waiting_elsewhere | html %])</h4> |
226 |
<ul> |
227 |
<ul> |
227 |
[% FOREACH w IN WaitingHolds %] |
228 |
[% FOREACH w IN WaitingHolds %] |
228 |
[% IF ( w.branch.branchcode != Branches.GetLoggedInBranchcode() ) %] |
229 |
[% IF ( w.branch.branchcode != logged_in_branchcode ) %] |
229 |
<li> |
230 |
<li> |
230 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
231 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
231 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
232 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
232 |
- |
|
|