|
Lines 12-422
Link Here
|
| 12 |
[% INCLUDE 'doc-head-open.inc' %] |
12 |
[% INCLUDE 'doc-head-open.inc' %] |
| 13 |
[% SET destination = "circ" %] |
13 |
[% SET destination = "circ" %] |
| 14 |
<title>Koha › Circulation |
14 |
<title>Koha › Circulation |
| 15 |
[% IF patron %] |
15 |
[% IF patron %] |
| 16 |
› Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %] |
16 |
› Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %] |
| 17 |
[% END %] |
17 |
[% END %] |
| 18 |
</title> |
18 |
</title> |
| 19 |
[% INCLUDE 'doc-head-close.inc' %] |
19 |
[% INCLUDE 'doc-head-close.inc' %] |
| 20 |
[% Asset.css("css/datatables.css") | $raw %] |
20 |
[% Asset.css("css/datatables.css") | $raw %] |
| 21 |
</head> |
21 |
</head> |
| 22 |
|
22 |
|
| 23 |
<body id="circ_circulation" class="circ"> |
23 |
<body id="circ_circulation" class="circ"> |
| 24 |
|
24 |
[% INCLUDE 'header.inc' %] |
| 25 |
[% INCLUDE 'header.inc' %] |
25 |
[% INCLUDE 'circ-search.inc' %] |
| 26 |
[% INCLUDE 'circ-search.inc' %] |
26 |
<div id="breadcrumbs"> |
| 27 |
|
27 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
| 28 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › |
28 |
<a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › |
| 29 |
[% IF patron %] |
29 |
[% IF patron %] |
| 30 |
<a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %] |
30 |
<a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %] |
| 31 |
[% ELSE %] |
31 |
[% ELSE %] |
| 32 |
<strong>Checkouts</strong> |
32 |
<strong>Checkouts</strong> |
| 33 |
[% END %] |
33 |
[% END %] |
| 34 |
</div> |
|
|
| 35 |
[% IF ( $borrowers ) %] |
| 36 |
<div id="doc" class="yui-t7"> |
| 37 |
|
| 38 |
<div id="bd"> |
| 39 |
<div id="yui-main"> |
| 40 |
<div class="yui-g"> |
| 41 |
[% ELSE %] |
| 42 |
<div id="doc3" class="yui-t2"> |
| 43 |
|
| 44 |
<div id="bd"> |
| 45 |
<div id="yui-main"> |
| 46 |
<div class="yui-b"> |
| 47 |
[% END %] |
| 48 |
|
| 49 |
[% IF patron %] |
| 50 |
[% INCLUDE 'members-toolbar.inc' %] |
| 51 |
[% END %] |
| 52 |
|
| 53 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
| 54 |
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %] |
| 55 |
|
| 56 |
[% IF autoswitched %] |
| 57 |
<div id="autoswitched" class="dialog message">Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.</div> |
| 58 |
[% END %] |
| 59 |
|
| 60 |
[% IF additional_materials %] |
| 61 |
<div id="materials" class="dialog message">Note about the accompanying materials: <br /> |
| 62 |
[% additional_materials | html %] |
| 63 |
</div> |
34 |
</div> |
| 64 |
[% END %] |
35 |
[% IF ( $borrowers ) %] |
| 65 |
|
36 |
<div id="doc" class="yui-t7"> |
| 66 |
[% IF ( alert.ITEM_LOST ) %] |
37 |
<div id="bd"> |
| 67 |
<div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div> |
38 |
<div id="yui-main"> |
| 68 |
[% END %] |
39 |
<div class="yui-g"> |
| 69 |
|
40 |
[% ELSE %] |
| 70 |
[% IF ( alert.OTHER_CHARGES ) %] |
41 |
<div id="doc3" class="yui-t2"> |
| 71 |
<div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | html %]</div> |
42 |
<div id="bd"> |
| 72 |
[% END %] |
43 |
<div id="yui-main"> |
| 73 |
|
44 |
<div class="yui-b"> |
| 74 |
[% IF alert.HIGHHOLDS %] |
|
|
| 75 |
<div class="dialog message">High demand item. <b>Loan period was not shortened due to override.</b> Shortened due date would have been [% alert.HIGHHOLDS.returndate | $KohaDates %] ([% alert.HIGHHOLDS.duration | html %] days).</div> |
| 76 |
[% END %] |
| 77 |
|
| 78 |
[% IF ( nopermission ) %] |
| 79 |
<div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div> |
| 80 |
[% END %] |
| 81 |
|
| 82 |
[% IF ( NEEDSCONFIRMATION ) %] |
| 83 |
<div class="yui-g"> |
| 84 |
|
| 85 |
<div id="circ_needsconfirmation" class="dialog alert audio-alert-action"> |
| 86 |
[% IF CAN_user_circulate_force_checkout %] |
| 87 |
<h3>Please confirm checkout</h3> |
| 88 |
[% ELSE %] |
| 89 |
<h3>Cannot check out</h3> |
| 90 |
[% END %] |
| 91 |
|
| 92 |
<ul> |
| 93 |
[%IF ( AGE_RESTRICTION ) %] |
| 94 |
<li>Age restriction [% AGE_RESTRICTION | html %]. |
| 95 |
[% IF CAN_user_circulate_force_checkout %] |
| 96 |
Check out anyway? |
| 97 |
[% END %] |
| 98 |
</li> |
| 99 |
[% END %] |
| 100 |
|
| 101 |
[% IF ( DEBT ) %] |
| 102 |
<li>The patron has a debt of [% DEBT | $Price %].</li> |
| 103 |
[% END %] |
| 104 |
|
| 105 |
[% IF ( DEBT_GUARANTEES ) %] |
| 106 |
<li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li> |
| 107 |
[% END %] |
| 108 |
|
| 109 |
[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] |
| 110 |
<li>Rental charge for this item: [% RENTALCHARGE | html %]</li> |
| 111 |
[% END %] |
| 112 |
|
| 113 |
[% IF ( RENEW_ISSUE ) %] |
| 114 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li> |
| 115 |
[% END %] |
| 116 |
|
| 117 |
[% IF ( RESERVE_WAITING ) %] |
| 118 |
<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> |
| 119 |
[% END %] |
| 120 |
|
| 121 |
[% IF ( RESERVED ) %] |
| 122 |
<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> |
| 123 |
[% END %] |
| 124 |
|
| 125 |
[% IF ( ISSUED_TO_ANOTHER ) %] |
| 126 |
<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 %]). |
| 127 |
[% IF CAN_user_circulate_force_checkout %] |
| 128 |
Check in and check out? |
| 129 |
[% END %] |
| 130 |
</li> |
| 131 |
[% END %] |
| 132 |
|
| 133 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] |
| 134 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 135 |
[% END %] |
| 136 |
|
| 137 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] |
| 138 |
<li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 139 |
[% END %] |
| 140 |
|
| 141 |
[% IF ( BORRNOTSAMEBRANCH ) %] |
| 142 |
<li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li> |
| 143 |
[% END %] |
| 144 |
|
| 145 |
[% IF ( PATRON_CANT ) %] |
| 146 |
<li>This patron can't check out this item per library circulation policy.</li> |
| 147 |
[% END %] |
| 148 |
|
| 149 |
[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] |
| 150 |
<li>No circulation rule is defined for this patron and itemtype combination.</li> |
| 151 |
[% END %] |
| 152 |
|
| 153 |
[% IF ( NOT_FOR_LOAN_FORCING ) %] |
| 154 |
<li> |
| 155 |
[% IF ( itemtype_notforloan ) %] |
| 156 |
Item type is normally not for loan. |
| 157 |
[% ELSIF ( item_notforloan ) %] |
| 158 |
[% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] |
| 159 |
Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %]. |
| 160 |
[% END %] |
45 |
[% END %] |
| 161 |
[% IF CAN_user_circulate_force_checkout %] |
46 |
|
| 162 |
Check out anyway? |
47 |
[% IF patron %] |
| 163 |
[% END %] |
48 |
[% INCLUDE 'members-toolbar.inc' %] |
| 164 |
</li> |
|
|
| 165 |
[% END %] |
| 166 |
|
| 167 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
| 168 |
<li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). |
| 169 |
[% IF CAN_user_circulate_force_checkout %] |
| 170 |
Check out anyway? |
| 171 |
[% END %] |
| 172 |
</li> |
| 173 |
[% END %] |
| 174 |
|
| 175 |
[% IF ( ITEM_LOST ) %] |
| 176 |
<li>This item has been lost with a status of "[% ITEM_LOST | html %]". |
| 177 |
[% IF CAN_user_circulate_force_checkout %] |
| 178 |
Check out anyway? |
| 179 |
[% END %] |
| 180 |
</li> |
| 181 |
[% END %] |
| 182 |
|
| 183 |
[% IF HIGHHOLDS %] |
| 184 |
<li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li> |
| 185 |
[% END %] |
| 186 |
|
| 187 |
[% IF PREVISSUE %] |
| 188 |
<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> |
| 189 |
[% END %] |
| 190 |
|
| 191 |
[% IF BIBLIO_ALREADY_ISSUED %] |
| 192 |
<li> |
| 193 |
Patron has already checked out another item from this record. |
| 194 |
[% IF CAN_user_circulate_force_checkout %] |
| 195 |
Check out anyway? |
| 196 |
[% END %] |
49 |
[% END %] |
| 197 |
</li> |
50 |
|
| 198 |
[% END %] |
51 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
| 199 |
</ul> |
52 |
[% IF ( was_renewed ) %] |
| 200 |
|
53 |
<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div> |
| 201 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
|
|
| 202 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
| 203 |
<input type="hidden" name="restoreduedatespec" /> |
| 204 |
|
| 205 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 206 |
|
| 207 |
[% IF HIGHHOLDS %] |
| 208 |
<p class="circ-override-high-holds"> |
| 209 |
<input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" /> |
| 210 |
<label for="override_high_holds_tmp">Don't decrease loan length based on holds</label> |
| 211 |
</p> |
| 212 |
[% END %] |
| 213 |
|
| 214 |
[% IF ( RESERVED ) %] |
| 215 |
<p> |
| 216 |
<input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" /> |
| 217 |
<label for="cancelreserve">Cancel hold</label> |
| 218 |
</p> |
| 219 |
[% END %] |
| 220 |
|
| 221 |
[% IF ( RESERVE_WAITING ) %] |
| 222 |
<p> |
| 223 |
<label for="cancelreserve">Cancel hold</label> |
| 224 |
<input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br /> |
| 225 |
<label for="revertreserve">Revert waiting status</label> |
| 226 |
<input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/> |
| 227 |
</p> |
| 228 |
[% END %] |
| 229 |
|
| 230 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 231 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 232 |
<input type="hidden" name="issueconfirmed" value="1" /> |
| 233 |
<input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]"/> |
| 234 |
[% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %] |
| 235 |
[% IF ( INVALID_DATE ) %] |
| 236 |
<p> |
| 237 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
| 238 |
<label for="duedatespec">Due date</label> |
| 239 |
</p> |
| 240 |
[% ELSE %] |
| 241 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 242 |
[% END %] |
54 |
[% END %] |
| 243 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
55 |
|
| 244 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
56 |
[% IF autoswitched %] |
| 245 |
[% IF ( RENEW_ISSUE ) %] |
57 |
<div id="autoswitched" class="dialog message">Patron was automatically switched by reading the patron card during checking out. Ensure you are working with the right patron.</div> |
| 246 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button> |
|
|
| 247 |
[% ELSE %] |
| 248 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button> |
| 249 |
[% END %] |
58 |
[% END %] |
| 250 |
<input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" /> |
59 |
|
| 251 |
<input type="hidden" name="auto_renew" value="[% auto_renew | html %]" /> |
60 |
[% IF additional_materials %] |
| 252 |
</form> |
61 |
<div id="materials" class="dialog message"> |
| 253 |
[% END %] |
62 |
Note about the accompanying materials: <br /> |
| 254 |
|
63 |
[% additional_materials | html %] |
| 255 |
[% IF ( RESERVED ) %] |
64 |
</div> |
| 256 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
|
|
| 257 |
<input type="hidden" name="restoreduedatespec" /> |
| 258 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 259 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 260 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 261 |
<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> |
| 262 |
</form> |
| 263 |
[% END %] |
| 264 |
|
| 265 |
[% IF ( RESERVE_WAITING ) %] |
| 266 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 267 |
<input type="hidden" name="restoreduedatespec" /> |
| 268 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 269 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 270 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 271 |
<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> |
| 272 |
</form> |
| 273 |
[% END %] |
| 274 |
|
| 275 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 276 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 277 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 278 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 279 |
<input type="hidden" name="restoreduedatespec" /> |
| 280 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 281 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 282 |
[% IF ( RENEW_ISSUE ) %] |
| 283 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button> |
| 284 |
[% ELSE %] |
| 285 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button> |
| 286 |
[% END %] |
| 287 |
[% ELSE %] |
| 288 |
<button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button> |
| 289 |
[% END %] |
65 |
[% END %] |
| 290 |
</form> |
|
|
| 291 |
|
66 |
|
| 292 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
67 |
[% IF ( alert.ITEM_LOST ) %] |
| 293 |
[% UNLESS noissues %] |
68 |
<div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST | html %]".</div> |
| 294 |
<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> |
|
|
| 295 |
[% END %] |
69 |
[% END %] |
| 296 |
[% END %] |
|
|
| 297 |
</div></div> |
| 298 |
[% END %] <!-- NEEDSCONFIRMATION --> |
| 299 |
|
70 |
|
| 300 |
[% IF ( IMPOSSIBLE ) %] |
71 |
[% IF ( alert.OTHER_CHARGES ) %] |
|
|
72 |
<div class="dialog message">The patron has unpaid charges for holds, rentals etc of [% alert.OTHER_CHARGES | html %]</div> |
| 73 |
[% END %] |
| 301 |
|
74 |
|
| 302 |
<div class="yui-g"> |
75 |
[% IF alert.HIGHHOLDS %] |
| 303 |
<div id="circ_impossible" class="dialog alert audio-alert-warning"> |
76 |
<div class="dialog message">High demand item. <b>Loan period was not shortened due to override.</b> Shortened due date would have been [% alert.HIGHHOLDS.returndate | $KohaDates %] ([% alert.HIGHHOLDS.duration | html %] days).</div> |
| 304 |
[% IF ( UNKNOWN_BARCODE ) %] |
|
|
| 305 |
<h3>Barcode not found</h3> |
| 306 |
[% END %] |
77 |
[% END %] |
| 307 |
<!-- RESULT OF ISSUING REQUEST --> |
|
|
| 308 |
<ul> |
| 309 |
[% IF ( STATS ) %] |
| 310 |
<li>Local use recorded</li> |
| 311 |
[% END %] |
| 312 |
|
78 |
|
| 313 |
[% IF ( INVALID_DATE ) %] |
79 |
[% IF ( nopermission ) %] |
| 314 |
<li>The due date "[% INVALID_DATE | html %]" is invalid</li> |
80 |
<div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div> |
| 315 |
[% END %] |
81 |
[% END %] |
|
|
82 |
|
| 83 |
[% IF ( NEEDSCONFIRMATION ) %] |
| 84 |
<div class="yui-g"> |
| 85 |
<div id="circ_needsconfirmation" class="dialog alert audio-alert-action"> |
| 86 |
[% IF CAN_user_circulate_force_checkout %] |
| 87 |
<h3>Please confirm checkout</h3> |
| 88 |
[% ELSE %] |
| 89 |
<h3>Cannot check out</h3> |
| 90 |
[% END %] |
| 91 |
<ul> |
| 92 |
[%IF ( AGE_RESTRICTION ) %] |
| 93 |
<li>Age restriction [% AGE_RESTRICTION | html %]. |
| 94 |
[% IF CAN_user_circulate_force_checkout %] |
| 95 |
Check out anyway? |
| 96 |
[% END %] |
| 97 |
</li> |
| 98 |
[% END %] |
| 99 |
|
| 100 |
[% IF ( DEBT ) %] |
| 101 |
<li>The patron has a debt of [% DEBT | $Price %].</li> |
| 102 |
[% END %] |
| 103 |
|
| 104 |
[% IF ( DEBT_GUARANTEES ) %] |
| 105 |
<li>The patron's guarantees collectively have a debt of [% DEBT_GUARANTEES | $Price %].</li> |
| 106 |
[% END %] |
| 107 |
|
| 108 |
[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %] |
| 109 |
<li>Rental charge for this item: [% RENTALCHARGE | html %]</li> |
| 110 |
[% END %] |
| 111 |
|
| 112 |
[% IF ( RENEW_ISSUE ) %] |
| 113 |
<li>Item <i>[% getTitleMessageIteminfo | html %]</i> ([% getBarcodeMessageIteminfo | html %]) is currently checked out to this patron. Renew?</li> |
| 114 |
[% END %] |
| 115 |
|
| 116 |
[% IF ( RESERVE_WAITING ) %] |
| 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> |
| 118 |
[% END %] |
| 316 |
|
119 |
|
| 317 |
[% IF ( UNKNOWN_BARCODE ) %] |
120 |
[% IF ( RESERVED ) %] |
| 318 |
<li>The barcode was not found: <span class="ex">[% barcode | html %]</span> |
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> |
|
|
122 |
[% END %] |
| 123 |
|
| 124 |
[% IF ( ISSUED_TO_ANOTHER ) %] |
| 125 |
<li> |
| 126 |
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 %]). |
| 127 |
[% IF CAN_user_circulate_force_checkout %] |
| 128 |
Check in and check out? |
| 129 |
[% END %] |
| 130 |
</li> |
| 131 |
[% END %] |
| 132 |
|
| 133 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_CHECKOUTS' %] |
| 134 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 135 |
[% END %] |
| 136 |
|
| 137 |
[% IF TOO_MANY and TOO_MANY == 'TOO_MANY_ONSITE_CHECKOUTS' %] |
| 138 |
<li>Too many on-site checked out. [% current_loan_count | html %] on-site checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 139 |
[% END %] |
| 140 |
|
| 141 |
[% IF ( BORRNOTSAMEBRANCH ) %] |
| 142 |
<li>This patron is from a different library ([% Branches.GetName( BORRNOTSAMEBRANCH ) | html %])</li> |
| 143 |
[% END %] |
| 144 |
|
| 145 |
[% IF ( PATRON_CANT ) %] |
| 146 |
<li>This patron can't check out this item per library circulation policy.</li> |
| 147 |
[% END %] |
| 148 |
|
| 149 |
[% IF ( TOO_MANY and TOO_MANY == 'NO_RULE_DEFINED' ) %] |
| 150 |
<li>No circulation rule is defined for this patron and itemtype combination.</li> |
| 151 |
[% END %] |
| 152 |
|
| 153 |
[% IF ( NOT_FOR_LOAN_FORCING ) %] |
| 154 |
<li> |
| 155 |
[% IF ( itemtype_notforloan ) %] |
| 156 |
Item type is normally not for loan. |
| 157 |
[% ELSIF ( item_notforloan ) %] |
| 158 |
[% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] |
| 159 |
Item is normally not for loan |
| 160 |
[% IF (item_notforloan_lib) %] |
| 161 |
([% item_notforloan_lib | html %]) |
| 162 |
[% END %]. |
| 163 |
[% END %] |
| 164 |
|
| 165 |
[% IF CAN_user_circulate_force_checkout %] |
| 166 |
Check out anyway? |
| 167 |
[% END %] |
| 168 |
</li> |
| 169 |
[% END %] |
| 170 |
|
| 171 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
| 172 |
<li> |
| 173 |
Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). |
| 174 |
[% IF CAN_user_circulate_force_checkout %] |
| 175 |
Check out anyway? |
| 176 |
[% END %] |
| 177 |
</li> |
| 178 |
[% END %] |
| 179 |
|
| 180 |
[% IF ( ITEM_LOST ) %] |
| 181 |
<li> |
| 182 |
This item has been lost with a status of "[% ITEM_LOST | html %]". |
| 183 |
[% IF CAN_user_circulate_force_checkout %] |
| 184 |
Check out anyway? |
| 185 |
[% END %] |
| 186 |
</li> |
| 187 |
[% END %] |
| 188 |
|
| 189 |
[% IF HIGHHOLDS %] |
| 190 |
<li>High demand item. Loan period shortened to [% HIGHHOLDS.duration | html %] days (due [% HIGHHOLDS.returndate | $KohaDates %]). Check out anyway?</li> |
| 191 |
[% END %] |
| 192 |
|
| 193 |
[% IF PREVISSUE %] |
| 194 |
<li> |
| 195 |
Patron has previously checked out this title: <b>[% biblio.title | html %] |
| 196 |
[% IF biblio.author %] by [% biblio.author | html %][% END %] |
| 197 |
</b>. Check out anyway? |
| 198 |
</li> |
| 199 |
[% END %] |
| 200 |
|
| 201 |
[% IF BIBLIO_ALREADY_ISSUED %] |
| 202 |
<li> |
| 203 |
Patron has already checked out another item from this record. |
| 204 |
[% IF CAN_user_circulate_force_checkout %] |
| 205 |
Check out anyway? |
| 206 |
[% END %] |
| 207 |
</li> |
| 208 |
[% END %] |
| 209 |
</ul> |
| 210 |
|
| 211 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 212 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> |
| 213 |
<input type="hidden" name="restoreduedatespec" /> |
| 214 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 215 |
|
| 216 |
[% IF HIGHHOLDS %] |
| 217 |
<p class="circ-override-high-holds"> |
| 218 |
<input type="checkbox" name="override_high_holds_tmp" id="override_high_holds_tmp" value="1" /> |
| 219 |
<label for="override_high_holds_tmp">Don't decrease loan length based on holds</label> |
| 220 |
</p> |
| 221 |
[% END %] |
| 319 |
|
222 |
|
| 320 |
<div> |
223 |
[% IF ( RESERVED ) %] |
| 321 |
[% IF ( FALLBACK ) %] |
224 |
<p> |
| 322 |
[% IF options %] |
225 |
<input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" /> |
| 323 |
<button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button> |
226 |
<label for="cancelreserve">Cancel hold</label> |
|
|
227 |
</p> |
| 228 |
[% END %] |
| 229 |
|
| 230 |
[% IF ( RESERVE_WAITING ) %] |
| 231 |
<p> |
| 232 |
<label for="cancelreserve">Cancel hold</label> |
| 233 |
<input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br /> |
| 234 |
<label for="revertreserve">Revert waiting status</label> |
| 235 |
<input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked" /> |
| 236 |
</p> |
| 237 |
[% END %] |
| 238 |
|
| 239 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 240 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 241 |
<input type="hidden" name="issueconfirmed" value="1" /> |
| 242 |
<input type="hidden" name="override_high_holds" value="[% override_high_holds | html %]" /> |
| 243 |
[% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %] |
| 244 |
|
| 245 |
[% IF ( INVALID_DATE ) %] |
| 246 |
<p> |
| 247 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
| 248 |
<label for="duedatespec">Due date</label> |
| 249 |
</p> |
| 324 |
[% ELSE %] |
250 |
[% ELSE %] |
| 325 |
<div>No items were found by searching.</div> |
251 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 326 |
[% END %] |
252 |
[% END %] |
| 327 |
[% END %] |
|
|
| 328 |
|
253 |
|
| 329 |
[% IF ( fast_cataloging ) %] |
254 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 330 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
255 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 331 |
<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> |
256 |
|
|
|
257 |
[% IF ( RENEW_ISSUE ) %] |
| 258 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, renew (Y)</button> |
| 259 |
[% ELSE %] |
| 260 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-check"></i> Yes, check out (Y)</button> |
| 332 |
[% END %] |
261 |
[% END %] |
|
|
262 |
|
| 263 |
<input type="hidden" name="onsite_checkout" value="[% onsite_checkout | html %]" /> |
| 264 |
<input type="hidden" name="auto_renew" value="[% auto_renew | html %]" /> |
| 265 |
</form> |
| 266 |
[% END # IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 267 |
|
| 268 |
[% IF ( RESERVED ) %] |
| 269 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 270 |
<input type="hidden" name="restoreduedatespec" /> |
| 271 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 272 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 273 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 274 |
<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> |
| 275 |
</form> |
| 276 |
[% END %] |
| 277 |
|
| 278 |
[% IF ( RESERVE_WAITING ) %] |
| 279 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 280 |
<input type="hidden" name="restoreduedatespec" /> |
| 281 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 282 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 283 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 284 |
<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> |
| 285 |
</form> |
| 286 |
[% END %] |
| 287 |
|
| 288 |
<form method="get" action="/cgi-bin/koha/circ/circulation.pl"> |
| 289 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 290 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 291 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 292 |
<input type="hidden" name="restoreduedatespec" /> |
| 293 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 294 |
[% IF CAN_user_circulate_force_checkout or HIGHHOLDS %] |
| 295 |
[% IF ( RENEW_ISSUE ) %] |
| 296 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't renew (N)</button> |
| 297 |
[% ELSE %] |
| 298 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-times"></i> No, don't check out (N)</button> |
| 299 |
[% END %] |
| 300 |
[% ELSE %] |
| 301 |
<button type="submit" class="deny"><i class="fa fa-times"></i> Continue</button> |
| 333 |
[% END %] |
302 |
[% END %] |
| 334 |
</div> |
303 |
</form> |
| 335 |
|
304 |
|
| 336 |
</li> |
305 |
[% IF ( RESERVED || ISSUED_TO_ANOTHER ) && (CAN_user_reserveforothers_place_holds ) %] |
| 337 |
[% END %] |
306 |
[% UNLESS noissues %] |
|
|
307 |
<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> |
| 308 |
[% END %] |
| 309 |
[% END %] |
| 338 |
|
310 |
|
| 339 |
[% IF ( NOT_FOR_LOAN ) %] |
311 |
</div> <!-- / #circ_needsconfirmation --> |
| 340 |
<li> |
312 |
</div> <!-- /.yui-g --> |
| 341 |
[% IF ( itemtype_notforloan ) %] |
313 |
[% END # /IF ( NEEDSCONFIRMATION ) %] |
| 342 |
Item type not for loan. |
|
|
| 343 |
[% ELSIF ( item_notforloan ) %] |
| 344 |
[% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] |
| 345 |
Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %]. |
| 346 |
[% END %] |
| 347 |
</li> |
| 348 |
[% END %] |
| 349 |
|
314 |
|
| 350 |
[% IF ( WTHDRAWN ) %] |
315 |
<!-- NEEDSCONFIRMATION --> |
| 351 |
<li>Item has been withdrawn</li> |
316 |
[% IF ( IMPOSSIBLE ) %] |
| 352 |
[% END %] |
317 |
<div class="yui-g"> |
|
|
318 |
<div id="circ_impossible" class="dialog alert audio-alert-warning"> |
| 319 |
[% IF ( UNKNOWN_BARCODE ) %] |
| 320 |
<h3>Barcode not found</h3> |
| 321 |
[% END %] |
| 322 |
<!-- RESULT OF ISSUING REQUEST --> |
| 323 |
<ul> |
| 324 |
[% IF ( STATS ) %] |
| 325 |
<li>Local use recorded</li> |
| 326 |
[% END %] |
| 353 |
|
327 |
|
| 354 |
[% IF ( RESTRICTED ) %] |
328 |
[% IF ( INVALID_DATE ) %] |
| 355 |
<li>Item is restricted</li> |
329 |
<li>The due date "[% INVALID_DATE | html %]" is invalid</li> |
| 356 |
[% END %] |
330 |
[% END %] |
| 357 |
|
331 |
|
| 358 |
[% IF ( GNA ) %] |
332 |
[% IF ( UNKNOWN_BARCODE ) %] |
| 359 |
<li>Patron's address is in doubt</li> |
333 |
<li> |
| 360 |
[% END %] |
334 |
The barcode was not found: <span class="ex">[% barcode | html %]</span> |
|
|
335 |
<div> |
| 336 |
[% IF ( FALLBACK ) %] |
| 337 |
[% IF options %] |
| 338 |
<button type="button" class="approve" data-toggle="modal" data-target="#itemSearchFallback"><i class="fa fa-search"></i> Show matching titles</button> |
| 339 |
[% ELSE %] |
| 340 |
<div>No items were found by searching.</div> |
| 341 |
[% END %] |
| 342 |
[% END %] |
| 361 |
|
343 |
|
| 362 |
[% IF ( CARD_LOST ) %] |
344 |
[% IF ( fast_cataloging ) %] |
| 363 |
<li>Patron's card is lost</li> |
345 |
[% IF ( CAN_user_editcatalogue_fast_cataloging ) %] |
| 364 |
[% END %] |
346 |
<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> |
|
|
347 |
[% END %] |
| 348 |
[% END %] |
| 349 |
</div> |
| 350 |
</li> |
| 351 |
[% END # /UNKNOWN_BARCODE %] |
| 352 |
|
| 353 |
[% IF ( NOT_FOR_LOAN ) %] |
| 354 |
<li> |
| 355 |
[% IF ( itemtype_notforloan ) %] |
| 356 |
Item type not for loan. |
| 357 |
[% ELSIF ( item_notforloan ) %] |
| 358 |
[% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %] |
| 359 |
Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib | html %])[% END %]. |
| 360 |
[% END %] |
| 361 |
</li> |
| 362 |
[% END %] |
| 365 |
|
363 |
|
| 366 |
[% IF ( DEBARRED ) %] |
364 |
[% IF ( WTHDRAWN ) %] |
| 367 |
<li>Patron is restricted</li> |
365 |
<li>Item has been withdrawn</li> |
| 368 |
[% END %] |
366 |
[% END %] |
| 369 |
|
367 |
|
| 370 |
[% IF ( NO_MORE_RENEWALS ) %] |
368 |
[% IF ( RESTRICTED ) %] |
| 371 |
<li>No more renewals possible</li> |
369 |
<li>Item is restricted</li> |
| 372 |
[% END %] |
370 |
[% END %] |
| 373 |
|
371 |
|
| 374 |
[% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] |
372 |
[% IF ( GNA ) %] |
| 375 |
<li>This item can not be renewed, it's an on-site checkout</li> |
373 |
<li>Patron's address is in doubt</li> |
| 376 |
[% END %] |
374 |
[% END %] |
| 377 |
|
375 |
|
| 378 |
[%IF ( AGE_RESTRICTION ) %] |
376 |
[% IF ( CARD_LOST ) %] |
| 379 |
<li>Age restriction [% AGE_RESTRICTION | html %].</li> |
377 |
<li>Patron's card is lost</li> |
| 380 |
[% END %] |
378 |
[% END %] |
| 381 |
|
379 |
|
| 382 |
[% IF ( EXPIRED ) %] |
380 |
[% IF ( DEBARRED ) %] |
| 383 |
<li>Patron's card is expired</li> |
381 |
<li>Patron is restricted</li> |
| 384 |
[% END %] |
382 |
[% END %] |
| 385 |
|
383 |
|
| 386 |
[% IF ( TOO_MANY ) %] |
384 |
[% IF ( NO_MORE_RENEWALS ) %] |
| 387 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
385 |
<li>No more renewals possible</li> |
| 388 |
[% END %] |
386 |
[% END %] |
| 389 |
|
387 |
|
| 390 |
[% IF ( ITEMNOTSAMEBRANCH ) %] |
388 |
[% IF NO_RENEWAL_FOR_ONSITE_CHECKOUTS %] |
| 391 |
<li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li> |
389 |
<li>This item can not be renewed, it's an on-site checkout</li> |
| 392 |
[% END %] |
390 |
[% END %] |
| 393 |
|
391 |
|
| 394 |
[% IF RETURN_IMPOSSIBLE %] |
392 |
[%IF ( AGE_RESTRICTION ) %] |
| 395 |
<li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li> |
393 |
<li>Age restriction [% AGE_RESTRICTION | html %].</li> |
| 396 |
[% END %] |
394 |
[% END %] |
| 397 |
|
395 |
|
| 398 |
[% IF ( USERBLOCKEDWITHENDDATE ) %] |
396 |
[% IF ( EXPIRED ) %] |
| 399 |
<li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li> |
397 |
<li>Patron's card is expired</li> |
| 400 |
[% END %] |
398 |
[% END %] |
| 401 |
|
399 |
|
| 402 |
[% IF ( USERBLOCKEDNOENDDATE ) %] |
400 |
[% IF ( TOO_MANY ) %] |
| 403 |
<li>Patron has an indefinite restriction.</li> |
401 |
<li>Too many checked out. [% current_loan_count | html %] checked out, only [% max_loans_allowed | html %] are allowed.</li> |
| 404 |
[% END %] |
402 |
[% END %] |
| 405 |
|
403 |
|
| 406 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
404 |
[% IF ( ITEMNOTSAMEBRANCH ) %] |
| 407 |
<li>Checkouts are BLOCKED because patron has overdue items.</li> |
405 |
<li>This item belongs to [% Branches.GetName( itemhomebranch ) | html %] and cannot be checked out from this location.</li> |
| 408 |
[% END %] |
406 |
[% END %] |
| 409 |
</ul> |
|
|
| 410 |
|
407 |
|
| 411 |
[% IF (forceallow) %] |
408 |
[% IF RETURN_IMPOSSIBLE %] |
| 412 |
<li>Restriction overridden temporarily.</li> |
409 |
<li>This item must be returned to [% Branches.GetName( branch_to_return ) | html %].</li> |
| 413 |
[% END %] |
410 |
[% END %] |
| 414 |
|
411 |
|
| 415 |
</div></div> |
412 |
[% IF ( USERBLOCKEDWITHENDDATE ) %] |
|
|
413 |
<li>Patron has a restriction until [% USERBLOCKEDWITHENDDATE | $KohaDates %].</li> |
| 414 |
[% END %] |
| 415 |
|
| 416 |
[% IF ( USERBLOCKEDNOENDDATE ) %] |
| 417 |
<li>Patron has an indefinite restriction.</li> |
| 418 |
[% END %] |
| 419 |
|
| 420 |
[% IF ( USERBLOCKEDOVERDUE ) %] |
| 421 |
<li>Checkouts are BLOCKED because patron has overdue items.</li> |
| 422 |
[% END %] |
| 423 |
</ul> |
| 424 |
|
| 425 |
[% IF (forceallow) %] |
| 426 |
<li>Restriction overridden temporarily.</li> |
| 427 |
[% END %] |
| 428 |
</div> <!-- /#circ_impossible --> |
| 429 |
</div> <!-- /.yui-g --> |
| 416 |
|
430 |
|
| 417 |
[% IF ( FALLBACK ) %] |
431 |
[% IF ( FALLBACK ) %] |
| 418 |
[% IF options %] |
432 |
[% IF options %] |
| 419 |
|
|
|
| 420 |
<!-- Modal --> |
433 |
<!-- Modal --> |
| 421 |
<div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel"> |
434 |
<div class="modal" id="itemSearchFallback" tabindex="-1" role="dialog" aria-labelledby="itemSearchFallbackLabel"> |
| 422 |
<div class="modal-dialog modal-wide" role="document"> |
435 |
<div class="modal-dialog modal-wide" role="document"> |
|
Lines 450-977
Link Here
|
| 450 |
</tr> |
463 |
</tr> |
| 451 |
[% END %] |
464 |
[% END %] |
| 452 |
</table> |
465 |
</table> |
| 453 |
</div> |
466 |
</div> <!-- /.modal-body --> |
| 454 |
<div class="modal-footer"> |
467 |
<div class="modal-footer"> |
| 455 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
468 |
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
| 456 |
</div> |
469 |
</div> |
| 457 |
</div> |
470 |
</div> <!-- /.modal-content --> |
| 458 |
</div> |
471 |
</div> <!-- .modal-dialog.modal-wide --> |
| 459 |
</div> |
472 |
</div> <!-- /#itemSearchFallback --> |
| 460 |
[% END %] |
473 |
[% END # /IF options %] |
|
|
474 |
[% END # /IF FALLBACK%] |
| 475 |
[% ELSE # IF IMPOSSIBLE %] |
| 476 |
[% IF (forceallow) %] |
| 477 |
<div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div> |
| 461 |
[% END %] |
478 |
[% END %] |
|
|
479 |
[% END # /IF IMPOSSIBLE %] |
| 462 |
|
480 |
|
| 463 |
[% ELSE %] |
481 |
<span class="audio-alert-success"></span> |
| 464 |
[% IF (forceallow) %] |
|
|
| 465 |
<div id="overridden_debarment" class="dialog alert">Restriction overridden temporarily</div> |
| 466 |
[% END %] |
| 467 |
[% END %] <!-- /impossible --> |
| 468 |
|
| 469 |
<span class="audio-alert-success"></span> |
| 470 |
|
| 471 |
[% IF ( issued ) %] |
| 472 |
<p>Item checked out</p> |
| 473 |
[% END %] |
| 474 |
|
| 475 |
[% IF ( message ) %] |
| 476 |
[% INCLUDE 'patron-toolbar.inc' %] |
| 477 |
<h4> |
| 478 |
No patron matched <span class="ex">[% message | html %]</span> |
| 479 |
</h4> |
| 480 |
[% END %] |
| 481 |
|
| 482 |
[% IF ( borrowers ) %] |
| 483 |
[% INCLUDE 'patron-toolbar.inc' %] |
| 484 |
|
| 485 |
<fieldset id="circ_circulation_selectborrower"> |
| 486 |
[% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %] |
| 487 |
</fieldset> |
| 488 |
[% ELSE %] |
| 489 |
|
| 490 |
<!-- BARCODE ENTRY --> |
| 491 |
|
| 492 |
[% IF patron %] |
| 493 |
<div class="yui-g"> |
| 494 |
|
| 495 |
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] |
| 496 |
<div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div> |
| 497 |
[% END %] |
| 498 |
|
| 499 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
| 500 |
<div class="yui-u first"> |
| 501 |
|
| 502 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
| 503 |
<input type="hidden" name="restoreduedatespec" /> |
| 504 |
[% IF ( issue ) %] |
| 505 |
<fieldset id="circ_circulation_issue" class="lastchecked"> |
| 506 |
[% ELSE %] |
| 507 |
<fieldset id="circ_circulation_issue"> |
| 508 |
[% END %] |
| 509 |
[% IF ( DisplayClearScreenButton ) %] |
| 510 |
<span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span> |
| 511 |
[% END %] |
| 512 |
|
| 513 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 514 |
|
482 |
|
| 515 |
<label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label> |
483 |
[% IF ( issued ) %] |
|
|
484 |
<p>Item checked out</p> |
| 485 |
[% END %] |
| 516 |
|
486 |
|
| 517 |
[% IF Koha.Preference('itemBarcodeFallbackSearch') %] |
487 |
[% IF ( message ) %] |
| 518 |
<div class="hint">Enter item barcode or keyword:</div> |
488 |
[% INCLUDE 'patron-toolbar.inc' %] |
| 519 |
[% ELSE %] |
489 |
<h4>No patron matched <span class="ex">[% message | html %]</span></h4> |
| 520 |
<div class="hint">Enter item barcode:</div> |
490 |
[% END %] |
| 521 |
[% END %] |
|
|
| 522 |
|
491 |
|
| 523 |
[% IF NEEDSCONFIRMATION %] |
492 |
[% IF ( borrowers ) %] |
| 524 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" /> |
493 |
[% INCLUDE 'patron-toolbar.inc' %] |
|
|
494 |
<fieldset id="circ_circulation_selectborrower"> |
| 495 |
[% INCLUDE 'circ-patron-search-results.inc' destination = "circ" %] |
| 496 |
</fieldset> |
| 525 |
[% ELSE %] |
497 |
[% ELSE %] |
| 526 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
498 |
<!-- BARCODE ENTRY --> |
| 527 |
[% END %] |
499 |
[% IF patron %] |
| 528 |
<button type="submit" class="btn btn-default">Check out</button> |
500 |
<div class="yui-g"> |
|
|
501 |
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %] |
| 502 |
<div class="dialog alert"><strong>Error:</strong> This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div> |
| 503 |
[% END %] |
| 529 |
|
504 |
|
| 530 |
<div id="show-checkout-settings"> |
505 |
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%] |
| 531 |
<a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a> |
506 |
<div class="yui-u first"> |
| 532 |
</div> |
507 |
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> |
|
|
508 |
<input type="hidden" name="restoreduedatespec" /> |
| 509 |
[% IF ( issue ) %] |
| 510 |
<fieldset id="circ_circulation_issue" class="lastchecked"> |
| 511 |
[% ELSE %] |
| 512 |
<fieldset id="circ_circulation_issue"> |
| 513 |
[% END %] |
| 533 |
|
514 |
|
| 534 |
<div class="checkout-settings"> |
515 |
[% IF ( DisplayClearScreenButton ) %] |
|
|
516 |
<span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span> |
| 517 |
[% END %] |
| 518 |
|
| 519 |
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] |
| 520 |
|
| 521 |
<label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label> |
| 522 |
|
| 523 |
[% IF Koha.Preference('itemBarcodeFallbackSearch') %] |
| 524 |
<div class="hint">Enter item barcode or keyword:</div> |
| 525 |
[% ELSE %] |
| 526 |
<div class="hint">Enter item barcode:</div> |
| 527 |
[% END %] |
| 528 |
|
| 529 |
[% IF NEEDSCONFIRMATION %] |
| 530 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" /> |
| 531 |
[% ELSE %] |
| 532 |
<input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> |
| 533 |
[% END %] |
| 534 |
|
| 535 |
<button type="submit" class="btn btn-default">Check out</button> |
| 536 |
|
| 537 |
<div id="show-checkout-settings"> |
| 538 |
<a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a> |
| 539 |
</div> |
| 540 |
|
| 541 |
<div class="checkout-settings"> |
| 542 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 543 |
[% IF ( SpecifyDueDate ) %] |
| 544 |
<div id="specify-due-date" class="checkout-setting"> |
| 545 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
| 546 |
|
| 547 |
[% IF ( duedatespec ) %] |
| 548 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
| 549 |
[% ELSE %] |
| 550 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="" /> |
| 551 |
[% END %] |
| 552 |
|
| 553 |
<label for="stickyduedate"> Remember for session:</label> |
| 554 |
|
| 555 |
[% IF ( stickyduedate ) %] |
| 556 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" /> |
| 557 |
[% ELSE %] |
| 558 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
| 559 |
[% END %] |
| 560 |
|
| 561 |
<button class="btn btn-default btn-sm action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;">Clear</button> |
| 562 |
</div> <!-- / #specify-due-date --> |
| 563 |
[% END # /IF ( SpecifyDueDate ) %] |
| 564 |
[% END # /UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 565 |
|
| 566 |
[% UNLESS ( noissues ) %] |
| 567 |
<div id="set-automatic-renewal" class="checkout-setting"> |
| 568 |
|
| 569 |
[% IF NEEDSCONFIRMATION %] |
| 570 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
| 571 |
[% ELSE %] |
| 572 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" /> |
| 573 |
[% END %] |
| 574 |
<label for="auto_renew">Automatic renewal</label> |
| 575 |
</div> |
| 576 |
|
| 577 |
[% IF Koha.Preference('decreaseLoanHighHolds') %] |
| 578 |
<div id="set_high_holds_overrride" class="checkout-setting"> |
| 579 |
[% IF NEEDSCONFIRMATION %] |
| 580 |
[% IF override_high_holds %] |
| 581 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked" /> |
| 582 |
[% ELSE %] |
| 583 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" /> |
| 584 |
[% END %] |
| 585 |
[% ELSE %] |
| 586 |
[% IF override_high_holds %] |
| 587 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" /> |
| 588 |
[% ELSE %] |
| 589 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" /> |
| 590 |
[% END %] |
| 591 |
[% END %] |
| 592 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
| 593 |
</div> <!-- /#set_hight_holds_override --> |
| 594 |
[% END # /IF Koha.Preference('decreaseLoanHighHolds') %] |
| 595 |
[% END # /UNLESS ( noissues ) %] |
| 596 |
|
| 597 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
| 598 |
<div id="onsite_checkout-select" class="checkout-setting"> |
| 599 |
[% IF noissues %] |
| 600 |
<div class="onsite-checkout-only"> |
| 601 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label> |
| 602 |
<input type="text" name="duedatespec" id="duedatespec" /> |
| 603 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
| 604 |
</div> |
| 605 |
[% ELSE %] |
| 606 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> |
| 607 |
<label for="onsite_checkout">On-site checkout</label> |
| 608 |
[% END %] |
| 609 |
</div> |
| 610 |
[% END # /IF Koha.Preference('OnSiteCheckouts')%] |
| 611 |
</div> <!-- /.checkout-settings --> |
| 612 |
|
| 613 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 614 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 615 |
<input type="hidden" name="print" value="maybe" /> |
| 616 |
<input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" /> |
| 617 |
[% IF ( CHARGES ) %] |
| 618 |
<input type="hidden" name="charges" value="yes" /> |
| 619 |
[% END %] |
| 620 |
</fieldset> <!-- /#circ_circulation_issue --> |
| 621 |
|
| 622 |
[% IF ( issue ) %] |
| 623 |
<div class="lastchecked"> |
| 624 |
<p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates %]</p> |
| 625 |
</div> |
| 626 |
[% END %] |
| 627 |
</form> <!-- /#mainform --> |
| 628 |
</div> <!-- /.yui-u first --> |
| 629 |
[% END # /IF ( !noissues ) %] |
| 535 |
|
630 |
|
| 536 |
[% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %] |
631 |
[% IF ( noissues ) %] |
| 537 |
[% IF ( SpecifyDueDate ) %] |
632 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 538 |
<div id="specify-due-date" class="checkout-setting"> |
633 |
<div class="yui-u"> |
| 539 |
<div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div> |
|
|
| 540 |
[% IF ( duedatespec ) %] |
| 541 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" /> |
| 542 |
[% ELSE %] |
634 |
[% ELSE %] |
| 543 |
<input type="text" size="13" id="duedatespec" name="duedatespec" value="" /> |
635 |
<div> |
| 544 |
[% END %] |
636 |
[% END %] |
| 545 |
<label for="stickyduedate"> Remember for session:</label> |
|
|
| 546 |
[% IF ( stickyduedate ) %] |
| 547 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" /> |
| 548 |
[% ELSE %] |
| 549 |
<input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" /> |
| 550 |
[% END %] |
| 551 |
<button class="btn btn-default btn-sm action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button> |
| 552 |
</div> |
| 553 |
[% END %] |
| 554 |
[% END %] |
| 555 |
|
| 556 |
[% UNLESS ( noissues ) %] |
| 557 |
<div id="set-automatic-renewal" class="checkout-setting"> |
| 558 |
[% IF NEEDSCONFIRMATION %] |
| 559 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" /> |
| 560 |
[% ELSE %] |
637 |
[% ELSE %] |
| 561 |
<input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" class="circ_setting" /> |
638 |
<div class="yui-u"> |
| 562 |
[% END %] |
639 |
[% END %] |
| 563 |
|
640 |
|
| 564 |
<label for="auto_renew">Automatic renewal</label> |
641 |
[% IF ( noissues ) %] |
| 565 |
</div> |
642 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 566 |
[% IF Koha.Preference('decreaseLoanHighHolds') %] |
643 |
<div id="circmessages" class="circmessage attention"> |
| 567 |
<div id="set_high_holds_overrride" class="checkout-setting"> |
|
|
| 568 |
[% IF NEEDSCONFIRMATION %] |
| 569 |
[% IF override_high_holds %] |
| 570 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/> |
| 571 |
[% ELSE %] |
644 |
[% ELSE %] |
| 572 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/> |
645 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
| 573 |
[% END %] |
646 |
<div id="circmessages" class="circmessage warning"> |
| 574 |
[% ELSE %] |
|
|
| 575 |
[% IF override_high_holds %] |
| 576 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" checked="checked" /> |
| 577 |
[% ELSE %] |
| 578 |
<input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" class="circ_setting" /> |
| 579 |
[% END %] |
647 |
[% END %] |
|
|
648 |
<h3> |
| 649 |
Cannot check out! |
| 650 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 651 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
| 652 |
[% END %] |
| 653 |
</h3> |
| 654 |
[% ELSE # /IF ( noissues ) %] |
| 655 |
<div id="circmessages" class="circmessage attention"> |
| 656 |
<h3>Attention:</h3> |
| 580 |
[% END %] |
657 |
[% END %] |
| 581 |
<label for="override_high_holds">Don't decrease checkout length based on holds</label> |
|
|
| 582 |
</div> |
| 583 |
[% END %] |
| 584 |
[% END %] |
| 585 |
|
658 |
|
| 586 |
[% IF Koha.Preference('OnSiteCheckouts') %] |
659 |
<ul> |
| 587 |
<div id="onsite_checkout-select" class="checkout-setting"> |
660 |
[% IF ( has_modifications ) %] |
| 588 |
[% IF noissues %] |
661 |
<li> |
| 589 |
<div class="onsite-checkout-only"> |
662 |
<span class="circ-hlt">Pending modifications:</span> Patron has pending modifications. |
| 590 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label> |
663 |
[% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %] |
| 591 |
<input type="text" name="duedatespec" id="duedatespec" /> |
664 |
<a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a> |
| 592 |
<input type="hidden" name="onsite_checkout" checked="checked" value="1" /> |
665 |
[% END %] |
| 593 |
</div> |
666 |
</li> |
| 594 |
[% ELSE %] |
667 |
[% END %] |
| 595 |
<input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting" /> <label for="onsite_checkout">On-site checkout</label> |
|
|
| 596 |
[% END %] |
| 597 |
</div> |
| 598 |
[% END %] |
| 599 |
|
| 600 |
</div> <!-- /.checkout-settings --> |
| 601 |
|
668 |
|
| 602 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
669 |
[% IF ( warndeparture ) %] |
| 603 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
670 |
<li> |
| 604 |
<input type="hidden" name="print" value="maybe" /> |
671 |
<span class="circ-hlt">Expiration:</span> Patron's card will expire soon. |
| 605 |
<input type="hidden" name="debt_confirmed" value="[% debt_confirmed | html %]" /> |
672 |
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 %]&categorycode=[% categorycode | html %]">Edit Details</a> |
| 606 |
[% IF ( CHARGES ) %] |
673 |
</li> |
| 607 |
<input type="hidden" name="charges" value="yes" /> |
674 |
[% END %] |
| 608 |
[% END %] |
|
|
| 609 |
</fieldset> |
| 610 |
[% IF ( issue ) %] |
| 611 |
<div class="lastchecked"> |
| 612 |
<p><strong>Checked out: </strong>[% issue.item.biblioitemnumber.biblionumber.title | html %] ([% issue.item.barcode | html %]). Due on [% issue.date_due | $KohaDates %]</p> |
| 613 |
</div> |
| 614 |
[% END %] |
| 615 |
</form></div> |
| 616 |
|
675 |
|
| 617 |
[% END %]<!-- /unless noissues --> |
676 |
[% IF ( returnbeforeexpiry ) %] |
|
|
677 |
<li> |
| 678 |
<span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the |
| 679 |
expiry date is before the date due, the date due will be set to the expiry date |
| 680 |
</li> |
| 681 |
[% END %] |
| 618 |
|
682 |
|
| 619 |
[% IF ( noissues ) %] |
683 |
[% IF ( expired ) %] |
| 620 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
684 |
<li> |
| 621 |
<div class="yui-u"> |
685 |
<span class="circ-hlt">Expiration:</span> Patron's card has expired. |
| 622 |
[% ELSE %] |
686 |
[% IF ( expiry ) %] Patron's card expired on [% expiry | $KohaDates %] [% END %] |
| 623 |
<div> |
687 |
<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 %]&categorycode=[% categorycode | html %]">Edit Details</a> |
| 624 |
[% END %] |
688 |
</li> |
| 625 |
[% ELSE %] |
689 |
[% END %] |
| 626 |
<div class="yui-u"> |
|
|
| 627 |
[% END %] |
| 628 |
|
| 629 |
[% IF ( noissues ) %] |
| 630 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 631 |
<div id="circmessages" class="circmessage attention"> |
| 632 |
[% ELSE %] |
| 633 |
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4> |
| 634 |
<div id="circmessages" class="circmessage warning"> |
| 635 |
[% END %] |
| 636 |
<h3> |
| 637 |
Cannot check out! |
| 638 |
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %] |
| 639 |
<span class="circ-hlt">Only on-site checkouts are allowed</span> |
| 640 |
[% END %] |
| 641 |
</h3> |
| 642 |
[% ELSE %] |
| 643 |
<div id="circmessages" class="circmessage attention"> |
| 644 |
<h3>Attention:</h3> |
| 645 |
[% END %] |
| 646 |
|
690 |
|
| 647 |
<ul> |
691 |
[% IF ( gna ) %] |
|
|
692 |
<li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li> |
| 693 |
[% END %] |
| 648 |
|
694 |
|
| 649 |
[% IF ( has_modifications ) %] |
695 |
[% IF ( lost ) %] |
| 650 |
<li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications. |
696 |
<li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li> |
| 651 |
[% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %] |
|
|
| 652 |
<a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a> |
| 653 |
[% END %] |
697 |
[% END %] |
| 654 |
</li> |
|
|
| 655 |
[% END %] |
| 656 |
|
| 657 |
[% IF ( warndeparture ) %] |
| 658 |
<li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon. |
| 659 |
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 %]&categorycode=[% categorycode | html %]">Edit Details</a> |
| 660 |
|
| 661 |
</li> |
| 662 |
[% END %] |
| 663 |
|
| 664 |
[% IF ( returnbeforeexpiry ) %] |
| 665 |
<li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the |
| 666 |
expiry date is before the date due, the date due will be set to the expiry date |
| 667 |
</li> |
| 668 |
[% END %] |
| 669 |
|
| 670 |
[% IF ( expired ) %] |
| 671 |
<li><span class="circ-hlt">Expiration:</span> Patron's card has expired. |
| 672 |
[% IF ( expiry ) %]Patron's card expired on [% expiry | $KohaDates %][% END %] <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 %]&categorycode=[% categorycode | html %]">Edit Details</a> |
| 673 |
|
| 674 |
</li> |
| 675 |
[% END %] |
| 676 |
|
| 677 |
[% IF ( gna ) %] |
| 678 |
<li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li> |
| 679 |
[% END %] |
| 680 |
|
| 681 |
[% IF ( lost ) %] |
| 682 |
<li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li> |
| 683 |
[% END %] |
| 684 |
|
| 685 |
[% IF ( userdebarred ) %] |
| 686 |
<li class="blocker"> |
| 687 |
<span class="circ-hlt"> Restricted:</span> Patron's account is restricted |
| 688 |
|
| 689 |
[% IF ( userdebarreddate ) %] |
| 690 |
until [% userdebarreddate | $KohaDates %] |
| 691 |
[% END %] |
| 692 |
|
| 693 |
[% IF ( debarredcomment ) %] |
| 694 |
with the explanation: <br/><i> |
| 695 |
[% IF debarredcomment.search('OVERDUES_PROCESS') %] |
| 696 |
Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %] |
| 697 |
[% ELSE %] |
| 698 |
[% debarredcomment | $raw | html_line_break %] |
| 699 |
[% END %] |
| 700 |
</i> |
| 701 |
[% END %] |
| 702 |
<br/> |
| 703 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
| 704 |
[% IF (noissues && patron && CAN_user_circulate_force_checkout) %] |
| 705 |
<span class="override_debarment"> |
| 706 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
| 707 |
</span> |
| 708 |
[% END %] |
| 709 |
</li> |
| 710 |
[% END %] |
| 711 |
|
698 |
|
| 712 |
[% IF ( odues ) %]<li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li> |
699 |
[% IF ( userdebarred ) %] |
| 713 |
[% END %] |
700 |
<li class="blocker"> |
|
|
701 |
<span class="circ-hlt"> Restricted:</span> Patron's account is restricted |
| 714 |
|
702 |
|
| 715 |
[% IF ( charges ) %] |
703 |
[% IF ( userdebarreddate ) %] |
| 716 |
[% INCLUDE 'blocked-fines.inc' fines = chargesamount %] |
704 |
until [% userdebarreddate | $KohaDates %] |
| 717 |
[% END %] |
705 |
[% END %] |
| 718 |
|
706 |
|
| 719 |
[% IF ( charges_guarantees ) %] |
707 |
[% IF ( debarredcomment ) %] |
| 720 |
<li> |
708 |
with the explanation: <br /><i> |
| 721 |
<span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %]. |
709 |
[% IF debarredcomment.search('OVERDUES_PROCESS') %] |
| 722 |
[% IF noissues %] |
710 |
Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %] |
| 723 |
<span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span> |
711 |
[% ELSE %] |
| 724 |
[% END %] |
712 |
[% debarredcomment | $raw | html_line_break %] |
| 725 |
</li> |
713 |
[% END %] |
| 726 |
[% END %] |
714 |
</i> |
|
|
715 |
[% END %] |
| 727 |
|
716 |
|
|
|
717 |
<br /> |
| 718 |
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> View restrictions</a> |
| 728 |
|
719 |
|
| 729 |
[% IF ( credits ) %] |
720 |
[% IF (noissues && patron && CAN_user_circulate_force_checkout) %] |
| 730 |
<li> |
721 |
<span class="override_debarment"> |
| 731 |
<span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %] |
722 |
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default btn-sm">Override restriction temporarily</a> |
| 732 |
</li> |
723 |
</span> |
| 733 |
[% END %] |
724 |
[% END %] |
|
|
725 |
</li> |
| 726 |
[% END # /IF ( userdebarred ) %] |
| 734 |
|
727 |
|
| 735 |
</ul> |
728 |
[% IF ( odues ) %] |
| 736 |
</div> |
729 |
<li><span class="circ-hlt">Overdues: Patron has ITEMS OVERDUE.</span> <a href="#checkouts">See highlighted items below</a></li> |
|
|
730 |
[% END %] |
| 737 |
|
731 |
|
| 738 |
[% IF WaitingHolds.count %] |
732 |
[% IF ( charges ) %] |
| 739 |
<div id="holdswaiting" class="circmessage"> |
733 |
[% INCLUDE 'blocked-fines.inc' fines = chargesamount %] |
| 740 |
<h4>Holds waiting:</h4> |
734 |
[% END %] |
| 741 |
[% FOREACH w IN WaitingHolds %] |
735 |
|
| 742 |
<ul> |
736 |
[% IF ( charges_guarantees ) %] |
| 743 |
<li> |
737 |
<li> |
| 744 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
738 |
<span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %]. |
| 745 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
739 |
[% IF noissues %] |
| 746 |
[% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] |
740 |
<span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span> |
| 747 |
[% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %] |
741 |
[% END %] |
| 748 |
Hold placed on [% w.reservedate | $KohaDates %]. |
742 |
</li> |
| 749 |
|
743 |
[% END %] |
| 750 |
<br/> |
744 |
|
| 751 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %] |
745 |
[% IF ( credits ) %] |
| 752 |
[% SET expires_on = w.expirationdate %] |
746 |
<li> |
| 753 |
Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] |
747 |
<span class="circ-hlt">Credits:</span> Patron has a credit |
| 754 |
</strong> |
748 |
[% IF ( creditsamount ) %] of [% creditsamount | $Price %][% END %] |
| 755 |
</li> |
749 |
</li> |
|
|
750 |
[% END %] |
| 756 |
</ul> |
751 |
</ul> |
| 757 |
[% END %] |
752 |
</div> <!-- /#circmessages --> |
| 758 |
</div> |
753 |
|
| 759 |
[% END %] |
754 |
[% IF WaitingHolds.count %] |
|
|
755 |
<div id="holdswaiting" class="circmessage"> |
| 756 |
<h4>Holds waiting:</h4> |
| 757 |
|
| 758 |
[% FOREACH w IN WaitingHolds %] |
| 759 |
<ul> |
| 760 |
<li> |
| 761 |
<a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> |
| 762 |
([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), |
| 763 |
[% IF ( w.biblio.author ) %] by [% w.biblio.author | html %] [% END %] |
| 764 |
[% IF ( w.item.itemcallnumber ) %] [[% w.item.itemcallnumber | html %]] [% END %] |
| 765 |
Hold placed on [% w.reservedate | $KohaDates %]. |
| 766 |
<br /> |
| 767 |
[% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] |
| 768 |
<strong class="waitinghere"> |
| 769 |
[% ELSE %] |
| 770 |
<strong> |
| 771 |
[% END %] |
| 772 |
[% SET expires_on = w.expirationdate %] |
| 773 |
Waiting at [% w.branch.branchname | html %] [% IF expires_on %] until [% expires_on | $KohaDates %] [% END %] |
| 774 |
</strong> |
| 775 |
</li> |
| 776 |
</ul> |
| 777 |
[% END # /FOREACH WaitingHolds %] |
| 778 |
</div> <!-- /#holdswaiting --> |
| 779 |
[% END # IF WaitingHolds.count %] |
| 780 |
|
| 781 |
[% IF ( notes ) %] |
| 782 |
<div id="circnotes" class="circmessage"> |
| 783 |
<h4>Notes:</h4> |
| 784 |
<p><span class="circ-hlt">[% notesmsg | html %]</span></p> |
| 785 |
</div> |
| 786 |
[% END # IF ( notes ) %] |
| 760 |
|
787 |
|
| 761 |
[% IF ( notes ) %] |
788 |
<div id="messages" class="circmessage"> |
| 762 |
<div id="circnotes" class="circmessage"> |
789 |
<h4>Messages:</h4> |
| 763 |
<h4>Notes:</h4> |
790 |
<ul> |
| 764 |
<p><span class="circ-hlt">[% notesmsg | html %]</span></p> |
791 |
[% FOREACH message IN messages %] |
| 765 |
</div> |
792 |
<li> |
|
|
793 |
[% IF(message.message_type == "L") %] |
| 794 |
<span class="circ-hlt"> |
| 795 |
[% ELSE %] |
| 796 |
<span> |
| 797 |
[% END %] |
| 798 |
[% message.message_date | $KohaDates %] |
| 799 |
[% Branches.GetName( message.branchcode ) | html %] |
| 766 |
|
800 |
|
|
|
801 |
[% IF message.manager_id %] |
| 802 |
( <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> ) |
| 803 |
[% END %] |
| 804 |
<i>"[% message.message | html %]"</i> |
| 805 |
</span> |
| 767 |
|
806 |
|
| 768 |
<!-- /If notes -->[% END %] |
807 |
[% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %] |
|
|
808 |
<a class="btn btn-link btn-sm" 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> |
| 809 |
[% END %] |
| 810 |
</li> |
| 811 |
[% END # /FOREACH messages %] |
| 812 |
</ul> |
| 769 |
|
813 |
|
| 770 |
<div id="messages" class="circmessage"> |
814 |
<a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a> |
| 771 |
<h4>Messages:</h4> |
815 |
</div> <!-- /#messages --> |
| 772 |
<ul> |
816 |
</div> <!-- .yui-u --> |
| 773 |
[% FOREACH message IN messages %] |
817 |
</div> <!-- /.yui-g --> |
| 774 |
<li> |
818 |
|
| 775 |
[% IF(message.message_type == "L") %] |
819 |
<div class="yui-g"> |
| 776 |
<span class="circ-hlt"> |
820 |
<div id="patronlists" class="toptabs"> |
| 777 |
[% ELSE %] |
821 |
<ul> |
| 778 |
<span> |
822 |
<li> |
| 779 |
[% END %] |
823 |
[% IF ( issuecount ) %] |
| 780 |
[% message.message_date | $KohaDates %] |
824 |
<a href="#checkouts">[% issuecount | html %] Checkout(s)</a> |
| 781 |
[% Branches.GetName( message.branchcode ) | html %] |
825 |
[% ELSE %] |
| 782 |
[% IF message.manager_id %] |
826 |
<a href="#checkouts">0 Checkouts</a> |
| 783 |
( <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> ) |
827 |
[% END %] |
| 784 |
[% END %] |
828 |
</li> |
| 785 |
<i>"[% message.message | html %]"</i> |
|
|
| 786 |
</span> |
| 787 |
[% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %] |
| 788 |
<a class="btn btn-link btn-sm" 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> |
| 789 |
[% END %] |
| 790 |
</li> |
| 791 |
[% END %] |
| 792 |
</ul> |
| 793 |
<a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a> |
| 794 |
</div> |
| 795 |
|
829 |
|
| 796 |
</div> |
830 |
[% IF relatives_issues_count %] |
| 797 |
</div> |
831 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
|
|
832 |
[% END %] |
| 798 |
|
833 |
|
| 799 |
<div class="yui-g"><div id="patronlists" class="toptabs"> |
834 |
<li> |
|
|
835 |
[% IF ( holds_count ) %] |
| 836 |
<a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a> |
| 837 |
[% ELSE %] |
| 838 |
<a href="#reserves" id="holds-tab">0 Holds</a> |
| 839 |
[% END %] |
| 840 |
</li> |
| 800 |
|
841 |
|
| 801 |
<ul> |
842 |
[% IF Koha.Preference('ArticleRequests') %] |
| 802 |
<li> |
843 |
<li> |
| 803 |
[% IF ( issuecount ) %] |
844 |
<a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a> |
| 804 |
<a href="#checkouts">[% issuecount | html %] Checkout(s)</a> |
845 |
</li> |
| 805 |
[% ELSE %] |
846 |
[% END %] |
| 806 |
<a href="#checkouts">0 Checkouts</a> |
|
|
| 807 |
[% END %] |
| 808 |
</li> |
| 809 |
|
847 |
|
| 810 |
[% IF relatives_issues_count %] |
848 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li> |
| 811 |
<li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li> |
849 |
[% SET enrollments = patron.get_club_enrollments(1) %] |
| 812 |
[% END %] |
850 |
[% SET enrollable = patron.get_enrollable_clubs(0,1) %] |
|
|
851 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
| 852 |
<li> |
| 853 |
<a id="clubs-tab-link" href="#clubs-tab"> |
| 854 |
Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) |
| 855 |
</a> |
| 856 |
</li> |
| 857 |
[% END %] |
| 858 |
</ul> |
| 859 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
| 860 |
[% INCLUDE "checkouts-table.inc" %] |
| 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 # /IF relatives_issues_count %] |
| 884 |
|
| 885 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
| 886 |
<div id="clubs-tab"> |
| 887 |
Loading... |
| 888 |
</div> |
| 889 |
[% END %] |
| 813 |
|
890 |
|
| 814 |
<li> |
891 |
[% INCLUDE borrower_debarments.inc %] |
| 815 |
[% IF ( holds_count ) %] |
892 |
<div id="reserves"> |
| 816 |
<a href="#reserves" id="holds-tab">[% holds_count | html %] Hold(s)</a> |
893 |
[% IF ( holds_count ) %] |
| 817 |
[% ELSE %] |
894 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
| 818 |
<a href="#reserves" id="holds-tab">0 Holds</a> |
895 |
<input type="hidden" name="from" value="circ" /> |
| 819 |
[% END %] |
896 |
<table id="holds-table" style="width: 100% !Important;"> |
| 820 |
</li> |
897 |
<thead> |
|
|
898 |
<tr> |
| 899 |
<th>Hold date</th> |
| 900 |
<th>Title</th> |
| 901 |
<th>Call number</th> |
| 902 |
<th>Barcode</th> |
| 903 |
<th>Pickup at</th> |
| 904 |
<th>Expiration</th> |
| 905 |
<th>Priority</th> |
| 906 |
<th>Cancel?</th> |
| 907 |
<th>Suspend?</th> |
| 908 |
</tr> |
| 909 |
</thead> |
| 910 |
</table> |
| 911 |
<fieldset class="action"> |
| 912 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
| 913 |
</fieldset> |
| 914 |
</form> |
| 915 |
|
| 916 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
| 917 |
<fieldset class="action"> |
| 918 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 919 |
<input type="hidden" name="from" value="circ" /> |
| 920 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 921 |
<input type="submit" value="Suspend all holds" /> |
| 922 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
| 923 |
<label for="suspend_until">until</label> |
| 924 |
<input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" /> |
| 925 |
<span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> |
| 926 |
[% END %] |
| 927 |
</form> |
| 928 |
</fieldset> |
| 929 |
<fieldset class="action"> |
| 930 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 931 |
<input type="hidden" name="from" value="circ" /> |
| 932 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 933 |
<input type="hidden" name="suspend" value="0" /> |
| 934 |
<input type="submit" value="Resume all suspended holds" /> |
| 935 |
</form> |
| 936 |
</fieldset> |
| 937 |
[% END # IF SuspendHoldsIntranet %] |
| 821 |
|
938 |
|
| 822 |
[% IF Koha.Preference('ArticleRequests') %] |
939 |
[% ELSE %] |
| 823 |
<li> |
940 |
<p>Patron has nothing on hold.</p> |
| 824 |
<a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count | html %] Article requests</a> |
941 |
[% END # IF ( holds_count ) %] |
| 825 |
</li> |
942 |
</div> <!-- /#reserves --> |
| 826 |
[% END %] |
|
|
| 827 |
|
943 |
|
| 828 |
<li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count | html %] Restrictions</a></li> |
944 |
[% IF Koha.Preference('ArticleRequests') %] |
|
|
945 |
[% INCLUDE 'patron-article-requests.inc' %] |
| 946 |
[% END %] |
| 947 |
</div> <!-- /#patronlists --> |
| 948 |
</div> <!-- /.yui-g --> |
| 829 |
|
949 |
|
| 830 |
[% SET enrollments = patron.get_club_enrollments(1) %] |
950 |
[% ELSIF ( borrowernumber ) %] |
| 831 |
[% SET enrollable = patron.get_enrollable_clubs(0,1) %] |
951 |
<div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div> |
| 832 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
952 |
[% END # /IF ( patron ) %] |
| 833 |
<li> |
|
|
| 834 |
<a id="clubs-tab-link" href="#clubs-tab"> |
| 835 |
Clubs ([% enrollments.count | html %]/[% enrollable.count | html %]) |
| 836 |
</a> |
| 837 |
</li> |
| 838 |
[% END %] |
| 839 |
|
953 |
|
| 840 |
</ul> |
954 |
[% END # /IF( borrowers ) %] |
| 841 |
|
|
|
| 842 |
<!-- SUMMARY : TODAY & PREVIOUS ISSUES --> |
| 843 |
|
| 844 |
[% INCLUDE "checkouts-table.inc" %] |
| 845 |
|
| 846 |
[% IF ( relatives_issues_count ) %] |
| 847 |
<div id="relatives-issues"> |
| 848 |
<table id="relatives-issues-table"> |
| 849 |
<thead> |
| 850 |
<tr> |
| 851 |
<th scope="col">Due date (unformatted, hidden)</th> |
| 852 |
<th scope="col">Due date</th> |
| 853 |
<th scope="col">Title</th> |
| 854 |
<th scope="col">Item type</th> |
| 855 |
<th scope="col">Collection code</th> |
| 856 |
<th scope="col">Location</th> |
| 857 |
<th scope="col">Checked out on</th> |
| 858 |
<th scope="col">Checked out from</th> |
| 859 |
<th scope="col">Call no</th> |
| 860 |
<th scope="col">Charge</th> |
| 861 |
<th scope="col">Fine</th> |
| 862 |
<th scope="col">Price</th> |
| 863 |
<th scope="col">Patron</th> |
| 864 |
</tr> |
| 865 |
</thead> |
| 866 |
</table> |
| 867 |
</div> |
| 868 |
[% END %] |
| 869 |
|
955 |
|
| 870 |
[% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %] |
956 |
[% IF Koha.Preference('CircSidebar') %] |
| 871 |
<div id="clubs-tab"> |
957 |
[% UNLESS ( borrowers ) %] |
| 872 |
Loading... |
958 |
[% IF not( borrowernumber and patron ) %] |
| 873 |
</div> |
959 |
<div class="yui-b noprint"> |
| 874 |
[% END %] |
960 |
[% INCLUDE 'circ-nav.inc' %] |
| 875 |
|
961 |
</div> |
| 876 |
[% INCLUDE borrower_debarments.inc %] |
962 |
[% END %] |
| 877 |
|
963 |
[% END %] |
| 878 |
<div id="reserves"> |
|
|
| 879 |
[% IF ( holds_count ) %] |
| 880 |
<form action="/cgi-bin/koha/reserve/modrequest.pl" method="post"> |
| 881 |
<input type="hidden" name="from" value="circ" /> |
| 882 |
<table id="holds-table" style="width: 100% !Important;"> |
| 883 |
<thead> |
| 884 |
<tr> |
| 885 |
<th>Hold date</th> |
| 886 |
<th>Title</th> |
| 887 |
<th>Call number</th> |
| 888 |
<th>Barcode</th> |
| 889 |
<th>Pickup at</th> |
| 890 |
<th>Expiration</th> |
| 891 |
<th>Priority</th> |
| 892 |
<th>Cancel?</th> |
| 893 |
<th>Suspend?</th> |
| 894 |
</tr> |
| 895 |
</thead> |
| 896 |
</table> |
| 897 |
|
| 898 |
<fieldset class="action"> |
| 899 |
<input type="submit" class="cancel" name="submit" value="Cancel marked holds" /> |
| 900 |
</fieldset> |
| 901 |
</form> |
| 902 |
|
| 903 |
[% IF Koha.Preference('SuspendHoldsIntranet') %] |
| 904 |
<fieldset class="action"> |
| 905 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 906 |
<input type="hidden" name="from" value="circ" /> |
| 907 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 908 |
<input type="submit" value="Suspend all holds" /> |
| 909 |
|
| 910 |
[% IF Koha.Preference('AutoResumeSuspendedHolds') %] |
| 911 |
<label for="suspend_until">until</label> |
| 912 |
<input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker"/> |
| 913 |
<span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span> |
| 914 |
[% END %] |
| 915 |
</form> |
| 916 |
</fieldset> |
| 917 |
|
| 918 |
<fieldset class="action"> |
| 919 |
<form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> |
| 920 |
<input type="hidden" name="from" value="circ" /> |
| 921 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 922 |
<input type="hidden" name="suspend" value="0" /> |
| 923 |
<input type="submit" value="Resume all suspended holds" /> |
| 924 |
</form> |
| 925 |
</fieldset> |
| 926 |
[% END # IF SuspendHoldsIntranet %] |
| 927 |
|
| 928 |
[% ELSE %] |
| 929 |
<p>Patron has nothing on hold.</p> |
| 930 |
[% END %] |
| 931 |
</div> <!-- reservesloop --> |
| 932 |
|
| 933 |
[% IF Koha.Preference('ArticleRequests') %] |
| 934 |
[% INCLUDE 'patron-article-requests.inc' %] |
| 935 |
[% END %] |
| 936 |
|
| 937 |
[% ELSIF borrowernumber %] |
| 938 |
<div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div> |
| 939 |
[% END %] |
| 940 |
</div></div> |
| 941 |
[% END %] |
| 942 |
[% IF Koha.Preference('CircSidebar') %] |
| 943 |
[% UNLESS ( borrowers ) %] |
| 944 |
[% IF not( borrowernumber and patron ) %] |
| 945 |
<div class="yui-b noprint"> |
| 946 |
[% INCLUDE 'circ-nav.inc' %] |
| 947 |
</div> |
| 948 |
[% END %] |
| 949 |
[% END %] |
| 950 |
[% END %] |
| 951 |
</div> |
| 952 |
</div> |
| 953 |
[% UNLESS ( borrowers ) %] |
| 954 |
[% IF borrowernumber and patron %] |
| 955 |
<div class="yui-b"> |
| 956 |
[% INCLUDE 'circ-menu.inc' %] |
| 957 |
</div> |
| 958 |
[% END %] |
964 |
[% END %] |
| 959 |
[% END %] |
|
|
| 960 |
</div> |
| 961 |
<!-- Modal --> |
| 962 |
<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true"> |
| 963 |
<div class="modal-dialog"> |
| 964 |
<div class="modal-content"> |
| 965 |
<div class="modal-header"> |
| 966 |
<h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3> |
| 967 |
</div> |
| 968 |
|
965 |
|
| 969 |
<div class="modal-body"> |
966 |
</div> <!-- /.yui-b --> |
| 970 |
<p>You have already submitted a barcode, please wait for the checkout to process...</p> |
967 |
</div> <!-- /#yui-main --> |
| 971 |
</div> |
968 |
|
| 972 |
</div> |
969 |
[% UNLESS ( borrowers ) %] |
| 973 |
</div> |
970 |
[% IF borrowernumber and patron %] |
| 974 |
</div> |
971 |
<div class="yui-b"> |
|
|
972 |
[% INCLUDE 'circ-menu.inc' %] |
| 973 |
</div> |
| 974 |
[% END %] |
| 975 |
[% END %] |
| 976 |
</div> <!-- /.yui-bd --> |
| 977 |
|
| 978 |
<!-- Modal --> |
| 979 |
<div id="barcodeSubmittedModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="barcodeSubmittedModalLabel" aria-hidden="true"> |
| 980 |
<div class="modal-dialog"> |
| 981 |
<div class="modal-content"> |
| 982 |
<div class="modal-header"> |
| 983 |
<h3 id="barcodeSubmittedModalLabel">Barcode submitted</h3> |
| 984 |
</div> |
| 985 |
<div class="modal-body"> |
| 986 |
<p>You have already submitted a barcode, please wait for the checkout to process...</p> |
| 987 |
</div> |
| 988 |
</div> <!-- /.modal-content --> |
| 989 |
</div> <!-- /.modal-dialog --> |
| 990 |
</div> <!-- /#barcodeSubmittedModal --> |
| 975 |
|
991 |
|
| 976 |
[% MACRO jsinclude BLOCK %] |
992 |
[% MACRO jsinclude BLOCK %] |
| 977 |
[% INCLUDE 'strings.inc' %] |
993 |
[% INCLUDE 'strings.inc' %] |
|
Lines 986-992
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 986 |
[% Asset.js("js/checkouts.js") | $raw %] |
1002 |
[% Asset.js("js/checkouts.js") | $raw %] |
| 987 |
[% Asset.js("js/holds.js") | $raw %] |
1003 |
[% Asset.js("js/holds.js") | $raw %] |
| 988 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
1004 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
| 989 |
<script type="text/javascript"> |
1005 |
<script> |
| 990 |
/* Set some variable needed in circulation.js */ |
1006 |
/* Set some variable needed in circulation.js */ |
| 991 |
var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning."); |
1007 |
var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning."); |
| 992 |
var interface = "[% interface | html %]"; |
1008 |
var interface = "[% interface | html %]"; |
|
Lines 994-1001
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 994 |
var borrowernumber = "[% patron.borrowernumber | html %]"; |
1010 |
var borrowernumber = "[% patron.borrowernumber | html %]"; |
| 995 |
var branchcode = "[% branch | html %]"; |
1011 |
var branchcode = "[% branch | html %]"; |
| 996 |
var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]"; |
1012 |
var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]"; |
| 997 |
var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %]; |
1013 |
var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride')) ? 1 : 0 | html %]; |
| 998 |
var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %]; |
1014 |
var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions) ? 1 : 0 | html %]; |
| 999 |
var script = "circulation"; |
1015 |
var script = "circulation"; |
| 1000 |
var relatives_borrowernumbers = new Array(); |
1016 |
var relatives_borrowernumbers = new Array(); |
| 1001 |
[% FOREACH b IN relatives_borrowernumbers %] |
1017 |
[% FOREACH b IN relatives_borrowernumbers %] |
|
Lines 1005-1040
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 1005 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
1021 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
| 1006 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
1022 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
| 1007 |
|
1023 |
|
| 1008 |
columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %] |
1024 |
columns_settings = [% ColumnsSettings.GetColumns('circ', 'circulation', 'issues-table', 'json') | $raw %] |
| 1009 |
|
1025 |
|
| 1010 |
[% IF borrowernumber and patron %] |
1026 |
[% IF borrowernumber and patron %] |
| 1011 |
if($.cookie("holdfor") != [% patron.borrowernumber | html %]){ |
1027 |
if ($.cookie("holdfor") != [% patron.borrowernumber | html %]) { |
| 1012 |
$.removeCookie("holdfor", { path: '/' }); |
1028 |
$.removeCookie("holdfor", { path: '/' }); |
| 1013 |
} |
1029 |
} |
| 1014 |
[% ELSE %] |
1030 |
[% ELSE %] |
| 1015 |
$.removeCookie("holdfor", { path: '/' }); |
1031 |
$.removeCookie("holdfor", { path: '/' }); |
| 1016 |
[% END %] |
1032 |
[% END %] |
| 1017 |
|
1033 |
|
| 1018 |
[% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %] |
1034 |
[% UNLESS(patron.borrowernumber) %] |
|
|
1035 |
[% UNLESS(borrowers) %] |
| 1036 |
window.onload = function() { $('#findborrower').focus(); }; |
| 1037 |
[% END %] |
| 1038 |
[% END %] |
| 1019 |
|
1039 |
|
| 1020 |
// On-site checkout |
1040 |
// On-site checkout |
| 1021 |
function toggle_onsite_checkout(){ |
1041 |
function toggle_onsite_checkout() { |
| 1022 |
if ( $("#onsite_checkout").prop('checked') ) { |
1042 |
if ($("#onsite_checkout").prop('checked')) { |
| 1023 |
$("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]") |
1043 |
$("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1 %]"); |
| 1024 |
[% IF !Koha.Preference('SpecifyDueDate') %] |
1044 |
[% IF !Koha.Preference('SpecifyDueDate') %] |
| 1025 |
$("#duedatespec").datetimepicker('destroy'); |
1045 |
$("#duedatespec").datetimepicker('destroy'); |
| 1026 |
[% END %] |
1046 |
[% END %] |
| 1027 |
} else { |
1047 |
} else { |
| 1028 |
$("#duedatespec").datetimepicker({ |
1048 |
$("#duedatespec").datetimepicker({ |
| 1029 |
onClose: function(dateText, inst) { |
1049 |
onClose: function(dateText, inst) { |
| 1030 |
if (validate_date(dateText, inst) ) { |
1050 |
if (validate_date(dateText, inst)) { |
| 1031 |
$("#barcode").focus(); |
1051 |
$("#barcode").focus(); |
| 1032 |
} |
1052 |
} |
| 1033 |
}, |
1053 |
}, |
| 1034 |
hour: 23, |
1054 |
hour: 23, |
| 1035 |
minute: 59 |
1055 |
minute: 59 |
| 1036 |
}).on("change", function(e, value) { |
1056 |
}).on("change", function(e, value) { |
| 1037 |
if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");} |
1057 |
if (!is_valid_date($(this).val())) { $(this).val(""); } |
| 1038 |
}); |
1058 |
}); |
| 1039 |
} |
1059 |
} |
| 1040 |
} |
1060 |
} |
|
Lines 1043-1074
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 1043 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
1063 |
var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top'); |
| 1044 |
} |
1064 |
} |
| 1045 |
$(document).ready(function() { |
1065 |
$(document).ready(function() { |
| 1046 |
$('#mainform').on('submit',function() { |
1066 |
$('#mainform').on('submit', function() { |
| 1047 |
if ($("#barcode") && $("#barcode").val()) { |
1067 |
if ($("#barcode") && $("#barcode").val()) { |
| 1048 |
$('#barcode').on('keypress',function(event) { |
1068 |
$('#barcode').on('keypress', function(event) { |
| 1049 |
$('#barcodeSubmittedModal').modal(); |
1069 |
$('#barcodeSubmittedModal').modal(); |
| 1050 |
event.preventDefault(); } |
1070 |
event.preventDefault(); |
| 1051 |
); |
1071 |
}); |
| 1052 |
} |
1072 |
} |
| 1053 |
}); |
1073 |
}); |
| 1054 |
|
1074 |
|
| 1055 |
if ( $('#clubs-tab').length ) { |
1075 |
if ($('#clubs-tab').length) { |
| 1056 |
$('#clubs-tab-link').on('click', function() { |
1076 |
$('#clubs-tab-link').on('click', function() { |
| 1057 |
$('#clubs-tab').text(_("Loading...")); |
1077 |
$('#clubs-tab').text(_("Loading...")); |
| 1058 |
$('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]'); |
1078 |
$('#clubs-tab').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]'); |
| 1059 |
}); |
1079 |
}); |
| 1060 |
} |
1080 |
} |
| 1061 |
|
1081 |
|
| 1062 |
[% IF !( CircAutoPrintQuickSlip == 'clear' ) %] |
1082 |
[% IF !(CircAutoPrintQuickSlip == 'clear') %] |
| 1063 |
// listen submit to trigger qslip on empty checkout |
1083 |
// listen submit to trigger qslip on empty checkout |
| 1064 |
$('#mainform').bind('submit',function() { |
1084 |
$('#mainform').bind('submit', function() { |
| 1065 |
if ($('#barcode').val() == '') { |
1085 |
if ($('#barcode').val() == '') { |
| 1066 |
return printx_window( '[% CircAutoPrintQuickSlip | html %]' ); |
1086 |
return printx_window('[% CircAutoPrintQuickSlip | html %]'); |
| 1067 |
} |
1087 |
} |
| 1068 |
}); |
1088 |
}); |
| 1069 |
[% END %] |
1089 |
[% END %] |
| 1070 |
toggle_onsite_checkout(); |
1090 |
toggle_onsite_checkout(); |
| 1071 |
$("#onsite_checkout").click(function(){ |
1091 |
$("#onsite_checkout").click(function() { |
| 1072 |
toggle_onsite_checkout(); |
1092 |
toggle_onsite_checkout(); |
| 1073 |
}); |
1093 |
}); |
| 1074 |
|
1094 |
|
|
Lines 1089-1104
No patron matched <span class="ex">[% message | html %]</span>
Link Here
|
| 1089 |
} |
1109 |
} |
| 1090 |
[% END %] |
1110 |
[% END %] |
| 1091 |
|
1111 |
|
| 1092 |
$("#override_high_holds_tmp").on( 'change', function() { |
1112 |
$("#override_high_holds_tmp").on('change', function() { |
| 1093 |
if ( this.checked ) { |
1113 |
if (this.checked) { |
| 1094 |
$("input[name=duedatespec]:hidden").val(''); |
1114 |
$("input[name=duedatespec]:hidden").val(''); |
| 1095 |
} |
1115 |
} |
| 1096 |
}); |
1116 |
}); |
| 1097 |
[% END %] |
1117 |
[% END %] |
| 1098 |
}); |
1118 |
}); |
|
|
1119 |
|
| 1099 |
</script> |
1120 |
</script> |
| 1100 |
[% INCLUDE 'str/members-menu.inc' %] |
1121 |
[% INCLUDE 'str/members-menu.inc' %] |
| 1101 |
[% Asset.js("js/members-menu.js") | $raw %] |
1122 |
[% Asset.js("js/members-menu.js") | $raw %] |
| 1102 |
[% END %] |
1123 |
[% END # /jsinclude %] |
| 1103 |
|
|
|
| 1104 |
[% INCLUDE 'intranet-bottom.inc' %] |
1124 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 1105 |
- |
|
|