8 [% USE AuthorisedValues %]
9 [% USE ColumnsSettings %]
10 [% SET footerjs = 1 %]
11 [% BLOCK display_bormessagepref %]
12 [% IF ( bormessagepref ) %]
13 <li>Patron notification:
14 [% FOREACH mtt IN bormessagepref.keys %]
15 [%~ IF ( mtt == 'email' ) %] Email[% END ~%]
16 [%~ IF ( mtt == 'phone' ) %] Phone[% END ~%]
17 [%~ IF ( mtt == 'sms' ) %] SMS[% END ~%]
18 [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
22 <li>Patron is not notified.</li>
26 [% BLOCK display_holdpatron_address %]
27 [% IF Koha.Preference( 'AddressFormat' ) %]
28 [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
30 [% INCLUDE 'member-display-address-style-us.inc' %]
34 [% INCLUDE 'doc-head-open.inc' %]
35 <title>Koha › Circulation › Check in [% title | html %]</title>
36 [% INCLUDE 'doc-head-close.inc' %]
39 <body id="circ_returns" class="circ">
40 <span class="audio-alert-success"></span>
42 [% INCLUDE 'header.inc' %]
43 [% INCLUDE 'checkin-search.inc' %]
45 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Check in</div>
47 <div class="main container-fluid">
49 <div class="col-sm-12">
53 [% IF Koha.Preference('CircSidebar') %]
54 <div class="col-sm-10 col-sm-push-2">
56 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
59 [% IF hold_auto_filled %]
60 <div class="dialog alert hold-auto-filled">
61 [% IF ( reservenotes ) %]
62 <h4>Notes: [% reservenotes | html %]</h4>
64 <h3>Hold filled for:</h3>
66 [% INCLUDE 'patron-title.inc' patron=patron %]
67 <span class="patron-category"> - [% patron.category.description | html %]</span>
70 [% INCLUDE display_holdpatron_address %]
72 [% IF ( patron.phone ) %]
73 <li>[% patron.phone | html %]</li>
76 [% IF ( patron.email ) %]
78 [% IF ( transfertodo ) %]
79 [% patron.email | html %]
81 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
86 [% UNLESS ( transfertodo) %]
87 [% INCLUDE display_bormessagepref %]
90 [% IF ( patron.debarred ) %]
91 <li class="error">Patron is RESTRICTED</li>
94 [% IF ( patron.gonenoaddress ) %]
95 <li class="error">Patron's address is in doubt</li>
98 [% IF ( transfertodo ) %]
99 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
101 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
104 <a href="#" class="btn btn-default print print-slip">
105 <i class="fa fa-print"></i> Print
110 [% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
111 <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>
112 [% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
113 <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
116 [% IF additional_materials %]
117 <div class="dialog message" id="materials">Note about the accompanying materials: <br />
118 [% additional_materials | html %]
122 [% IF ( collectionItemNeedsTransferred ) %]
123 <div id="rotating-collection" class="dialog message">
124 <h3>Please transfer item to: [% Branches.GetName( collectionBranch ) | html %]</h3>
125 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
126 <p>This item is part of a rotating collection.</p>
127 <p><button type="button" class="openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&branchcode=[% collectionBranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button></p>
131 <!-- Patron has added an issue note -->
132 [% IF ( issue.note) %]
133 <div class="dialog message">
135 <p>[% issue.notedate | $KohaDates %]</p>
136 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber | uri %]"> [% title | html %]</a> [% author | html %]</p>
137 <p>[% issue.note | html %]</p>
141 <!-- Patron has fines -->
143 <div class="dialog alert">
144 <h3>Patron has outstanding fines of [% fines | html %].</h3>
145 <p><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% fineborrowernumber | uri %]">Make payment</a>.</p>
149 <!-- Patron has waiting holds -->
150 [% IF ( waiting_holds ) %]
151 <div id="awaiting-pickup" class="dialog message">
152 <h3>[% holdsfirstname | html %] [% holdssurname | html %] has [% waiting_holds | html %] hold(s) waiting for pickup.</h3>
153 <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber | uri %]">Check out to this patron</a>.</p>
157 <!-- Patron is restricted and checkin was backdated -->
158 [% IF return_date_was_overriden && Borrowers.IsDebarred( borrower ) %]
159 <div id="restricted_backdated" class="dialog message">
161 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">
162 [% patron.firstname | html %] [% patron.surname | html %]
164 is restricted. Please verify this patron should still be restricted.
170 <div id="wrong-branch-modal" class="modal fade audio-alert-action">
171 <div class="modal-dialog">
172 <div class="modal-content">
173 <form method="post" action="returns.pl" name="mainform" id="mainform">
174 <div class="modal-header">
179 <div class="modal-body">
181 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
182 [% itembarcode | html %]: [% title | html %]
191 This item must be checked in at following library:
193 [% Branches.GetName( rightbranch ) | html %]
197 <div class="modal-footer">
198 <button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
206 <!-- case of a mistake in transfer loop -->
207 [% IF WrongTransfer && !transfertodo %]
208 <div id="wrong-transfer-modal" class="modal fade audio-alert-action">
209 <div class="modal-dialog">
210 <div class="modal-content">
211 <div class="modal-header">
213 Please return item to: [% Branches.GetName( TransferWaitingAt ) | html %]
216 <div class="modal-body">
218 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
219 [% itembarcode | html %]: [% title | html %]
223 <div class="modal-footer">
225 <form method="post" action="returns.pl" name="mainform">
226 <button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
227 [% FOREACH inputloo IN inputloop %]
228 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
229 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
230 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
234 <form method="post" action="returns.pl" name="mainform">
235 <button type="submit" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% TransferWaitingAt | html %]&op=slip"><i class="fa fa-print"></i> Print transfer slip</button>
236 [% FOREACH inputloo IN inputloop %]
237 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
238 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
239 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
242 <!-- CANCEL TRANSFER -->
243 <form method="post" action="returns.pl" name="mainform">
244 <button class="btn btn-default deny" type="submit"><i class="fa fa-times"></i> Cancel transfer</button>
245 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
246 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
247 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
248 <input type="hidden" name="canceltransfer" value="1" />
249 [% FOREACH inputloo IN inputloop %]
250 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
251 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
252 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
263 <div id="hold-found1" class="modal fade audio-alert-action">
264 <div class="modal-dialog">
265 <div class="modal-content">
266 <form method="post" action="returns.pl" class="confirm">
267 <div class="modal-header">
269 Hold found (item is already waiting):
271 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
272 [% itembarcode | html %]: [% title | html %]
277 <div class="modal-body">
278 [% IF ( reservenotes ) %]
279 <h4>Notes: [% reservenotes | html %]</h4>
285 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %])
286 <span class="patron-category"> - [% patron.category.description | html %]</span>
288 [% INCLUDE display_holdpatron_address %]
289 [% IF ( patron.phone ) %]
290 <li> [% patron.phone | html %]</li>
293 [% IF ( patron.email ) %]
294 <li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
297 [% IF ( patron.debarred ) %]
298 <li class="error">Patron is RESTRICTED</li>
301 [% IF ( patron.gonenoaddress ) %]
302 <li class="error">Patron's address is in doubt</li>
306 [% IF ( transfertodo ) %]
307 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
309 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
312 [% FOREACH inputloo IN inputloop %]
313 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
314 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
315 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
318 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
319 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
320 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
321 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
322 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
323 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
324 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
325 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
327 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
328 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
331 <div class="modal-footer">
332 <input type="hidden" name="cancel_reserve" value="0" />
334 <button type="submit" class="btn btn-default approve" data-dismiss="modal">
335 <i class="fa fa-check"></i> Confirm hold
338 <input type="hidden" name="print_slip" value="0" />
339 <button type="submit" class="btn btn-default print">
340 <i class="fa fa-print"></i> Print slip and confirm
343 <button type="submit" class="btn btn-default deny cancel-hold">
344 <i class="fa fa-times"></i> Cancel hold
353 [% IF ( diffbranch ) %]
355 <div id="transfer-needed" class="dialog message audio-alert-action">
356 <h3>Hold needing transfer found</h3>
357 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
360 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.surname | html %], [% patron.firstname | html %]</a> ([% patron.cardnumber | html %]) <span class="patron-category"> - [% patron.category.description | html %]</span> </li>
361 [% INCLUDE display_holdpatron_address %]
362 [% IF ( patron.phone ) %]<li>[% patron.phone | html %]</li>[% END %]
363 [% IF ( patron.email ) %]<li>[% IF ( transfertodo ) %][% patron.email | html %][% ELSE %]<a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>[% END %]</li>[% END %]
364 [% IF ( patron.debarred ) %]<li class="error">Patron is RESTRICTED</li>[% END %]
365 [% IF ( patron.gonenoaddress ) %]<li class="error">Patron's address is in doubt</li>[% END %]
367 [% IF ( transfertodo ) %]
368 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
370 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
373 <form method="post" action="returns.pl" class="confirm">
374 <button type="submit" class="approve"><i class="fa fa-check"></i> Confirm</button>
375 <input type="hidden" name="print_slip" value="0" />
376 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
377 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
378 <button type="submit" class="print"><i class="fa fa-print"></i> Print slip and continue</button>
379 [% FOREACH inputloo IN inputloop %]
380 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
381 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
382 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
384 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
385 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
386 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
387 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
388 <input type="hidden" name="barcode" value="0" />
390 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
391 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
396 [% IF transfer || needstransfer %]
397 <div id="item-transfer-modal" class="modal fade audio-alert-action">
398 <div class="modal-dialog">
399 <div class="modal-content">
400 <form method="post" action="returns.pl" name="mainform" id="mainform">
401 <div class="modal-header">
403 Please return this item to [% Branches.GetName( returnbranch ) | html %]
406 <div class="modal-body">
408 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
409 [% itembarcode | html %]: [% title | html %]
417 <input type="hidden" name="tobranch" value="[% returnbranch | html %]" />
418 <input type="hidden" name="transferitem" value="[% itemnumber | html %]" />
419 <input type="hidden" name="barcode" value="0" />
421 <div class="modal-footer">
423 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
424 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Yes, print slip</button><button type="submit" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
426 <button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
427 <button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | html %]&&branchcode=[% returnbranch | html %]&op=slip"><i class="fa fa-print"></i> Print slip</button>
429 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
430 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
431 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
432 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
433 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
434 [% FOREACH inputloo IN inputloop %]
435 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
436 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
437 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
446 [% IF ( diffbranch ) %]
448 <h3 class="audio-alert-action">Item consigned:</h3>
450 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% title | html %]</a></caption>
453 <td>[% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]</td>
456 <form method="post" action="returns.pl"><input type="submit" value="OK" />
457 [% FOREACH inputloo IN inputloop %]
458 [% UNLESS ( inputloo.first ) %]
459 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
460 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
461 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
465 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
466 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
468 <input type="hidden" name="barcode" value="0" />
473 <!-- case of simple return no issue or transfer but with a reservation -->
474 [% IF ( reserved ) %]
476 <div id="hold-found2" class="modal fade audio-alert-action">
477 <div class="modal-dialog">
478 <div class="modal-content">
479 <form method="post" action="returns.pl" class="confirm">
480 <div class="modal-header">
484 <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">
485 [% itembarcode | html %]: [% title | html %]
489 <div class="modal-body">
490 [% IF ( reservenotes ) %]
491 <h4>Notes: [% reservenotes | html %]</h4>
495 <td>[% INCLUDE 'patron-title.inc' patron=patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]</td>
496 <span class="patron-category"> - [% patron.category.description | html %]</span>
499 [% INCLUDE display_holdpatron_address %]
501 [% IF ( patron.phone ) %]
502 <li>[% patron.phone | html %]</li>
505 [% IF ( patron.email ) %]
507 [% IF ( transfertodo ) %]
508 [% patron.email | html %]
510 <a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a>
515 [% UNLESS ( transfertodo) %]
516 [% INCLUDE display_bormessagepref %]
519 [% IF ( patron.debarred ) %]
520 <li class="error">Patron is RESTRICTED</li>
523 [% IF ( patron.gonenoaddress ) %]
524 <li class="error">Patron's address is in doubt</li>
527 [% IF ( transfertodo ) %]
528 <h4><strong>Transfer to:</strong> [% Branches.GetName( destbranch ) | html %]</h4>
530 <h4><strong>Hold at</strong> [% Branches.GetName( destbranch ) | html %]</h4>
533 <input type="hidden" name="print_slip" value="0" />
536 [% FOREACH inputloo IN inputloop %]
537 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
538 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
539 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
542 <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
543 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
544 <input type="hidden" name="biblionumber" value="[% itembiblionumber | html %]" />
545 <input type="hidden" name="reserve_id" value="[% reserve_id | html %]" />
546 <input type="hidden" name="diffBranch" value="[% destbranch | html %]" />
547 <input type="hidden" name="exemptfine" value="[% exemptfine | html %]" />
548 <input type="hidden" name="dropboxmode" value="[% dropboxmode | html %]" />
549 <input type="hidden" name="forgivemanualholdsexpire" value="[% forgivemanualholdsexpire | html %]" />
550 <input type="hidden" name="return_date_override" value="[% return_date_override | html %]" />
551 <input type="hidden" name="return_date_override_remember" value="[% return_date_override_remember | html %]" />
554 <div class="modal-footer">
555 [% IF ( transfertodo ) %]
556 <button type="submit" class="btn btn-default approve">
557 <i class="fa fa-check"></i> Confirm hold and transfer
559 <button type="submit" class="btn btn-default print">
560 <i class="fa fa-print"></i> Print slip, transfer, and confirm
563 <button type="submit" class="btn btn-default approve">
564 <i class="fa fa-check"></i> Confirm hold
566 <button type="submit" class="btn btn-default print">
567 <i class="fa fa-print"></i> Print slip and confirm
571 <button data-dismiss="modal" aria-hidden="true" type="submit" class="btn btn-default deny">
572 <i class="fa fa-times"></i> Ignore
582 [% IF ( errmsgloop ) %]
583 <div class="dialog alert audio-alert-warning">
584 <h3>Check in message</h3>
585 [% IF itembiblionumber %]
586 <p><a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber | uri %]">[% itembarcode | html %]: [% title | html %]</a></p>
588 [% FOREACH errmsgloo IN errmsgloop %]
589 [% IF ( errmsgloo.NotForLoanStatusUpdated ) %]
591 Not for loan status updated.
593 [% IF errmsgloo.NotForLoanStatusUpdated.from %]
594 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.from ) | html %].
599 [% IF errmsgloo.NotForLoanStatusUpdated.to %]
600 [% AuthorisedValues.GetByCode( 'NOT_LOAN', errmsgloo.NotForLoanStatusUpdated.to ) | html %].
606 [% IF ( errmsgloo.ItemLocationUpdated ) %]
608 Item shelving location updated.
610 [% IF errmsgloo.ItemLocationUpdated.from %]
611 [% IF errmsgloo.ItemLocationUpdated.from == '' %]
613 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) == '' %]
614 [% errmsgloo.ItemLocationUpdated.from | html %] (No description available)
616 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.from ) | html %]
622 [% IF errmsgloo.ItemLocationUpdated.to %]
623 [% IF errmsgloo.ItemLocationUpdated.to == '' %]
625 [% ELSIF AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) == '' %]
626 [% errmsgloo.ItemLocationUpdated.to | html %] (Not an authorized value)
628 [% AuthorisedValues.GetByCode( 'LOC', errmsgloo.ItemLocationUpdated.to ) | html %]
635 [% IF ( errmsgloo.badbarcode ) %]
636 <p class="problem">No item with barcode: [% errmsgloo.msg | html %]</p>
638 [% IF ( errmsgloo.ispermanent ) %]
639 <p class="problem">Please return item to: [% Branches.GetName( errmsgloo.msg ) | html %]</p>
641 [% IF ( errmsgloo.notissued ) %]
642 <p class="problem">Not checked out.</p>
644 [% IF ( errmsgloo.localuse) %]
645 <p class="problem">Local use recorded</p>
647 [% IF ( errmsgloo.waslost ) %]
648 [% IF Koha.Preference('BlockReturnOfLostItems') %]
649 <p class="problem">Item is lost, cannot be checked in.</p>
651 <p class="problem">Item was lost, now found.</p>
653 [% IF LostItemFeeRefunded and not Koha.Preference('BlockReturnOfLostItems') %]
654 <p class="problem">A refund has been applied to the borrowing patron's account.</p>
655 [% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
656 <h5>Cannot check in</h5>
657 <p><strong>NOT CHECKED IN</strong></p>
659 <p class="problem">Any lost item fees for this item will remain on the patron's account.</p>
662 [% IF ( errmsgloo.withdrawn ) %]
663 [% IF Koha.Preference('BlockReturnOfWithdrawnItems') %]
664 <h5>Cannot check in</h5>
665 <p><strong>NOT CHECKED IN</strong></p>
667 <p class="problem">Item is withdrawn.</p>
669 [% IF ( errmsgloo.debarred ) %]
670 <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber | uri %]">[% errmsgloo.debarname | html %]([% errmsgloo.debarcardnumber | html %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %].</p>
672 [% IF ( errmsgloo.prevdebarred ) %]
673 <p class="problem"><b>Reminder: </b>Patron was earlier restricted until [% errmsgloo.prevdebarred | $KohaDates %].</p>
675 [% IF ( errmsgloo.foreverdebarred ) %]
676 <p class="problem"><b>Reminder: </b>Patron has an indefinite restriction.</p>
679 [% IF errmsgloo.data_corrupted %]
680 <p class="problem">The item has not been checked in due to a configuration issue in your system. You must ask an administrator to take a look at the <a href="/cgi-bin/koha/about.pl#sysinfo">about page</a> and search for the "data problems" section</p>
686 [% IF ( checkinmsg ) %]
687 [% IF ( checkinmsgtype == 'alert' ) %]
688 <div class="dialog alert">
690 <div class="dialog message">
692 <p class="problem">[% checkinmsg | html_line_break %]</p>
696 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
697 <fieldset id="circ_returns_checkin">
700 <div class="col-sm-6">
701 <div class="hint">Enter item barcode:</div>
702 <div class="form-control-group">
703 [% IF ( exemptfine ) %]
704 <input name="barcode" id="barcode" size="14" class="focus input-warning" type="text" />
705 [% ELSIF ( dropboxmode ) %]
706 <input name="barcode" id="barcode" size="14" class="barcode focus input-warning" />
708 <input name="barcode" id="barcode" size="14" class="barcode focus" />
710 <button type="submit" class="btn btn-default">Check in</button>
711 [% FOREACH inputloo IN inputloop %]
712 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
713 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
714 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
717 <div id="show-circ-settings">
718 <a href="#"><i class="fa circ-settings-icon fa-caret-down"></i> Checkin settings</a>
721 <div class="col-sm-6">
722 [% IF ( exemptfine ) %]
723 <div id="exemptfines" class="checkin-active-setting">
725 <div id="exemptfines" class="checkin-active-setting" style="display:none;">
727 <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
730 [% IF ( forgivemanualholdsexpire ) %]
731 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
733 <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
735 <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
738 [% IF ( dropboxmode ) %]
739 <div id="dropboxmode" class="checkin-active-setting">
741 <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
743 <p><i class="fa fa-check"></i> Book drop mode. <span class="single-line">( Effective checkin date is [% dropboxdate | $KohaDates with_hours => 1 %] )</span></p>
745 [% IF ( return_date_override_remember ) %]
746 <div id="return_date_remember" class="checkin-active-setting">
748 <div id="return_date_remember" class="checkin-active-setting" style="display:none;">
750 <p><i class="fa fa-check"></i> Saved check-in date: <span id="saved_return_date" class="single-line">[% return_date_override | html %]</span></p>
755 <div class="circ-settings">
756 [% IF Koha.Preference('SpecifyReturnDate') %]
757 <div class="date-select" id="return_date_override_fields">
758 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
760 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
764 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
765 <div class="circ-setting">
766 [% IF ( return_date_override_remember ) %]
767 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
769 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
771 <label for="return_date_override_remember"> Remember due date for next check in</label>
775 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
776 <div id="forgive-overdue-fines" class="circ-setting">
777 [% IF ( exemptfine ) %]
778 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
780 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
782 <label for="exemptcheck">Forgive overdue charges</label>
784 [% END %] <!-- overduecharges -->
785 <div id="book-drop-mode" class="circ-setting">
786 [% IF ( dropboxmode ) %]
787 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
789 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
791 <label for="dropboxcheck">Book drop mode</label>
793 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
794 <div class="forgive-manual-hold-fees circ-setting">
795 [% IF ( forgivemanualholdsexpire ) %]
796 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
798 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
800 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
802 [% END %] <!-- overduecharges -->
803 </div> <!-- /.circ-settings -->
804 </fieldset> <!-- /#circ_returns_checkin -->
805 </form> <!-- /#checkin-form -->
808 <h2>Checked-in items</h2>
809 <table id="checkedintable">
810 <thead><tr><th class="ci-duedate">Due date</th><th class="ci-title">Title</th><th class="ci-author">Author</th><th class="ci-barcode">Barcode</th><th class="ci-homelibrary">Home library</th><th class="ci-holdinglibrary">Holding library</th><th class="ci-shelvinglocation">Shelving location</th><th class="ci-callnumber">Call number</th><th class="ci-dateaccessioned">Date acquired</th><th class="ci-type">Type</th><th class="ci-patron">Patron</th><th class="ci-note">Note</th></tr></thead>
812 [% FOREACH riloo IN riloop %]
814 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
815 [% IF ( riloo.return_overdue ) %]
816 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
817 [% ELSE %][% riloo.duedate | html %]
819 [% ELSE %]Not checked out
822 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
823 [% riloo.itemtitle | html %]
825 [% IF ( riloo.enumchron ) %]
827 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
830 <td class="ci-author">[% riloo.itemauthor | html %]</td>
831 <td class="ci-barcode"><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber | uri %]&itemnumber=[% riloo.itemnumber | uri %]#item[% riloo.itemnumber | uri %]">[% riloo.barcode | html %]</a></td>
832 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) | html %]</td>
833 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) | html %]</td>
834 <td class="ci-shelvinglocation"><span class="shelvingloc">[% riloo.location | html %]</span></td>
835 <td class="ci-callnumber">[% riloo.itemcallnumber | html %]</td>
836 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
837 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]</td>
838 <td class="ci-patron">[% IF ( riloo.duedate ) %]
839 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
840 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
842 [% IF riloo.borissuescount %]
843 <span class="results_summary nowrap">
844 <span class="label">Checkouts:</span>
845 <span class="number_box">
846 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
850 [% ELSE %]Not checked out[% END %]</td>
852 [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</p></span>[% END %]
853 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</p></span>[% END %]
854 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</p></span>[% END %]
861 [% IF Koha.Preference('CircSidebar') %]
862 </div> <!-- /.col-sm-10.col-sm-push-2 -->
863 <div class="col-sm-2 col-sm-pull-10">
865 [% INCLUDE 'circ-nav.inc' %]
867 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
868 </div> <!-- /.row -->
870 </div> <!-- /.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 -->
871 </div> <!-- /.row -->
875 </div> <!-- /.col-sm-12 -->
876 </div> <!-- /.row -->
878 [% MACRO jsinclude BLOCK %]
879 [% INCLUDE 'datatables.inc' %]
880 [% INCLUDE 'columns_settings.inc' %]
881 [% INCLUDE 'calendar.inc' %]
882 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
883 [% Asset.js("js/pages/circulation.js") | $raw %]
884 [% INCLUDE 'timepicker.inc' %]
887 function Dopop(link) {
888 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
889 $("#barcode").focus();
891 $(document).ready(function () {
892 $(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() {
893 $("#barcode").prop("disabled", true);
894 }).on('hidden.bs.modal', function() {
895 $("#barcode").prop("disabled", false).focus();
898 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
900 $(".print-slip").on('click', function(e) {
902 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
906 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
909 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
910 var returns_table = KohaTable("checkedintable", {
915 "dom": 'B<"clearfix">t',
916 }, columns_settings);
918 $("#return_date_override").datetimepicker({
919 onClose: function(dateText, inst) {
920 if (validate_date(dateText, inst) ) {
921 $("#barcode").focus();
928 }).on("change", function(e, value) {
929 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
931 $("#return_date_override").on("blur", function() {
932 check_valid_return_date();
934 $("#checkin-form").submit(function( event ) {
935 if ( !check_valid_return_date() ) {
936 event.preventDefault();
940 function check_valid_return_date() {
941 if ( $("#return_date_override").val() ) {
942 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
943 var now = new Date();
944 if ( !datetime || datetime > now ) {
945 alert("Invalid return date/time!");
946 $("#return_date_override").val("")
950 // Add saved date information to onscreen message, which
951 // may or may not be hidden
952 $("#saved_return_date").text( $("#return_date_override").val() );
956 $("#exemptcheck").change(function () {
957 if (this.checked == true) {
958 $("#barcode").addClass("input-warning");
959 $("#exemptfines").show();
961 $("#barcode").removeClass("input-warning");
962 $("#exemptfines").hide();
964 $("#barcode").focus();
966 $("#dropboxcheck").change(function () {
967 if (this.checked == true) {
968 $("#barcode").addClass("input-warning");
969 $("#dropboxmode").show();
971 $("#return_date_override_fields :input").prop('disabled', true);
972 $("#return_date_override").datetimepicker("disable");
974 $("#barcode").removeClass("input-warning");
975 $("#dropboxmode").hide();
977 $("#return_date_override_fields :input").prop('disabled', false);
978 $("#return_date_override").datetimepicker("enable");
980 $("#barcode").focus();
982 $("#forgivemanualholdsexpire").change(function () {
983 if (this.checked == true) {
984 $("#barcode").addClass("input-warning");
985 $("#forgivemanualholdsexpire-alert").show();
987 $("#barcode").removeClass("input-warning");
988 $("#forgivemanualholdsexpire-alert").hide();
990 $("#barcode").focus();
993 [% IF(overduecharges) %]
994 $("#barcode").focus(function () {
995 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
996 $("#barcode").addClass("input-warning");
998 $("#barcode").removeClass("input-warning");
1001 $("#barcode").blur(function () {
1002 $("#barcode").removeClass("input-warning");
1006 $('.openWin').on("click",function(e){
1007 Dopop( $(this).data("url") );
1010 $('.print').on("click",function(e){
1011 this.form.print_slip.value = 1;
1015 $('.cancel-hold').on("click",function(e){
1016 this.form.cancel_reserve.value = 1;
1020 $('.action').on("click",function(e){
1021 this.checked = false;
1022 this.form.return_date_override.value = '';
1023 this.form.return_date_override_remember.checked = false;
1024 this.form.barcode.focus();
1025 $("#return_date_remember").hide();
1029 $("#return_date_override_remember").on("change", function(){
1030 if( $(this).prop("checked" ) ){
1031 if( $("#return_date_override").val() == "" ){
1032 $("#saved_return_date").text( _("No date selected") );
1034 $("#saved_return_date").text( $("#return_date_override").val() );
1036 $("#return_date_remember").show();
1038 $("#return_date_remember").hide();
1045 [% INCLUDE 'intranet-bottom.inc' %]