|
Lines 36-44
Link Here
|
| 36 |
</div> |
36 |
</div> |
| 37 |
|
37 |
|
| 38 |
<div class="main container-fluid"> |
38 |
<div class="main container-fluid"> |
| 39 |
<main> |
39 |
<main> |
| 40 |
<div class="row"> |
40 |
<div class="row"> |
| 41 |
<div class="col-sm-10 col-sm-push-2"> |
41 |
<div class="col-sm-10 col-sm-push-2"> |
| 42 |
|
42 |
|
| 43 |
[% IF patron %] |
43 |
[% IF patron %] |
| 44 |
[% INCLUDE 'members-toolbar.inc' %] |
44 |
[% INCLUDE 'members-toolbar.inc' %] |
|
Lines 80-262
Link Here
|
| 80 |
[% END %] |
80 |
[% END %] |
| 81 |
|
81 |
|
| 82 |
[% IF ( NEEDSCONFIRMATION ) %] |
82 |
[% IF ( NEEDSCONFIRMATION ) %] |
| 83 |
<div id="circ_needsconfirmation" class="dialog alert audio-alert-action"> |
83 |
<div id="circ_needsconfirmation" class="dialog alert audio-alert-action"> |
| 84 |
[% IF CAN_user_circulate_force_checkout %] |
84 |
[% IF CAN_user_circulate_force_checkout %] |
| 85 |
<h3>Please confirm checkout</h3> |
85 |
<h3>Please confirm checkout</h3> |
| 86 |
[% ELSE %] |
86 |
[% ELSE %] |
| 87 |
<h3>Cannot check out</h3> |
87 |
<h3>Cannot check out</h3> |
|
|
88 |
[% END %] |
| 89 |
|
| 90 |
<ul> |
| 91 |
[%IF ( AGE_RESTRICTION ) %] |
| 92 |
<li> |
| 93 |
Age restriction [% AGE_RESTRICTION | html %]. |
| 94 |
[% IF CAN_user_circulate_force_checkout %] |
| 95 |
Check out anyway? |
| 96 |
[% END %] |
| 97 |
</li> |
| 88 |
[% END %] |
98 |
[% END %] |
| 89 |
|
99 |
|
| 90 |
<ul> |
100 |
[% IF ( DEBT ) %] |
| 91 |
[%IF ( AGE_RESTRICTION ) %] |
101 |
<li>The patron has a debt of [% DEBT | $Price %].</li> |
| 92 |
<li> |
102 |
[% END %] |
| 93 |
Age restriction [% AGE_RESTRICTION | html %]. |
|
|
| 94 |
[% IF CAN_user_circulate_force_checkout %] |
| 95 |
Check out anyway? |
| 96 |
[% END %] |
| 97 |
</li> |
| 98 |
[% END %] |
| 99 |
|
103 |
|
| 100 |
[% IF ( DEBT ) %] |
104 |
[% IF ( DEBT_GUARANTEES ) %] |
| 101 |
<li>The patron has a debt of [% DEBT | $Price %].</li> |
105 |
<li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li> |
| 102 |
[% END %] |
106 |
[% END %] |
| 103 |
|
107 |
|
| 104 |
[% IF ( DEBT_GUARANTEES ) %] |
108 |
[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] |
| 105 |
<li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li> |
109 |
<li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li> |
| 106 |
[% END %] |
110 |
[% END %] |
| 107 |
|
111 |
|
| 108 |
[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] |
112 |
[% IF ( RENEW_ISSUE ) %] |
| 109 |
<li>Rental charge for this item: [% RENTALCHARGE | $Price %]</li> |
113 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li> |
| 110 |
[% END %] |
114 |
[% END %] |
| 111 |
|
115 |
|
| 112 |
[% IF ( RENEW_ISSUE ) %] |
116 |
[% IF ( RESERVE_WAITING ) %] |
| 113 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li> |
117 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% reswaitingdate | $KohaDates %]</li> |
| 114 |
[% END %] |
118 |
[% END %] |
| 115 |
|
119 |
|
| 116 |
[% IF ( RESERVE_WAITING ) %] |
120 |
[% IF ( RESERVED ) %] |
| 117 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% reswaitingdate | $KohaDates %]</li> |
121 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% resreservedate | $KohaDates %]</li> |
| 118 |
[% END %] |
122 |
[% END %] |
| 119 |
|
123 |
|
| 120 |
[% IF ( RESERVED ) %] |
124 |
[% IF ( ISSUED_TO_ANOTHER ) %] |
| 121 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber | uri %]">[% resfirstname | html %] [% ressurname | html %]</a> ([% rescardnumber | html %]) at [% Branches.GetName( resbranchcode ) | html %] since [% resreservedate | $KohaDates %]</li> |
125 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issued_borrowernumber | uri %]">[% issued_firstname | html %] [% issued_surname | html %]</a> ([% issued_cardnumber | html %]). |
| 122 |
[% END %] |
126 |
[% IF CAN_user_circulate_force_checkout %] |
|
|
127 |
Check in and check out? |
| 128 |
[% END %] |
| 129 |
</li> |
| 130 |
[% END %] |
| 123 |
|
131 |
|
| 124 |
[% IF ( ISSUED_TO_ANOTHER ) %] |
132 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] |
| 125 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issued_borrowernumber | uri %]">[% issued_firstname | html %] [% issued_surname | html %]</a> ([% issued_cardnumber | html %]). |
133 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 126 |
[% IF CAN_user_circulate_force_checkout %] |
134 |
[% END %] |
| 127 |
Check in and check out? |
|
|
| 128 |
[% END %] |
| 129 |
</li> |
| 130 |
[% END %] |
| 131 |
|
135 |
|
| 132 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] |
136 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] |
| 133 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
137 |
<li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 134 |
[% END %] |
138 |
[% END %] |
| 135 |
|
139 |
|
| 136 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] |
140 |
[% IF ( BORRNOTSAMEBRANCH ) %] |
| 137 |
<li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li> |
141 |
<li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li> |
| 138 |
[% END %] |
142 |
[% END %] |
| 139 |
|
143 |
|
| 140 |
[% IF ( BORRNOTSAMEBRANCH ) %] |
144 |
[% IF ( PATRON_CANT ) %] |
| 141 |
<li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li> |
145 |
<li>This patron can't check out this item per library circulation policy.</li> |
| 142 |
[% END %] |
146 |
[% END %] |
| 143 |
|
147 |
|
| 144 |
[% IF ( PATRON_CANT ) %] |
148 |
[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] |
| 145 |
<li>This patron can't check out this item per library circulation policy.</li> |
149 |
<li>No circulation rule is defined for this patron and itemtype combination.</li> |
| 146 |
[% END %] |
150 |
[% END %] |
| 147 |
|
151 |
|
| 148 |
[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] |
152 |
[% IF ( NOT_FOR_LOAN_FORCING ) %] |
| 149 |
<li>No circulation rule is defined for this patron and itemtype combination.</li> |
153 |
<li> |
|
|
154 |
[% IF ( itemtype_notforloan ) %] |
| 155 |
Item type is normally not for loan. |
| 156 |
[% ELSIF ( item_notforloan ) %] |
| 157 |
[% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] |
| 158 |
Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %]. |
| 150 |
[% END %] |
159 |
[% END %] |
| 151 |
|
160 |
[% IF CAN_user_circulate_force_checkout %] |
| 152 |
[% IF ( NOT_FOR_LOAN_FORCING ) %] |
161 |
Check out anyway? |
| 153 |
<li> |
|
|
| 154 |
[% IF ( itemtype_notforloan ) %] |
| 155 |
Item type is normally not for loan. |
| 156 |
[% ELSIF ( item_notforloan ) %] |
| 157 |
[% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] |
| 158 |
Item is normally not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %]. |
| 159 |
[% END %] |
162 |
[% END %] |
| 160 |
[% IF CAN_user_circulate_force_checkout %] |
163 |
</li> |
| 161 |
Check out anyway? |
164 |
[% END %] |
| 162 |
[% END %] |
|
|
| 163 |
</li> |
| 164 |
[% END %] |
| 165 |
|
165 |
|
| 166 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
166 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
| 167 |
<li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). |
167 |
<li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). |
| 168 |
[% IF CAN_user_circulate_force_checkout %] |
168 |
[% IF CAN_user_circulate_force_checkout %] |
| 169 |
Check out anyway? |
169 |
Check out anyway? |
| 170 |
[% END %] |
170 |
[% END %] |
| 171 |
</li> |
171 |
</li> |
| 172 |
[% END %] |
172 |
[% END %] |
| 173 |
|
173 |
|
| 174 |
[% IF ( ITEM_LOST ) %] |
174 |
[% IF ( ITEM_LOST ) %] |
| 175 |
<li>This item has been lost with a status of "[% ITEM_LOST | html %]". |
175 |
<li>This item has been lost with a status of "[% ITEM_LOST | html %]". |
| 176 |
[% IF CAN_user_circulate_force_checkout %] |
176 |
[% IF CAN_user_circulate_force_checkout %] |
| 177 |
Check out anyway? |
177 |
Check out anyway? |
| 178 |
[% END %] |
178 |
[% END %] |
| 179 |
</li> |
179 |
</li> |
| 180 |
[% END %] |
180 |
[% END %] |
| 181 |
|
181 |
|
| 182 |
[% IF HIGHHOLDS %] |
182 |
[% IF HIGHHOLDS %] |
| 183 |
<li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li> |
183 |
<li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li> |
| 184 |
[% END %] |
184 |
[% END %] |
| 185 |
|
185 |
|
| 186 |
[% IF PREVISSUE %] |
186 |
[% IF PREVISSUE %] |
| 187 |
<li>Patron has previously checked out this title: <b>[% biblio.title | html %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</b>. Check out anyway?</li> |
187 |
<li>Patron has previously checked out this title: <b>[% biblio.title | html %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</b>. Check out anyway?</li> |
| 188 |
[% END %] |
188 |
[% END %] |
| 189 |
|
189 |
|
| 190 |
[% IF BIBLIO_ALREADY_ISSUED %] |
190 |
[% IF BIBLIO_ALREADY_ISSUED %] |
| 191 |
<li> |
191 |
<li> |
| 192 |
Patron has already checked out another item from this record. |
192 |
Patron has already checked out another item from this record. |
| 193 |
[% IF CAN_user_circulate_force_checkout %] |
193 |
[% IF CAN_user_circulate_force_checkout %] |
| 194 |
Check out anyway? |
194 |
Check out anyway? |
| 195 |
[% END %] |
195 |
[% END %] |
| 196 |
</li> |
196 |
</li> |
| 197 |
[% END %] |
197 |
[% END %] |
| 198 |
</ul> |
198 |
</ul> |
| 199 |
|
199 |
|
| 200 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
200 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 201 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
201 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
| 202 |
<input type="hidden" name="restoreduedatespec" /> |
202 |
<input type="hidden" name="restoreduedatespec" /> |
| 203 |
|
203 |
|
| 204 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
204 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 205 |
|
205 |
|
| 206 |
[% IF HIGHHOLDS %] |
206 |
[% IF HIGHHOLDS %] |
| 207 |
<p class="circ-override-high-holds"> |
207 |
<p class="circ-override-high-holds"> |
| 208 |
<input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" /> |
208 |
<input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" /> |
| 209 |
<label for="override_high_holds_tmp">Don't decrease loan length based on holds</label> |
209 |
<label for="override_high_holds_tmp">Don't decrease loan length based on holds</label> |
| 210 |
</p> |
210 |
</p> |
| 211 |
[% END %] |
211 |
[% END %] |
| 212 |
|
212 |
|
| 213 |
[% IF ( RESERVED ) %] |
213 |
[% IF ( RESERVED ) %] |
| 214 |
<p> |
214 |
<p> |
| 215 |
<input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" /> |
215 |
<input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" /> |
| 216 |
<label for="cancelreserve">Cancel hold</label> |
216 |
<label for="cancelreserve">Cancel hold</label> |
| 217 |
</p> |
217 |
</p> |
| 218 |
[% END %] |
218 |
[% END %] |
| 219 |
|
219 |
|
| 220 |
[% IF ( RESERVE_WAITING ) %] |
220 |
[% IF ( RESERVE_WAITING ) %] |
| 221 |
<p> |
221 |
<p> |
| 222 |
<label for="cancelreserve">Cancel hold</label> |
222 |
<label for="cancelreserve">Cancel hold</label> |
| 223 |
<input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br /> |
223 |
<input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br /> |
| 224 |
<label for="revertreserve">Revert waiting status</label> |
224 |
<label for="revertreserve">Revert waiting status</label> |
| 225 |
<input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/> |
225 |
<input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/> |
| 226 |
</p> |
226 |
</p> |
| 227 |
[% END %] |
227 |
[% END %] |
| 228 |
|
228 |
|
| 229 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
229 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 230 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
230 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 231 |
<input type="hidden" name="issueconfirmed" value="1" /> |
231 |
<input type="hidden" name="issueconfirmed" value="1" /> |
| 232 |
<input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/> |
232 |
<input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/> |
| 233 |
|
233 |
|
| 234 |
[% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %] |
234 |
[% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %] |
| 235 |
|
235 |
|
| 236 |
[% IF ( INVALID_DATE ) %] |
236 |
[% IF ( INVALID_DATE ) %] |
| 237 |
<p> |
237 |
<p> |
| 238 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
238 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
| 239 |
<label for="duedatespec">Due date</label> |
239 |
<label for="duedatespec">Due date</label> |
| 240 |
</p> |
240 |
</p> |
| 241 |
[% ELSE %] |
241 |
[% ELSE %] |
| 242 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
242 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 243 |
[% END %] |
243 |
[% END %] |
| 244 |
|
244 |
|
| 245 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
245 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 246 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
246 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 247 |
|
247 |
|
| 248 |
[% IF ( RENEW_ISSUE ) %] |
248 |
[% IF ( RENEW_ISSUE ) %] |
| 249 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button> |
249 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button> |
| 250 |
[% ELSE %] |
250 |
[% ELSE %] |
| 251 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button> |
251 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button> |
| 252 |
[% END %] |
252 |
[% END %] |
| 253 |
|
253 |
|
| 254 |
<input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" /> |
254 |
<input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" /> |
| 255 |
<input type="hidden" name="auto_renew" value="[% auto_renew | html %]" /> |
255 |
<input type="hidden" name="auto_renew" value="[% auto_renew | html %]" /> |
| 256 |
</form> |
256 |
</form> |
| 257 |
[% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
257 |
[% END # /IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 258 |
|
258 |
|
| 259 |
[% IF ( RESERVED ) %] |
259 |
[% IF ( RESERVED ) %] |
| 260 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
260 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 261 |
<input type="hidden" name="restoreduedatespec" /> |
261 |
<input type="hidden" name="restoreduedatespec" /> |
| 262 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
262 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
|
Lines 264-423
Link Here
|
| 264 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
264 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 265 |
<button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button> |
265 |
<button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button> |
| 266 |
</form> |
266 |
</form> |
| 267 |
[% END %] |
267 |
[% END %] |
| 268 |
|
|
|
| 269 |
[% IF ( RESERVE_WAITING ) %] |
| 270 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 271 |
<input type="hidden" name="restoreduedatespec" /> |
| 272 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 273 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 274 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 275 |
<button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button> |
| 276 |
</form> |
| 277 |
[% END %] |
| 278 |
|
268 |
|
|
|
269 |
[% IF ( RESERVE_WAITING ) %] |
| 279 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
270 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 280 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
271 |
<input type="hidden" name="restoreduedatespec" /> |
| 281 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
272 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 282 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
273 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 283 |
<input type="hidden" name="restoreduedatespec" /> |
|
|
| 284 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
274 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 285 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
275 |
<button class="print" type="submit" onclick="Dopop('hold-transfer-slip.pl?borrowernumber=[% reserveborrowernumber | html %]&biblionumber=[% itembiblionumber | html %]&itemnumber=[% item.itemnumber | html %]&op=slip');this.form.submit();"><i class="fa fa-print"></i> Don't check out and print slip (P)</button> |
| 286 |
[% IF ( RENEW_ISSUE ) %] |
|
|
| 287 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button> |
| 288 |
[% ELSE %] |
| 289 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button> |
| 290 |
[% END %] |
| 291 |
[% ELSE %] |
| 292 |
<button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button> |
| 293 |
[% END %] |
| 294 |
</form> |
276 |
</form> |
|
|
277 |
[% END %] |
| 295 |
|
278 |
|
| 296 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
279 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 297 |
[% UNLESS noissues %] |
280 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 298 |
<button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button> |
281 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
|
|
282 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 283 |
<input type="hidden" name="restoreduedatespec" /> |
| 284 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 285 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 286 |
[% IF ( RENEW_ISSUE ) %] |
| 287 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button> |
| 288 |
[% ELSE %] |
| 289 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button> |
| 299 |
[% END %] |
290 |
[% END %] |
|
|
291 |
[% ELSE %] |
| 292 |
<button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button> |
| 300 |
[% END %] |
293 |
[% END %] |
| 301 |
</div> <!-- /#circ_needsconfirmation --> |
294 |
</form> |
|
|
295 |
|
| 296 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
| 297 |
[% UNLESS noissues %] |
| 298 |
<button type="submit" onclick="window.location.href='/cgi-bin/koha/reserve/request.pl?biblionumber=[% itembiblionumber | html %]&borrowernumber=[% patron.borrowernumber | html %]'"><i class="fa fa-sticky-note-o"></i> Cancel checkout and place a hold for [% INCLUDE 'patron-title.inc' %]</button> |
| 299 |
[% END %] |
| 300 |
[% END %] |
| 301 |
</div> <!-- /#circ_needsconfirmation --> |
| 302 |
[% END # /NEEDSCONFIRMATION %] |
302 |
[% END # /NEEDSCONFIRMATION %] |
| 303 |
|
303 |
|
| 304 |
[% IF ( IMPOSSIBLE ) %] |
304 |
[% IF ( IMPOSSIBLE ) %] |
| 305 |
<div id="circ_impossible" class="dialog alert audio-alert-warning"> |
305 |
<div id="circ_impossible" class="dialog alert audio-alert-warning"> |
| 306 |
[% IF ( UNKNOWN_BARCODE ) %] |
306 |
[% IF ( UNKNOWN_BARCODE ) %] |
| 307 |
<h3>Barcode not found</h3> |
307 |
<h3>Barcode not found</h3> |
| 308 |
[% END %] |
308 |
[% END %] |
| 309 |
|
309 |
|
| 310 |
<!-- RESULT OF ISSUING REQUEST --> |
310 |
<!-- RESULT OF ISSUING REQUEST --> |
| 311 |
<ul> |
311 |
<ul> |
| 312 |
[% IF ( STATS ) %] |
312 |
[% IF ( STATS ) %] |
| 313 |
<li>Local use recorded</li> |
313 |
<li>Local use recorded</li> |
| 314 |
[% END %] |
314 |
[% END %] |
| 315 |
|
315 |
|
| 316 |
[% IF ( INVALID_DATE ) %] |
316 |
[% IF ( INVALID_DATE ) %] |
| 317 |
<li>The due date "[% INVALID_DATE | html %]" is invalid</li> |
317 |
<li>The due date "[% INVALID_DATE | html %]" is invalid</li> |
| 318 |
[% END %] |
318 |
[% END %] |
| 319 |
|
319 |
|
| 320 |
[% IF ( UNKNOWN_BARCODE ) %] |
320 |
[% IF ( UNKNOWN_BARCODE ) %] |
| 321 |
<li>The barcode was not found: <span class="ex">[% barcode | html %]</span> |
321 |
<li>The barcode was not found: <span class="ex">[% barcode | html %]</span> |
| 322 |
<div> |
322 |
<div> |
| 323 |
[% IF ( FALLBACK ) %] |
323 |
[% IF ( FALLBACK ) %] |
| 324 |
[% IF options %] |
324 |
[% IF options %] |
| 325 |
<button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button> |
325 |
<button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button> |
| 326 |
[% ELSE %] |
326 |
[% ELSE %] |
| 327 |
<div>No items were found by searching.</div> |
327 |
<div>No items were found by searching.</div> |
| 328 |
[% END %] |
|
|
| 329 |
[% END %] |
328 |
[% END %] |
|
|
329 |
[% END %] |
| 330 |
|
330 |
|
| 331 |
[% IF ( fast_cataloging ) %] |
331 |
[% IF ( fast_cataloging ) %] |
| 332 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
332 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
| 333 |
<a class="approve" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% patron.borrowernumber | html %]&branch=[% branch | html %]&duedatespec=[% duedatespec | html %]&stickyduedate=[% stickyduedate | html %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a> |
333 |
<a class="approve" href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&barcode=[% barcode |uri %]&circborrowernumber=[% patron.borrowernumber | html %]&branch=[% branch | html %]&duedatespec=[% duedatespec | html %]&stickyduedate=[% stickyduedate | html %]"><i class="fa fa-plus"></i> Add record using fast cataloging</a> |
| 334 |
[% END %] |
|
|
| 335 |
[% END %] |
334 |
[% END %] |
| 336 |
</div> |
335 |
[% END %] |
| 337 |
</li> |
336 |
</div> |
| 338 |
[% END %] |
337 |
</li> |
| 339 |
|
338 |
[% END %] |
| 340 |
[% IF ( NOT_FOR_LOAN ) %] |
|
|
| 341 |
<li> |
| 342 |
[% IF ( itemtype_notforloan ) %] |
| 343 |
Item type not for loan. |
| 344 |
[% ELSIF ( item_notforloan ) %] |
| 345 |
[% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] |
| 346 |
Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %]. |
| 347 |
[% END %] |
| 348 |
</li> |
| 349 |
[% END %] |
| 350 |
|
339 |
|
| 351 |
[% IF ( WTHDRAWN ) %] |
340 |
[% IF ( NOT_FOR_LOAN ) %] |
| 352 |
<li> |
341 |
<li> |
| 353 |
<span>Item has been withdrawn</span> |
342 |
[% IF ( itemtype_notforloan ) %] |
| 354 |
[% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %] |
343 |
Item type not for loan. |
| 355 |
[% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %] |
344 |
[% ELSIF ( item_notforloan ) %] |
| 356 |
</li> |
345 |
[% item_notforloan_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] |
|
|
346 |
Item not for loan[% IF (item_notforloan_lib) %] ([% item_notforloan_lib | html %])[% END %]. |
| 357 |
[% END %] |
347 |
[% END %] |
|
|
348 |
</li> |
| 349 |
[% END %] |
| 358 |
|
350 |
|
| 359 |
[% IF ( RESTRICTED ) %] |
351 |
[% IF ( WTHDRAWN ) %] |
| 360 |
<li>Item is restricted</li> |
352 |
<li> |
| 361 |
[% END %] |
353 |
<span>Item has been withdrawn</span> |
|
|
354 |
[% item_withdrawn_lib = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => item.withdrawn ) %] |
| 355 |
[% IF (item_withdrawn_lib) %]<span class="co-withdrawn">([% item_withdrawn_lib | html %])</span>[% END %] |
| 356 |
</li> |
| 357 |
[% END %] |
| 362 |
|
358 |
|
| 363 |
[% IF ( GNA ) %] |
359 |
[% IF ( RESTRICTED ) %] |
| 364 |
<li>Patron's address is in doubt</li> |
360 |
<li>Item is restricted</li> |
| 365 |
[% END %] |
361 |
[% END %] |
| 366 |
|
362 |
|
| 367 |
[% IF ( CARD_LOST ) %] |
363 |
[% IF ( GNA ) %] |
| 368 |
<li>Patron's card is lost</li> |
364 |
<li>Patron's address is in doubt</li> |
| 369 |
[% END %] |
365 |
[% END %] |
| 370 |
|
366 |
|
| 371 |
[% IF ( DEBARRED ) %] |
367 |
[% IF ( CARD_LOST ) %] |
| 372 |
<li>Patron is restricted</li> |
368 |
<li>Patron's card is lost</li> |
| 373 |
[% END %] |
369 |
[% END %] |
| 374 |
|
370 |
|
| 375 |
[% IF ( NO_MORE_RENEWALS ) %] |
371 |
[% IF ( DEBARRED ) %] |
| 376 |
<li>No more renewals possible</li> |
372 |
<li>Patron is restricted</li> |
| 377 |
[% END %] |
373 |
[% END %] |
| 378 |
|
374 |
|
| 379 |
[% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] |
375 |
[% IF ( NO_MORE_RENEWALS ) %] |
| 380 |
<li>This item can not be renewed, it's an on-site checkout</li> |
376 |
<li>No more renewals possible</li> |
| 381 |
[% END %] |
377 |
[% END %] |
| 382 |
|
378 |
|
| 383 |
[%IF ( AGE_RESTRICTION ) %] |
379 |
[% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] |
| 384 |
<li>Age restriction [% AGE_RESTRICTION | html %].</li> |
380 |
<li>This item can not be renewed, it's an on-site checkout</li> |
| 385 |
[% END %] |
381 |
[% END %] |
| 386 |
|
382 |
|
| 387 |
[% IF ( EXPIRED ) %] |
383 |
[%IF ( AGE_RESTRICTION ) %] |
| 388 |
<li>Patron's card is expired</li> |
384 |
<li>Age restriction [% AGE_RESTRICTION | html %].</li> |
| 389 |
[% END %] |
385 |
[% END %] |
| 390 |
|
386 |
|
| 391 |
[% IF ( TOO_MANY ) %] |
387 |
[% IF ( EXPIRED ) %] |
| 392 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
388 |
<li>Patron's card is expired</li> |
| 393 |
[% END %] |
389 |
[% END %] |
| 394 |
|
390 |
|
| 395 |
[% IF ( ITEMNOTSAMEBRANCH ) %] |
391 |
[% IF ( TOO_MANY ) %] |
| 396 |
<li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li> |
392 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 397 |
[% END %] |
393 |
[% END %] |
| 398 |
|
394 |
|
| 399 |
[% IF RETURN_IMPOSSIBLE %] |
395 |
[% IF ( ITEMNOTSAMEBRANCH ) %] |
| 400 |
<li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li> |
396 |
<li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li> |
| 401 |
[% END %] |
397 |
[% END %] |
| 402 |
|
398 |
|
| 403 |
[% IF ( USERBLOCKEDWITHENDDATE ) %] |
399 |
[% IF RETURN_IMPOSSIBLE %] |
| 404 |
<li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li> |
400 |
<li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li> |
| 405 |
[% END %] |
401 |
[% END %] |
| 406 |
|
402 |
|
| 407 |
[% IF ( USERBLOCKEDNOENDDATE ) %] |
403 |
[% IF ( USERBLOCKEDWITHENDDATE ) %] |
| 408 |
<li>Patron has an indefinite restriction.</li> |
404 |
<li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li> |
| 409 |
[% END %] |
405 |
[% END %] |
| 410 |
|
406 |
|
| 411 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
407 |
[% IF ( USERBLOCKEDNOENDDATE ) %] |
| 412 |
<li>Checkouts are BLOCKED because patron has overdue items.</li> |
408 |
<li>Patron has an indefinite restriction.</li> |
| 413 |
[% END %] |
409 |
[% END %] |
| 414 |
</ul> |
|
|
| 415 |
|
410 |
|
| 416 |
[% IF (forceallow) %] |
411 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
| 417 |
<li>Restriction overridden temporarily.</li> |
412 |
<li>Checkouts are BLOCKED because patron has overdue items.</li> |
| 418 |
[% END %] |
413 |
[% END %] |
| 419 |
</ul> |
414 |
</ul> |
| 420 |
</div> <!-- /#circ_impossible --> |
415 |
|
|
|
416 |
[% IF (forceallow) %] |
| 417 |
<li>Restriction overridden temporarily.</li> |
| 418 |
[% END %] |
| 419 |
</ul> |
| 420 |
</div> <!-- /#circ_impossible --> |
| 421 |
|
421 |
|
| 422 |
[% IF ( FALLBACK ) %] |
422 |
[% IF ( FALLBACK ) %] |
| 423 |
[% IF options %] |
423 |
[% IF options %] |
|
Lines 495-509
Link Here
|
| 495 |
|
495 |
|
| 496 |
[% IF patron %] |
496 |
[% IF patron %] |
| 497 |
|
497 |
|
| 498 |
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] |
498 |
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] |
| 499 |
<div class="dialog alert"> |
499 |
<div class="dialog alert"> |
| 500 |
<strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect. |
500 |
<strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect. |
| 501 |
</div> |
501 |
</div> |
| 502 |
[% END %] |
502 |
[% END %] |
| 503 |
|
503 |
|
| 504 |
<div class="row"> |
504 |
<div class="row"> |
| 505 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
505 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
| 506 |
<div class="col-sm-6"> |
506 |
<div class="col-sm-6"> |
| 507 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
507 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
| 508 |
<input type="hidden" name="restoreduedatespec" /> |
508 |
<input type="hidden" name="restoreduedatespec" /> |
| 509 |
[% IF ( issue ) %] |
509 |
[% IF ( issue ) %] |
|
Lines 512-545
Link Here
|
| 512 |
<fieldset id="circ_circulation_issue"> |
512 |
<fieldset id="circ_circulation_issue"> |
| 513 |
[% END %] |
513 |
[% END %] |
| 514 |
|
514 |
|
| 515 |
[% IF ( DisplayClearScreenButton ) %] |
515 |
[% IF ( DisplayClearScreenButton ) %] |
| 516 |
<span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span> |
516 |
<span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span> |
| 517 |
<span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span> |
517 |
<span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span> |
| 518 |
[% END %] |
518 |
[% END %] |
| 519 |
|
519 |
|
| 520 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
520 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 521 |
|
521 |
|
| 522 |
<label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label> |
522 |
<label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label> |
| 523 |
|
523 |
|
| 524 |
[% IF Koha.Preference('itemBarcodeFallbackSearch') %] |
524 |
[% IF Koha.Preference('itemBarcodeFallbackSearch') %] |
| 525 |
<div class="hint">Enter item barcode or keyword:</div> |
525 |
<div class="hint">Enter item barcode or keyword:</div> |
| 526 |
[% ELSE %] |
526 |
[% ELSE %] |
| 527 |
<div class="hint">Enter item barcode:</div> |
527 |
<div class="hint">Enter item barcode:</div> |
| 528 |
[% END %] |
528 |
[% END %] |
| 529 |
|
529 |
|
| 530 |
[% IF NEEDSCONFIRMATION %] |
530 |
[% IF NEEDSCONFIRMATION %] |
| 531 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" /> |
531 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" /> |
| 532 |
[% ELSE %] |
532 |
[% ELSE %] |
| 533 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
533 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
| 534 |
[% END %] |
534 |
[% END %] |
| 535 |
|
535 |
|
| 536 |
<button type="submit" class="btn btn-default">Check out</button> |
536 |
<button type="submit" class="btn btn-default">Check out</button> |
| 537 |
|
537 |
|
| 538 |
<div id="show-circ-settings"> |
538 |
<div id="show-circ-settings"> |
| 539 |
<a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a> |
539 |
<a href="#"><i class="fa fa-caret-right circ-settings-icon"></i> Checkout settings</a> |
| 540 |
</div> |
540 |
</div> |
| 541 |
|
541 |
|
| 542 |
<div class="circ-settings"> |
542 |
<div class="circ-settings"> |
| 543 |
|
543 |
|
| 544 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
544 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 545 |
[% IF ( SpecifyDueDate ) %] |
545 |
[% IF ( SpecifyDueDate ) %] |
|
Lines 622-628
Link Here
|
| 622 |
</div> |
622 |
</div> |
| 623 |
[% END %] |
623 |
[% END %] |
| 624 |
</form> <!-- /#mainform --> |
624 |
</form> <!-- /#mainform --> |
| 625 |
</div> <!-- /.col-sm-6 --> |
625 |
</div> <!-- /.col-sm-6 --> |
| 626 |
|
626 |
|
| 627 |
[% END #/IF !noissues %] |
627 |
[% END #/IF !noissues %] |
| 628 |
|
628 |
|
|
Lines 754-988
Link Here
|
| 754 |
|
754 |
|
| 755 |
</ul> |
755 |
</ul> |
| 756 |
|
756 |
|
| 757 |
[% IF WaitingHolds.count %] |
757 |
[% IF WaitingHolds.count %] |
| 758 |
<div id="holdswaiting" class="circmessage"> |
758 |
<div id="holdswaiting" class="circmessage"> |
| 759 |
<h4>Holds waiting:</h4> |
759 |
<h4>Holds waiting:</h4> |
| 760 |
[% FOREACH w IN WaitingHolds %] |
760 |
[% FOREACH w IN WaitingHolds %] |
| 761 |
<ul> |
761 |
<ul> |
| 762 |
<li> |
762 |
<li> |
| 763 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
763 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
| 764 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
764 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
| 765 |
[% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] |
765 |
[% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] |
| 766 |
[% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %] |
766 |
[% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %] |
| 767 |
Hold placed on [% w.reservedate | $KohaDates %]. |
767 |
Hold placed on [% w.reservedate | $KohaDates %]. |
| 768 |
|
768 |
|
| 769 |
<br/> |
769 |
<br/> |
| 770 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %] |
770 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %] |
| 771 |
[% SET expires_on = w.expirationdate %] |
771 |
[% SET expires_on = w.expirationdate %] |
| 772 |
Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] |
772 |
Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] |
| 773 |
</strong> |
773 |
</strong> |
| 774 |
</li> |
774 |
</li> |
| 775 |
</ul> |
775 |
</ul> |
| 776 |
[% END %] |
776 |
[% END %] |
| 777 |
</div> |
777 |
</div> |
| 778 |
[% END # /IF WaitingHolds.count %] |
778 |
[% END # /IF WaitingHolds.count %] |
| 779 |
|
779 |
|
| 780 |
[% IF ( notes ) %] |
780 |
[% IF ( notes ) %] |
| 781 |
<div id="circnotes" class="circmessage"> |
781 |
<div id="circnotes" class="circmessage"> |
| 782 |
<h4>Notes:</h4> |
782 |
<h4>Notes:</h4> |
| 783 |
<p><span class="circ-hlt">[% notesmsg | $raw %]</span></p> |
783 |
<p><span class="circ-hlt">[% notesmsg | $raw %]</span></p> |
| 784 |
</div> |
784 |
</div> |
| 785 |
[% END %] |
785 |
[% END %] |
| 786 |
|
786 |
|
| 787 |
<div id="messages" class="circmessage"> |
787 |
<div id="messages" class="circmessage"> |
| 788 |
<h4>Messages:</h4> |
788 |
<h4>Messages:</h4> |
| 789 |
<ul> |
789 |
<ul> |
| 790 |
[% FOREACH message IN messages %] |
790 |
[% FOREACH message IN messages %] |
| 791 |
<li> |
791 |
<li> |
| 792 |
[% IF(message.message_type == "L") %] |
792 |
[% IF(message.message_type == "L") %] |
| 793 |
<span class="circ-hlt"> |
793 |
<span class="circ-hlt"> |
| 794 |
[% ELSE %] |
794 |
[% ELSE %] |
| 795 |
<span> |
795 |
<span> |
| 796 |
[% END %] |
|
|
| 797 |
[% message.message_date | $KohaDates %] |
| 798 |
[% Branches.GetName( message.branchcode ) | html %] |
| 799 |
[% IF message.manager_id %] |
| 800 |
( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.manager_id | uri %]">[% message.get_column('manager_firstname') | html %] [% message.get_column('manager_surname') | html %]</a> ) |
| 801 |
[% END %] |
796 |
[% END %] |
| 802 |
<i>"[% message.message | html %]"</i> |
797 |
[% message.message_date | $KohaDates %] |
| 803 |
</span> |
798 |
[% Branches.GetName( message.branchcode ) | html %] |
| 804 |
[% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %] |
799 |
[% IF message.manager_id %] |
| 805 |
<a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id | html %]&borrowernumber=[% message.borrowernumber | html %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a> |
800 |
( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.manager_id | uri %]">[% message.get_column('manager_firstname') | html %] [% message.get_column('manager_surname') | html %]</a> ) |
| 806 |
[% END %] |
801 |
[% END %] |
| 807 |
</li> |
802 |
<i>"[% message.message | html %]"</i> |
| 808 |
[% END %] |
803 |
</span> |
| 809 |
</ul> |
804 |
[% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %] |
| 810 |
<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> |
805 |
<a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% message.message_id | html %]&borrowernumber=[% message.borrowernumber | html %]" onclick="return confirm(MSG_CONFIRM_DELETE_MESSAGE);"><i class="fa fa-trash"></i> Delete</a> |
| 811 |
</div> <!-- /.messages --> |
806 |
[% END %] |
|
|
807 |
</li> |
| 808 |
[% END %] |
| 809 |
</ul> |
| 810 |
<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> |
| 811 |
</div> <!-- /.messages --> |
| 812 |
</div> <!-- /#circmessages --> |
812 |
</div> <!-- /#circmessages --> |
| 813 |
</div> <!-- /div or div.col-sm-6 --> |
813 |
</div> <!-- /div or div.col-sm-6 --> |
| 814 |
</div> <!-- /.row --> |
814 |
</div> <!-- /.row --> |
| 815 |
|
815 |
|
| 816 |
<div id="patronlists" class="toptabs"> |
816 |
<div id="patronlists" class="toptabs"> |
| 817 |
<ul> |
817 |
<ul> |
| 818 |
<li> |
818 |
<li> |
| 819 |
[% IF ( issuecount ) %] |
819 |
[% IF ( issuecount ) %] |
| 820 |
<a href="#checkouts">[% issuecount | html %] Checkout(s)</a> |
820 |
<a href="#checkouts">[% issuecount | html %] Checkout(s)</a> |
| 821 |
[% ELSE %] |
821 |
[% ELSE %] |
| 822 |
<a href="#checkouts">0 Checkouts</a> |
822 |
<a href="#checkouts">0 Checkouts</a> |
| 823 |
[% END %] |
823 |
[% END %] |
| 824 |
</li> |
824 |
</li> |
|
|
825 |
|
| 826 |
[% IF relatives_issues_count %] |
| 827 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
| 828 |
[% END %] |
| 825 |
|
829 |
|
| 826 |
[% IF relatives_issues_count %] |
830 |
<li> |
| 827 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
831 |
[% IF ( holds_count ) %] |
|
|
832 |
<a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a> |
| 833 |
[% ELSE %] |
| 834 |
<a href="#reserves" id="holds-tab">0 Holds</a> |
| 828 |
[% END %] |
835 |
[% END %] |
|
|
836 |
</li> |
| 829 |
|
837 |
|
|
|
838 |
[% IF Koha.Preference('ArticleRequests') %] |
| 830 |
<li> |
839 |
<li> |
| 831 |
[% IF ( holds_count ) %] |
840 |
<a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a> |
| 832 |
<a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a> |
|
|
| 833 |
[% ELSE %] |
| 834 |
<a href="#reserves" id="holds-tab">0 Holds</a> |
| 835 |
[% END %] |
| 836 |
</li> |
841 |
</li> |
|
|
842 |
[% END %] |
| 837 |
|
843 |
|
| 838 |
[% IF Koha.Preference('ArticleRequests') %] |
844 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li> |
| 839 |
<li> |
|
|
| 840 |
<a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a> |
| 841 |
</li> |
| 842 |
[% END %] |
| 843 |
|
| 844 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li> |
| 845 |
|
845 |
|
| 846 |
[% SET enrollments = patron.get_club_enrollments(1) %] |
846 |
[% SET enrollments = patron.get_club_enrollments(1) %] |
| 847 |
[% SET enrollable = patron.get_enrollable_clubs(0,1) %] |
847 |
[% SET enrollable = patron.get_enrollable_clubs(0,1) %] |
| 848 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
848 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
| 849 |
<li> |
849 |
<li> |
| 850 |
<a id="clubs-tab-link" href="#clubs-tab"> |
850 |
<a id="clubs-tab-link" href="#clubs-tab"> |
| 851 |
Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) |
851 |
Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) |
| 852 |
</a> |
852 |
</a> |
| 853 |
</li> |
853 |
</li> |
| 854 |
[% END %] |
854 |
[% END %] |
| 855 |
</ul> |
855 |
</ul> |
|
|
856 |
|
| 857 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
| 858 |
|
| 859 |
[% INCLUDE "checkouts-table.inc" %] |
| 860 |
|
| 861 |
[% IF ( relatives_issues_count ) %] |
| 862 |
<div id="relatives-issues"> |
| 863 |
<table id="relatives-issues-table"> |
| 864 |
<thead> |
| 865 |
<tr> |
| 866 |
<th scope="col">Due date (unformatted, hidden)</th> |
| 867 |
<th scope="col">Due date</th> |
| 868 |
<th scope="col">Title</th> |
| 869 |
<th scope="col">Item type</th> |
| 870 |
<th scope="col">Collection code</th> |
| 871 |
<th scope="col">Location</th> |
| 872 |
<th scope="col">Checked out on</th> |
| 873 |
<th scope="col">Checked out from</th> |
| 874 |
<th scope="col">Call no</th> |
| 875 |
<th scope="col">Charge</th> |
| 876 |
<th scope="col">Fine</th> |
| 877 |
<th scope="col">Price</th> |
| 878 |
<th scope="col">Patron</th> |
| 879 |
</tr> |
| 880 |
</thead> |
| 881 |
</table> |
| 882 |
</div> <!-- /#relatives-issues --> |
| 883 |
[% END %] |
| 856 |
|
884 |
|
| 857 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
885 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
|
|
886 |
<div id="clubs-tab"> |
| 887 |
Loading... |
| 888 |
</div> <!-- /#clubs-tab --> |
| 889 |
[% END %] |
| 858 |
|
890 |
|
| 859 |
[% INCLUDE "checkouts-table.inc" %] |
891 |
[% INCLUDE borrower_debarments.inc %] |
| 860 |
|
892 |
|
| 861 |
[% IF ( relatives_issues_count ) %] |
893 |
<div id="reserves"> |
| 862 |
<div id="relatives-issues"> |
894 |
[% IF ( holds_count ) %] |
| 863 |
<table id="relatives-issues-table"> |
895 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
|
|
896 |
<input type="hidden" name="from" value="circ" /> |
| 897 |
<table id="holds-table" style="width: 100% !Important;"> |
| 864 |
<thead> |
898 |
<thead> |
| 865 |
<tr> |
899 |
<tr> |
| 866 |
<th scope="col">Due date (unformatted, hidden)</th> |
900 |
<th>Hold date</th> |
| 867 |
<th scope="col">Due date</th> |
901 |
<th>Title</th> |
| 868 |
<th scope="col">Title</th> |
902 |
<th>Call number</th> |
| 869 |
<th scope="col">Item type</th> |
903 |
<th>Barcode</th> |
| 870 |
<th scope="col">Collection code</th> |
904 |
<th>Pickup at</th> |
| 871 |
<th scope="col">Location</th> |
905 |
<th>Expiration</th> |
| 872 |
<th scope="col">Checked out on</th> |
906 |
<th>Priority</th> |
| 873 |
<th scope="col">Checked out from</th> |
907 |
<th>Cancel?</th> |
| 874 |
<th scope="col">Call no</th> |
908 |
<th>Suspend?</th> |
| 875 |
<th scope="col">Charge</th> |
909 |
<th>Status</th> |
| 876 |
<th scope="col">Fine</th> |
|
|
| 877 |
<th scope="col">Price</th> |
| 878 |
<th scope="col">Patron</th> |
| 879 |
</tr> |
910 |
</tr> |
| 880 |
</thead> |
911 |
</thead> |
| 881 |
</table> |
912 |
</table> |
| 882 |
</div> <!-- /#relatives-issues --> |
|
|
| 883 |
[% END %] |
| 884 |
|
| 885 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
| 886 |
<div id="clubs-tab"> |
| 887 |
Loading... |
| 888 |
</div> <!-- /#clubs-tab --> |
| 889 |
[% END %] |
| 890 |
|
913 |
|
| 891 |
[% INCLUDE borrower_debarments.inc %] |
914 |
<fieldset class="action"> |
| 892 |
|
915 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
| 893 |
<div id="reserves"> |
916 |
</fieldset> |
| 894 |
[% IF ( holds_count ) %] |
917 |
</form> |
| 895 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
|
|
| 896 |
<input type="hidden" name="from" value="circ" /> |
| 897 |
<table id="holds-table" style="width: 100% !Important;"> |
| 898 |
<thead> |
| 899 |
<tr> |
| 900 |
<th>Hold date</th> |
| 901 |
<th>Title</th> |
| 902 |
<th>Call number</th> |
| 903 |
<th>Barcode</th> |
| 904 |
<th>Pickup at</th> |
| 905 |
<th>Expiration</th> |
| 906 |
<th>Priority</th> |
| 907 |
<th>Cancel?</th> |
| 908 |
<th>Suspend?</th> |
| 909 |
<th>Status</th> |
| 910 |
</tr> |
| 911 |
</thead> |
| 912 |
</table> |
| 913 |
|
| 914 |
<fieldset class="action"> |
| 915 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
| 916 |
</fieldset> |
| 917 |
</form> |
| 918 |
|
| 919 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
| 920 |
<fieldset class="action"> |
| 921 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 922 |
<input type="hidden" name="from" value="circ" /> |
| 923 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 924 |
<input type="submit" value="Suspend all holds" /> |
| 925 |
|
| 926 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
| 927 |
<label for="suspend_until">until</label> |
| 928 |
<input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/> |
| 929 |
<span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> |
| 930 |
[% END %] |
| 931 |
</form> |
| 932 |
</fieldset> |
| 933 |
|
| 934 |
<fieldset class="action"> |
| 935 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 936 |
<input type="hidden" name="from" value="circ" /> |
| 937 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 938 |
<input type="hidden" name="suspend" value="0" /> |
| 939 |
<input type="submit" value="Resume all suspended holds" /> |
| 940 |
</form> |
| 941 |
</fieldset> |
| 942 |
[% END # /IF SuspendHoldsIntranet %] |
| 943 |
|
| 944 |
[% ELSE # IF holds_count %] |
| 945 |
<p>Patron has nothing on hold.</p> |
| 946 |
[% END # /IF holds_count %] |
| 947 |
</div> <!-- /#reserves --> |
| 948 |
|
918 |
|
| 949 |
[% IF Koha.Preference('ArticleRequests') %] |
919 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
| 950 |
[% INCLUDE 'patron-article-requests.inc' %] |
920 |
<fieldset class="action"> |
| 951 |
[% END %] |
921 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
|
|
922 |
<input type="hidden" name="from" value="circ" /> |
| 923 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 924 |
<input type="submit" value="Suspend all holds" /> |
| 925 |
|
| 926 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
| 927 |
<label for="suspend_until">until</label> |
| 928 |
<input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/> |
| 929 |
<span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> |
| 930 |
[% END %] |
| 931 |
</form> |
| 932 |
</fieldset> |
| 933 |
|
| 934 |
<fieldset class="action"> |
| 935 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 936 |
<input type="hidden" name="from" value="circ" /> |
| 937 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 938 |
<input type="hidden" name="suspend" value="0" /> |
| 939 |
<input type="submit" value="Resume all suspended holds" /> |
| 940 |
</form> |
| 941 |
</fieldset> |
| 942 |
[% END # /IF SuspendHoldsIntranet %] |
| 943 |
|
| 944 |
[% ELSE # IF holds_count %] |
| 945 |
<p>Patron has nothing on hold.</p> |
| 946 |
[% END # /IF holds_count %] |
| 947 |
</div> <!-- /#reserves --> |
| 948 |
|
| 949 |
[% IF Koha.Preference('ArticleRequests') %] |
| 950 |
[% INCLUDE 'patron-article-requests.inc' %] |
| 951 |
[% END %] |
| 952 |
|
952 |
|
| 953 |
</div> <!-- /#patronlists --> |
953 |
</div> <!-- /#patronlists --> |
| 954 |
[% ELSIF borrowernumber # IF patron %] |
954 |
[% ELSIF borrowernumber # IF patron %] |
| 955 |
<div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div> |
955 |
<div class="dialog message">Patron not found. <a href="/cgi-bin/koha/members/members-home.pl">Return to search</a></div> |
| 956 |
[% END # /IF patron %] |
956 |
[% END # /IF patron %] |
| 957 |
|
957 |
|
| 958 |
[% END #/IF borrowers %] |
958 |
[% END #/IF borrowers %] |
| 959 |
|
959 |
|
| 960 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
960 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 961 |
|
961 |
|
| 962 |
[% IF Koha.Preference('CircSidebar') %] |
962 |
[% IF Koha.Preference('CircSidebar') %] |
| 963 |
[% UNLESS ( borrowers ) %] |
963 |
[% UNLESS ( borrowers ) %] |
| 964 |
[% IF not( borrowernumber and patron ) %] |
964 |
[% IF not( borrowernumber and patron ) %] |
| 965 |
<div class="col-sm-2 col-sm-pull-10"> |
965 |
<div class="col-sm-2 col-sm-pull-10"> |
| 966 |
<aside> |
966 |
<aside> |
| 967 |
[% INCLUDE 'circ-nav.inc' %] |
967 |
[% INCLUDE 'circ-nav.inc' %] |
| 968 |
</aside> |
968 |
</aside> |
| 969 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
969 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
|
|
970 |
[% END %] |
| 971 |
[% END %] |
| 970 |
[% END %] |
972 |
[% END %] |
| 971 |
[% END %] |
|
|
| 972 |
[% END %] |
| 973 |
|
973 |
|
| 974 |
[% UNLESS ( borrowers ) %] |
974 |
[% UNLESS ( borrowers ) %] |
| 975 |
[% IF borrowernumber and patron %] |
975 |
[% IF borrowernumber and patron %] |
| 976 |
<div class="col-sm-2 col-sm-pull-10"> |
976 |
<div class="col-sm-2 col-sm-pull-10"> |
| 977 |
<aside> |
977 |
<aside> |
| 978 |
[% INCLUDE 'circ-menu.inc' %] |
978 |
[% INCLUDE 'circ-menu.inc' %] |
| 979 |
</aside> |
979 |
</aside> |
| 980 |
</div> <!-- /.col-sm-2 col-sm-pull-10 --> |
980 |
</div> <!-- /.col-sm-2 col-sm-pull-10 --> |
| 981 |
[% END %] |
981 |
[% END %] |
| 982 |
[% END %] |
982 |
[% END %] |
| 983 |
|
983 |
|
| 984 |
</div> <!-- /.row --> |
984 |
</div> <!-- /.row --> |
| 985 |
</main> |
985 |
</main> |
| 986 |
|
986 |
|
| 987 |
<!-- Modal --> |
987 |
<!-- Modal --> |
| 988 |
<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true"> |
988 |
<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true"> |
| 989 |
- |
|
|