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 <div id="exemptfines" class="dialog message" style="display:none;">
697 <p>Fines for returned items are forgiven.</p>
699 <div id="forgivemanualholdsexpire-alert" class="dialog message" style="display:none;">
700 <p>Fines are not charged for manually cancelled holds.</p>
702 <div id="dropboxmode" class="dialog message" style="display:none;">
703 <p>Book drop mode. (Effective checkin date is [% dropboxdate | $KohaDates %] ).</p>
707 <form id="checkin-form" method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off" >
708 <div class="col-sm-6">
710 <legend>Check in</legend>
711 <label for="barcode">Enter item barcode: </label>
712 [% IF ( exemptfine ) %]
713 <input name="barcode" id="barcode" size="14" class="focus alert" type="text" />
714 [% ELSIF ( dropboxmode ) %]
715 <input name="barcode" id="barcode" size="14" class="focus alert" type="text" />
717 <input name="barcode" id="barcode" size="14" class="focus" type="text" />
719 <input type="submit" class="submit" value="Submit" />
721 [% IF Koha.Preference('SpecifyReturnDate') %]
722 <div class="date-select" id="return_date_override_fields">
723 <div class="hint">Specify return date [% INCLUDE 'date-format.inc' %]: </div>
725 <input type="text" size="13" id="return_date_override" name="return_date_override" value="[% return_date_override | html %]" />
727 <label for="return_date_override_remember"> Remember for next check in:</label>
728 [% IF ( return_date_override_remember ) %]
729 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" checked="checked" />
731 <input type="checkbox" id="return_date_override_remember" name="return_date_override_remember" />
734 <input type="button" class="action" id="cleardate" value="Clear" name="cleardate" />
737 [% FOREACH inputloo IN inputloop %]
738 <input type="hidden" name="ri-[% inputloo.counter | html %]" value="[% inputloo.barcode | html %]" />
739 <input type="hidden" name="dd-[% inputloo.counter | html %]" value="[% inputloo.duedate | html %]" />
740 <input type="hidden" name="bn-[% inputloo.counter | html %]" value="[% inputloo.borrowernumber | html %]" />
746 <div class="col-sm-6">
747 <fieldset id="checkin_options">
748 <legend>Options</legend>
749 [% IF ( CAN_user_updatecharges_writeoff && overduecharges ) %]
751 [% IF ( exemptfine ) %]
752 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" checked="checked" />
754 <input type="checkbox" id="exemptcheck" name="exemptfine" value="exemptfine" />
756 <label for="exemptcheck">Forgive overdue charges</label>
758 [% END %] <!-- overduecharges -->
760 [% IF ( dropboxmode ) %]
761 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" checked="checked" />
763 <input type="checkbox" id="dropboxcheck" name="dropboxmode" value="dropboxmode" />
765 <label for="dropboxcheck">Book drop mode</label>
767 [% IF Koha.Preference('ExpireReservesMaxPickUpDelayCharge') %]
769 [% IF ( forgivemanualholdsexpire ) %]
770 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" checked="checked" />
772 <input type="checkbox" id="forgivemanualholdsexpire" name="forgivemanualholdsexpire" value="forgivemanualholdsexpire" />
774 <label for="forgivemanualholdsexpire">Forgive fees for manually expired holds</label>
776 [% END %] <!-- overduecharges -->
783 <h2>Checked-in items</h2>
784 <table id="checkedintable">
785 <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>
787 [% FOREACH riloo IN riloop %]
789 <td class="ci-duedate">[% IF ( riloo.duedate ) %]
790 [% IF ( riloo.return_overdue ) %]
791 <span class="overdue">[% riloo.duedate | html %] (overdue)</span>
792 [% ELSE %][% riloo.duedate | html %]
794 [% ELSE %]Not checked out
797 <td class="ci-title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% riloo.itembiblionumber | uri %]">
798 [% riloo.itemtitle | html %]
800 [% IF ( riloo.enumchron ) %]
802 <span class="item_enumeration" style="white-space: nowrap;">[% riloo.enumchron | html %]</span>
805 <td class="ci-author">[% riloo.itemauthor | html %]</td>
806 <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>
807 <td class="ci-homelibrary">[% Branches.GetName( riloo.homebranch ) | html %]</td>
808 <td class="ci-holdinglibrary">[% Branches.GetName( riloo.holdingbranch ) | html %]</td>
809 <td class="ci-shelvinglocation"><span class="shelvingloc">[% riloo.location | html %]</span></td>
810 <td class="ci-callnumber">[% riloo.itemcallnumber | html %]</td>
811 <td class="ci-dateaccessioned">[% riloo.dateaccessioned | $KohaDates %]</td>
812 <td class="ci-type">[% ItemTypes.GetDescription( riloo.itemtype ) | html %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) | html %]</td>
813 <td class="ci-patron">[% IF ( riloo.duedate ) %]
814 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">
815 [% riloo.patron.surname | html %], [% riloo.patron.firstname | html %] ([% riloo.patron.category.description | html %])
817 [% IF riloo.borissuescount %]
818 <span class="results_summary nowrap">
819 <span class="label">Checkouts:</span>
820 <span class="number_box">
821 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.patron.borrowernumber | uri %]">[% riloo.borissuescount | html %]</a>
825 [% ELSE %]Not checked out[% END %]</td>
827 [% IF ( riloo.patron.borrowernotes ) %]<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</p></span>[% END %]
828 [% IF ( riloo.itemnote ) %]<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</p></span>[% END %]
829 [% IF ( riloo.itemnotes_nonpublic ) %]<p><span class="circ-hlt item-note-nonpublic">[% riloo.itemnotes_nonpublic | html %]</p></span>[% END %]
836 [% IF Koha.Preference('CircSidebar') %]
837 </div> <!-- /.col-sm-10.col-sm-push-2 -->
838 <div class="col-sm-2 col-sm-pull-10">
840 [% INCLUDE 'circ-nav.inc' %]
842 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
843 </div> <!-- /.row -->
847 </div> <!-- /.col-sm-12 -->
848 </div> <!-- /.row -->
850 [% MACRO jsinclude BLOCK %]
851 [% INCLUDE 'datatables.inc' %]
852 [% INCLUDE 'columns_settings.inc' %]
853 [% INCLUDE 'calendar.inc' %]
854 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
855 [% INCLUDE 'timepicker.inc' %]
858 function Dopop(link) {
859 var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
860 $("#barcode").focus();
862 $(document).ready(function () {
863 $(".modal").modal({ backdrop: 'static' }).on('shown.bs.modal', function() {
864 $("#barcode").prop("disabled", true);
865 }).on('hidden.bs.modal', function() {
866 $("#barcode").prop("disabled", false).focus();
869 $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); });
871 $(".print-slip").on('click', function(e) {
873 Dopop('hold-transfer-slip.pl?borrowernumber=[% patron.borrowernumber | html %]&biblionumber=[% biblionumber | html %]');
877 Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber | html %]&biblionumber=[% biblionumber | html %]&itemnumber=[% itemnumber | html %]');
880 var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) | $raw %]
881 var returns_table = KohaTable("checkedintable", {
886 "dom": 'B<"clearfix">t',
887 }, columns_settings);
889 $("#return_date_override").datetimepicker({
890 onClose: function(dateText, inst) {
891 if (validate_date(dateText, inst) ) {
892 $("#barcode").focus();
899 }).on("change", function(e, value) {
900 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
902 $("#return_date_override").on("blur", function() {
903 check_valid_return_date();
905 $("#checkin-form").submit(function( event ) {
906 if ( !check_valid_return_date() ) {
907 event.preventDefault();
911 function check_valid_return_date() {
912 if ( $("#return_date_override").val() ) {
913 var datetime = DateTime_from_syspref( $("#return_date_override").val() );
914 var now = new Date();
915 if ( !datetime || datetime > now ) {
916 alert("Invalid return date/time!");
917 $("#return_date_override").val("")
924 $("#exemptcheck").change(function () {
925 if (this.checked == true) {
926 $("#barcode").addClass("alert");
927 $("#exemptfines").show();
929 $("#barcode").removeClass("alert");
930 $("#exemptfines").hide();
932 $("#barcode").focus();
934 $("#dropboxcheck").change(function () {
935 if (this.checked == true) {
936 $("#barcode").addClass("alert");
937 $("#dropboxmode").show();
939 $("#return_date_override_fields :input").prop('disabled', true);
940 $("#return_date_override").datetimepicker("disable");
942 $("#barcode").removeClass("alert");
943 $("#dropboxmode").hide();
945 $("#return_date_override_fields :input").prop('disabled', false);
946 $("#return_date_override").datetimepicker("enable");
948 $("#barcode").focus();
950 $("#forgivemanualholdsexpire").change(function () {
951 if (this.checked == true) {
952 $("#barcode").addClass("alert");
953 $("#forgivemanualholdsexpire-alert").show();
955 $("#barcode").removeClass("alert");
956 $("#forgivemanualholdsexpire-alert").hide();
958 $("#barcode").focus();
961 [% IF(overduecharges) %]
962 $("#barcode").focus(function () {
963 if (($("#exemptcheck").prop("checked") == true) || ($("#dropboxcheck").prop("checked") == true)) {
964 $("#barcode").addClass("alert");
966 $("#barcode").removeClass("alert");
969 $("#barcode").blur(function () {
970 $("#barcode").removeClass("alert");
974 $('.openWin').on("click",function(e){
975 Dopop( $(this).data("url") );
978 $('.print').on("click",function(e){
979 this.form.print_slip.value = 1;
983 $('.cancel-hold').on("click",function(e){
984 this.form.cancel_reserve.value = 1;
988 $('.action').on("click",function(e){
989 this.checked = false;
990 this.form.return_date_override.value = '';
991 this.form.return_date_override_remember.checked = false;
992 this.form.barcode.focus();
999 [% INCLUDE 'intranet-bottom.inc' %]