3 [% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %]
4 [% SET return_claims = patron.return_claims %]
5 [% SET logged_in_branchcode = Branches.GetLoggedInBranchcode() %]
7 [% 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 ) %]
10 [% IF ( has_modifications ) %]
11 <li class="has_modifications">
12 <span class="circ-hlt">Pending modifications:</span>
13 [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
14 <a href="/cgi-bin/koha/members/members-update.pl?active=[% patron.borrowernumber | uri %]">Review pending modifications</a>
16 <span>Patron has pending modifications</span>
21 [% IF ( warndeparture ) %]
22 <li class="warndeparture">
23 <span class="circ-hlt">Expiration:</span>
24 <span>Patron's card will expire soon.</span>
25 <span>Patron's card expires on [% expiry | $KohaDates %]</span>
26 <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]">Edit details</a>
30 [% IF ( returnbeforeexpiry ) %]
31 <li class="returnbeforeexpiry">
32 <span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the expiry date is before the date due, the date due will be set to the expiry date
38 <span class="circ-hlt">Expiration:</span>
39 <span>Patron's card has expired.</span>
41 <span>Patron's card expired on [% expiry | $KohaDates %]</span>
43 <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&destination=circ&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]">Edit details</a>
47 [% IF ( patron.gonenoaddress ) %]
48 <li class="gonenoaddress blocker">
49 <span title="gonenoaddress flag is set in patron record"><span class="circ-hlt">Address:</span> Patron's address flagged as in doubt</span>
53 [% IF ( patron.lost ) %]
54 <li class="lost blocker">
55 <span title="lost flag is set in patron record"><span class="circ-hlt">Lost: </span> Patron's card is flagged as lost</span>
59 [% IF ( userdebarred ) %]
60 <li class="userdebarred blocker">
61 <span class="circ-hlt"> Restricted since [% debarredsince | $KohaDates %]:</span> Patron's account is restricted
63 [% IF ( userdebarreddate ) %]
64 until [% userdebarreddate | $KohaDates %]
67 [% IF ( debarredcomment ) %]
68 with the explanation: <br/>
70 [% IF debarredcomment.search('OVERDUES_PROCESS') %]
71 Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %]
73 [% debarredcomment | $raw | html_line_break %]
77 <a class="btn btn-xs btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a>
79 [% IF (noissues && CAN_user_circulate_force_checkout) %]
80 <span class="override_debarment">
81 <a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-xs btn-default">Override restriction temporarily</a>
84 </li> <!-- /.blocker -->
85 [% END # /IF userdebarred %]
88 <li class="odues blocker">
89 <span class="circ-hlt">Overdues:</span> Patron has ITEMS OVERDUE <a href="#checkouts">See highlighted items below</a>
93 [% IF return_claims.count > ClaimReturnedWarningThreshold %]
94 <li class="return_claims blocker">
95 <span class="circ-hlt return-claims">Return claims:</span> Patron has [% return_claims.count | html %] RETURN CLAIMS
99 [% IF age_limitations %]
100 [% INCLUDE 'category-out-of-age-limit.inc' %]
104 [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
107 [% IF ( charges_guarantors_guarantees ) %]
108 <li class="charges_guarantors_guarantees">
109 <span class="circ-hlt">Charges:</span> Patron's guarantors and their other guarantees collectively owe [% charges_guarantors_guarantees | $Price %].
111 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
116 [% IF ( charges_guarantees ) %]
117 <li class="charges_guarantees">
118 <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
120 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
127 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of <span class="credit"><strong>[% creditsamount | $Price %]</strong></span>[% END %]
133 [% END # /F ( has_modifications || warndeparture... %]
135 [% IF waiting_recalls.count %]
136 <div id="recallswaiting" class="circmessage">
137 [% SET waiting_here = 0 %]
138 [% SET waiting_elsewhere = 0 %]
139 [% FOREACH w IN waiting_recalls %]
140 [% IF ( w.pickup_library_id == logged_in_branchcode ) %]
141 [% waiting_here = waiting_here + 1 %]
143 [% waiting_elsewhere = waiting_elsewhere + 1 %]
147 [% IF ( waiting_here > 0 ) %]
148 <h4>Recalls waiting here ([% waiting_here | html %])</h4>
150 [% FOREACH w IN waiting_recalls %]
151 [% IF ( w.pickup_library_id == logged_in_branchcode ) %]
153 <a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a>
154 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
155 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
156 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
157 <span>Recall placed on [% w.created_date | $KohaDates %].</span>
159 <strong class="waitinghere">
160 [% SET expires_on = w.expiration_date %]
161 Waiting here [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
169 [% IF ( waiting_elsewhere > 0 ) %]
170 <h4>Recalls waiting at other libraries ([% waiting_elsewhere | html %])</h4>
172 [% FOREACH w IN waiting_recalls %]
173 [% IF ( w.pickup_library_id != logged_in_branchcode ) %]
175 <a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a>
176 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
177 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
178 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
179 <span>Recall placed on [% w.created_date | $KohaDates %].</span>
182 [% SET expires_on = w.expiration_date %]
183 Waiting at [% Branches.GetName( w.pickup_library_id ) | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
191 [% END # /IF waiting_recalls.count %]
193 [% IF WaitingHolds.count %]
194 <div id="holdswaiting" class="circmessage">
195 [% SET waiting_here = 0 %]
196 [% SET waiting_elsewhere = 0 %]
197 [% FOREACH w IN WaitingHolds %]
198 [% IF ( w.branch.branchcode == logged_in_branchcode ) %]
199 [% waiting_here = waiting_here + 1 %]
201 [% waiting_elsewhere = waiting_elsewhere + 1 %]
205 [% IF ( waiting_here > 0 ) %]
206 <h4>Holds waiting here ([% waiting_here | html %])</h4>
208 [% FOREACH w IN WaitingHolds %]
209 [% IF ( w.branch.branchcode == logged_in_branchcode ) %]
211 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
212 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
213 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
214 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
215 <span>Hold placed on [% w.reservedate | $KohaDates %].</span>
217 <strong class="waitinghere">
218 [% SET expires_on = w.expirationdate %]
219 Waiting here [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
227 [% IF ( waiting_elsewhere > 0 ) %]
228 <h4>Holds waiting at other libraries ([% waiting_elsewhere | html %])</h4>
230 [% FOREACH w IN WaitingHolds %]
231 [% IF ( w.branch.branchcode != logged_in_branchcode ) %]
233 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a>
234 ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]),
235 [% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %]
236 [% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %]
237 <span>Hold placed on [% w.reservedate | $KohaDates %].</span>
240 [% SET expires_on = w.expirationdate %]
241 Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %]
249 [% END # /IF WaitingHolds.count %]
251 [% IF Koha.Preference("CurbsidePickup") %]
252 [% SET curbside_pickups = patron.curbside_pickups.search( branchcode => Branches.GetLoggedInBranchcode ) %]
253 [% IF curbside_pickups.count %]
254 <div id="curbside_pickups" class="circmessage">
255 <h4>Curbside pickups scheduled here</h4>
257 [% FOR cp IN curbside_pickups %]
258 <li>On [% cp.scheduled_pickup_datetime | $KohaDates %]:
259 [% SWITCH cp.status %]
260 [% CASE 'to-be-staged' %]
261 <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=to-be-staged">
263 [% CASE 'staged-and-ready' %]
264 <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=staged-and-ready">
266 [% CASE 'patron-is-outside' %]
267 <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=patron-is-outside">
268 Patron is outside!</a>
269 [% CASE 'delivered' %]
270 <a href="/cgi-bin/koha/circ/curbside_pickups.pl?tab=delivered-today">
272 [% CASE %]<span>Unknown status "[% cp.status | html %]"</span>
281 [% IF ( patron.borrowernotes ) %]
282 <div id="circnotes" class="circmessage">
286 <span class="circ-hlt">
287 [% patron.borrowernotes | $raw | html_line_break %]
291 </div> <!-- /#circnotes -->
292 [% END # /IF patron.borrowernotes %]
294 [% IF ( patron_messages ) %]
295 <div id="messages" class="circmessage">
298 [% FOREACH patron_message IN patron_messages %]
300 [% IF(patron_message.message_type == "L") %]
301 <span class="circ-hlt">
305 [% patron_message.message_date | $KohaDates %]
306 [% Branches.GetName( patron_message.branchcode ) | html %]
307 [% IF patron_message.manager_id %]
308 ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id | uri %]">[% patron_message.get_column('manager_firstname') | html %] [% patron_message.get_column('manager_surname') | html %]</a> )
310 <em>"[% patron_message.message | html %]"</em>
312 [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
314 <a class="btn btn-link delete_message" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&borrowernumber=[% patron_message.borrowernumber | html %]&from=moremember"><i class="fa fa-trash"></i> Delete</a>
316 <a class="btn btn-link delete_message" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&borrowernumber=[% patron_message.borrowernumber | html %]"><i class="fa fa-trash"></i> Delete</a>
322 <a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a>
323 </div> <!-- /#messages -->
324 [% END # /IF patron_messages %]