Line 0
Link Here
|
|
|
1 |
[% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %] |
2 |
[% SET return_claims = patron.return_claims %] |
3 |
|
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 |
<h3>Attention</h3> |
6 |
<ul> |
7 |
[% IF ( has_modifications ) %] |
8 |
<li class="has_modifications"> |
9 |
<span class="circ-hlt">Pending modifications:</span> Patron has pending modifications. |
10 |
[% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %] |
11 |
<a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a> |
12 |
[% END %] |
13 |
</li> |
14 |
[% END %] |
15 |
|
16 |
[% IF ( warndeparture ) %] |
17 |
<li class="warndeparture"> |
18 |
<span class="circ-hlt">Expiration:</span> Patron's card will expire soon. |
19 |
Patron's card expires on [% expiry | $KohaDates %] <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> |
20 |
|
21 |
</li> |
22 |
[% END %] |
23 |
|
24 |
[% IF ( returnbeforeexpiry ) %] |
25 |
<li class="returnbeforeexpiry"> |
26 |
<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 |
27 |
</li> |
28 |
[% END %] |
29 |
|
30 |
[% IF ( expired ) %] |
31 |
<li class="expired"> |
32 |
<span class="circ-hlt">Expiration:</span> Patron's card has expired. |
33 |
[% IF ( expiry ) %] |
34 |
Patron's card expired on [% expiry | $KohaDates %] |
35 |
[% END %] |
36 |
<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> |
37 |
</li> |
38 |
[% END %] |
39 |
|
40 |
[% IF ( patron.gonenoaddress ) %] |
41 |
<li class="gonenoaddress blocker"> |
42 |
<span class="circ-hlt">Address:</span> Patron's address in doubt |
43 |
</li> |
44 |
[% END %] |
45 |
|
46 |
[% IF ( patron.lost ) %] |
47 |
<li class="lost blocker"> |
48 |
<span class="circ-hlt">Lost: </span> Patron's card is lost |
49 |
</li> |
50 |
[% END %] |
51 |
|
52 |
[% IF ( userdebarred ) %] |
53 |
<li class="userdebarred blocker"> |
54 |
<span class="circ-hlt"> Restricted:</span> Patron's account is restricted |
55 |
|
56 |
[% IF ( userdebarreddate ) %] |
57 |
until [% userdebarreddate | $KohaDates %] |
58 |
[% END %] |
59 |
|
60 |
[% IF ( debarredcomment ) %] |
61 |
with the explanation: <br/> |
62 |
<em> |
63 |
[% IF debarredcomment.search('OVERDUES_PROCESS') %] |
64 |
Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %] |
65 |
[% ELSE %] |
66 |
[% debarredcomment | $raw | html_line_break %] |
67 |
[% END %] |
68 |
</em><br/> |
69 |
[% END %] |
70 |
<a class="btn btn-xs btn-default" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
71 |
|
72 |
[% IF (noissues && CAN_user_circulate_force_checkout) %] |
73 |
<span class="override_debarment"> |
74 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-xs btn-default">Override restriction temporarily</a> |
75 |
</span> |
76 |
[% END %] |
77 |
</li> <!-- /.blocker --> |
78 |
[% END # /IF userdebarred %] |
79 |
|
80 |
[% IF ( odues ) %] |
81 |
<li class="odues blocker"> |
82 |
<span class="circ-hlt">Overdues:</span> Patron has ITEMS OVERDUE <a href="#checkouts">See highlighted items below</a> |
83 |
</li> |
84 |
[% END %] |
85 |
|
86 |
[% IF return_claims.count > ClaimReturnedWarningThreshold %] |
87 |
<li class="return_claims blocker"> |
88 |
<span class="circ-hlt return-claims">Return claims:</span> Patron has [% return_claims.count | html %] RETURN CLAIMS |
89 |
</li> |
90 |
[% END %] |
91 |
|
92 |
[% IF age_limitations %] |
93 |
[% INCLUDE 'category-out-of-age-limit.inc' %] |
94 |
[% END %] |
95 |
|
96 |
[% IF ( charges ) %] |
97 |
[% INCLUDE 'blocked-fines.inc' fines = chargesamount %] |
98 |
[% END %] |
99 |
|
100 |
[% IF ( charges_guarantors_guarantees ) %] |
101 |
<li class="charges_guarantors_guarantees"> |
102 |
<span class="circ-hlt">Charges:</span> Patron's guarantors and their other guarantees collectively owe [% charges_guarantors_guarantees | $Price %]. |
103 |
[% IF noissues %] |
104 |
<span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span> |
105 |
[% END %] |
106 |
</li> |
107 |
[% END %] |
108 |
|
109 |
[% IF ( charges_guarantees ) %] |
110 |
<li class="charges_guarantees"> |
111 |
<span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %]. |
112 |
[% IF noissues %] |
113 |
<span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span> |
114 |
[% END %] |
115 |
</li> |
116 |
[% END %] |
117 |
|
118 |
[% IF ( credits ) %] |
119 |
<li class="credits"> |
120 |
<span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of <span class="credit"><strong>[% creditsamount | $Price %]</strong></span>[% END %] |
121 |
</li> |
122 |
[% END %] |
123 |
|
124 |
</ul> |
125 |
|
126 |
[% END # /F ( has_modifications || warndeparture... %] |
127 |
|
128 |
|
129 |
[% IF WaitingHolds.count %] |
130 |
<div id="holdswaiting" class="circmessage"> |
131 |
[% SET waiting_here = 0 %] |
132 |
[% SET waiting_elsewhere = 0 %] |
133 |
[% FOREACH w IN WaitingHolds %] |
134 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] |
135 |
[% waiting_here = waiting_here + 1 %] |
136 |
[% ELSE %] |
137 |
[% waiting_elsewhere = waiting_elsewhere + 1 %] |
138 |
[% END %] |
139 |
[% END %] |
140 |
|
141 |
[% IF ( waiting_here > 0 ) %] |
142 |
<h4>Holds waiting here ([% waiting_here | html %])</h4> |
143 |
<ul> |
144 |
[% FOREACH w IN WaitingHolds %] |
145 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] |
146 |
<li> |
147 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
148 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
149 |
[% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] |
150 |
[% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %] |
151 |
Hold placed on [% w.reservedate | $KohaDates %]. |
152 |
<br /> |
153 |
<strong class="waitinghere"> |
154 |
[% SET expires_on = w.expirationdate %] |
155 |
Waiting here [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] |
156 |
</strong> |
157 |
</li> |
158 |
[% END %] |
159 |
[% END %] |
160 |
</ul> |
161 |
[% END %] |
162 |
|
163 |
[% IF ( waiting_elsewhere > 0 ) %] |
164 |
<h4>Holds waiting at other libraries ([% waiting_elsewhere | html %])</h4> |
165 |
<ul> |
166 |
[% FOREACH w IN WaitingHolds %] |
167 |
[% IF ( w.branch.branchcode != Branches.GetLoggedInBranchcode() ) %] |
168 |
<li> |
169 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
170 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
171 |
[% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] |
172 |
[% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %] |
173 |
Hold placed on [% w.reservedate | $KohaDates %]. |
174 |
<br /> |
175 |
<strong> |
176 |
[% SET expires_on = w.expirationdate %] |
177 |
Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] |
178 |
</strong> |
179 |
</li> |
180 |
[% END %] |
181 |
[% END %] |
182 |
</ul> |
183 |
[% END %] |
184 |
</div> |
185 |
[% END # /IF WaitingHolds.count %] |
186 |
|
187 |
[% IF ( patron.borrowernotes ) %] |
188 |
<div id="circnotes" class="circmessage"> |
189 |
<h4>Notes</h4> |
190 |
<ul> |
191 |
<li> |
192 |
<span class="circ-hlt"> |
193 |
[% patron.borrowernotes | $raw | html_line_break %] |
194 |
</span> |
195 |
</li> |
196 |
</ul> |
197 |
</div> <!-- /#circnotes --> |
198 |
[% END # /IF patron.borrowernotes %] |
199 |
|
200 |
[% IF ( patron_messages ) %] |
201 |
<div id="messages" class="circmessage"> |
202 |
<h4>Messages</h4> |
203 |
<ul> |
204 |
[% FOREACH patron_message IN patron_messages %] |
205 |
<li> |
206 |
[% IF(patron_message.message_type == "L") %] |
207 |
<span class="circ-hlt"> |
208 |
[% ELSE %] |
209 |
<span> |
210 |
[% END %] |
211 |
[% patron_message.message_date | $KohaDates %] |
212 |
[% Branches.GetName( patron_message.branchcode ) | html %] |
213 |
[% IF patron_message.manager_id %] |
214 |
( <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> ) |
215 |
[% END %] |
216 |
<em>"[% patron_message.message | html %]"</em> |
217 |
</span> |
218 |
[% IF patron_message.branchcode == patron.branchcode OR Koha.Preference('AllowAllMessageDeletion') %] |
219 |
<a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&borrowernumber=[% patron_message.borrowernumber | html %]&from=moremember" onclick='return confirm(_("Are you sure you want to delete this message? This cannot be undone."));'><i class="fa fa-trash"></i> Delete</a> |
220 |
[% END %] |
221 |
</li> |
222 |
[% END %] |
223 |
</ul> |
224 |
<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> |
225 |
</div> <!-- /#messages --> |
226 |
[% END # /IF patron_messages %] |