6 [% USE AuthorisedValues %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 [% SET destination = "circ" %]
10 <title>Koha › Circulation
12 › Batch check out › Issuing items to [% INCLUDE 'patron-title.inc' invert_name = 1 no_html = 1 %]
15 [% INCLUDE 'doc-head-close.inc' %]
18 <body id="circ_circulation_batch_checkouts" class="circ">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'circ-search.inc' %]
23 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
25 <a href="/cgi-bin/koha/circ/circulation.pl">Batch check out</a> › [% INCLUDE 'patron-title.inc' %]
31 <div class="main container-fluid">
34 <div class="col-sm-10 col-sm-push-2">
36 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
41 [% INCLUDE 'members-toolbar.inc' %]
44 [% IF patron and not batch_allowed %]
45 <div class="dialog alert">You are not allowed to use batch checkout for this patron</div>
46 [% ELSIF patron and noissues and not checkout_infos %]
47 <div class="dialog alert">
50 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
52 [% IF charges_guarantees %]
54 <span class="circ-hlt">Fees & Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
57 <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
61 [% ELSIF patron and not checkout_infos %]
62 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/circ/circulation.pl">
63 <fieldset id="circ_circulation_issue">
64 <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
65 <fieldset class="rows">
66 <legend>Use a file</legend>
68 <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
71 <fieldset class="rows">
72 <legend>Or list barcodes one by one</legend>
75 <label for="barcodelist">Barcode list (one barcode per line): </label>
76 <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea>
80 <input type="hidden" name="op" value="show" />
81 <fieldset class="action">
82 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
83 <input type="hidden" name="branch" value="[% branch | html %]" />
84 <input type="hidden" name="batch" value="1" />
85 <input type="submit" value="Check out" class="button" />
91 [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
92 <h3>Batch checkout confirmation [% IF patron %] for [% INCLUDE 'patron-title.inc' invert_name = 1 %] [% END %]</h3>
93 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
95 <h3>Batch checkout information [% IF patron.borrowernumber %] for [% INCLUDE 'patron-title.inc' invert_name = 1 %] |[% batch | html %]|[% END %]</h3>
97 <table id="checkout_infos">
100 [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
101 <th class="NoSort"></th>
104 <th class="anti-the">Title</th>
109 [% FOR checkout_info IN checkout_infos %]
111 [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
113 [% IF checkout_info.NEEDSCONFIRMATION %]
114 <input type="checkbox" name="barcodes" value="[% checkout_info.barcode | html %]" checked="checked" />
118 <td>[% checkout_info.barcode | html %]</td>
120 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% checkout_info.biblio.biblionumber | uri %]&type=intra"><strong>[% checkout_info.biblio.title | html %][% FOREACH subtitle IN checkout_info.biblio.subtitles %] [% subtitle.subfield | html %][% END %]</strong></a>[% IF checkout_info.biblio.author %], by [% checkout_info.biblio.author | html %][% END %][% IF ( checkout_info.item.itemnotes ) %]- <span class="circ-hlt">[% checkout_info.item.itemnotes | html %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% checkout_info.biblio.biblionumber | html %]&itemnumber=[% checkout_info.item.itemnumber | html %]#item[% checkout_info.item.itemnumber | html %]">[% checkout_info.item.barcode | html %]</a>
123 [% IF checkout_info.NEEDSCONFIRMATION %]
124 <ul class="fa-ul warn">
125 [% IF checkout_info.AGE_RESTRICTION %]
126 <li><i class="fa fa-li fa-warning"></i>Age restriction [% checkout_info.AGE_RESTRICTION | html %].</li>
128 [% IF checkout_info.RENEW_ISSUE %]
129 <li><i class="fa fa-li fa-warning"></i>This item is currently checked out to this patron. Renew?</li>
131 [% IF checkout_info.RESERVE_WAITING %]
132 <li><i class="fa fa-li fa-warning"></i>This item is waiting for another patron.</li>
134 [% IF checkout_info.RESERVED %]
135 <li><i class="fa fa-li fa-warning"></i>This item is on hold for another patron.</li>
137 [% IF checkout_info.ISSUED_TO_ANOTHER %]
138 <li><i class="fa fa-li fa-warning"></i>This item is checked out to another patron.
139 [% IF CAN_user_circulate_force_checkout %]
140 Check in and check out?
143 [% IF checkout_info.TOO_MANY %]
144 <li><i class="fa fa-li fa-warning"></i>Too many checked out.</li>
146 [% IF checkout_info.BORRNOTSAMEBRANCH %]
147 <li><i class="fa fa-li fa-warning"></i>This patron is from a different library ([% Branches.GetName( checkout_info.BORRNOTSAMEBRANCH ) | html %]).</li>
149 [% IF checkout_info.PATRON_CANT %]
150 <li><i class="fa fa-li fa-warning"></i>This patron can't check out this item per library circulation policy.</li>
152 [% IF checkout_info.NOT_FOR_LOAN_FORCING %]
153 [% IF checkout_info.itemtype_notforloan %]
154 <li><i class="fa fa-li fa-warning"></i>Item type is normally not for loan.</li>
155 [% ELSIF checkout_info.item_notforloan %]
156 [% item_notforloan_lib = AuthorisedValues.GetByCode( 'NOT_LOAN', checkout_info.item_notforloan, 0 ) %]
157 <li><i class="fa fa-li fa-warning"></i>Item is normally not for loan [% IF item_notforloan_lib %]([% item_notforloan_lib | html %])[% END %].</li>
160 [% IF checkout_info.USERBLOCKEDOVERDUE %]
161 <li><i class="fa fa-li fa-warning"></i>Patron has [% checkout_info.USERBLOCKEDOVERDUE | html %] overdue item(s).</li>
163 [% IF checkout_info.ITEM_LOST %]
164 <li><i class="fa fa-li fa-warning"></i>This item has been lost with a status of "[% checkout_info.ITEM_LOST | html %]."</li>
166 [% IF checkout_info.HIGHHOLDS %]
167 <li><i class="fa fa-li fa-warning"></i>High demand item. Loan period shortened to [% checkout_info.HIGHHOLDS.duration | html %] days (due [% checkout_info.HIGHHOLDS.returndate | html %]).</li>
169 [% IF checkout_info.HIGHHOLDS %] <!-- FIXME -->
171 $(document).ready(function() {
172 $("input[name=duedatespec]:hidden").val('[% checkout_info.HIGHHOLDS.returndate | html %]');
177 [% IF NOT checkout_info.IMPOSSIBLE && ( CAN_user_circulate_force_checkout or checkout_info.HIGHHOLDS ) %]
178 [% IF checkout_info.RESERVED || checkout_info.RESERVE_WAITING %] <!-- arbitrary choice, revert the reserve is not possible-->
179 <li><i class="fa fa-li fa-warning"></i>This item is on hold for another patron. The hold will be overridden, but not cancelled.</li>
183 [% IF checkout_info.PREVISSUE %]
184 <li>This item has previously been checked out to this patron.</li>
190 [% IF checkout_info.alert.ITEM_LOST || checkout_info.alert.OTHER_CHARGES %]
192 [% IF checkout_info.alert.ITEM_LOST %]
193 <li>This item has been lost with a status of "[% checkout_info.alert.ITEM_LOST | html %]."</li>
195 [% IF checkout_info.alert.OTHER_CHARGES %]
196 <li>The patron has unpaid charges for holds, rentals etc of [% checkout_info.alert.OTHER_CHARGES | $Price %].</li>
202 [% IF checkout_info.IMPOSSIBLE %]
203 <ul class="fa-ul error">
204 [% IF checkout_info.STATS %]
205 <li><i class="fa fa-li fa-exclamation"></i>Local use recorded.</li>
208 [% IF checkout_info.NOT_FOR_LOAN %]
209 [% IF checkout_info.itemtype_notforloan %]
210 <li><i class="fa fa-li fa-exclamation"></i>Item type not for loan.</li>
211 [% ELSIF checkout_info.item_notforloan %]
212 [% item_notforloan_lib = AuthorisedValues.GetByCode( 'NOT_LOAN', checkout_info.item_notforloan, 0 ) %]
213 <li><i class="fa fa-li fa-exclamation"></i>Item not for loan [% IF item_notforloan_lib %]([% item_notforloan_lib | html %])[% END %].</li>
216 [% IF checkout_info.WTHDRAWN %]
217 <li><i class="fa fa-li fa-exclamation"></i>Item has been withdrawn.</li>
219 [% IF checkout_info.RESTRICTED %]
220 <li><i class="fa fa-li fa-exclamation"></i>Item is restricted.</li>
222 [% IF checkout_info.GNA %]
223 <li><i class="fa fa-li fa-exclamation"></i>Patron's address is in doubt.</li>
225 [% IF checkout_info.CARD_LOST %]
226 <li><i class="fa fa-li fa-exclamation"></i>Patron's card is lost.</li>
228 [% IF checkout_info.DEBARRED %]
229 <li><i class="fa fa-li fa-exclamation"></i>Patron is restricted.</li>
231 [% IF checkout_info.NO_MORE_RENEWALS %]
232 <li><i class="fa fa-li fa-exclamation"></i>No more renewals possible.</li>
234 [% IF checkout_info.EXPIRED %]
235 <li><i class="fa fa-li fa-exclamation"></i>Patron's card is expired.</li>
237 [% IF checkout_info.ITEMNOTSAMEBRANCH %]
238 <li><i class="fa fa-li fa-exclamation"></i>This item belongs to [% Branches.GetName( checkout_info.itemhomebranch ) | html %] and cannot be checked out from this location.</li>
240 [% IF checkout_info.USERBLOCKEDREMAINING %]
241 <li><i class="fa fa-li fa-exclamation"></i>Patron has had overdue items and is blocked for [% checkout_info.USERBLOCKEDREMAINING | html %] day(s).</li>
243 [% IF checkout_info.USERBLOCKEDOVERDUE %]
244 <li><i class="fa fa-li fa-exclamation"></i>Checkouts are BLOCKED because patron has overdue items.</li>
246 [% IF checkout_info.TOO_MANY %]
247 <li><i class="fa fa-li fa-exclamation"></i>Too many checked out.</li>
249 [% IF checkout_info.UNKNOWN_BARCODE %]
250 <li><i class="fa fa-li fa-exclamation"></i>The barcode was not found [% checkout_info.barcode | html %].</li>
252 [% IF checkout_info.DEBT %]
253 <li><i class="fa fa-li fa-exclamation"></i>The patron has a debt of [% checkout_info.DEBT | $Price %].</li> <!-- Need debt_confirmed -->
258 [% IF checkout_info.issue.date_due %]
259 <li>Due on [% checkout_info.issue.date_due | $KohaDates %]</li>
267 [% IF confirmation_needed && CAN_user_circulate_force_checkout %]
269 <legend>Please confirm checkout</legend>
270 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
271 <input type="hidden" name="issueconfirmed" value="1" />
272 <input type="hidden" name="debt_confirmed" value="1" />
273 <input type="hidden" name="branch" value="[% branch | html %]" />
274 <input type="hidden" name="batch" value="1" />
275 <input type="submit" id="checkoutrenew" class="approve" value="Checkout or renew" />
281 <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
285 </div> <!-- /.col-sm-10.col-sm-push-2 -->
287 <div class="col-sm-2 col-sm-pull-10">
289 [% INCLUDE 'circ-menu.inc' %]
291 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
293 </div> <!-- /.row -->
295 [% MACRO jsinclude BLOCK %]
296 [% INCLUDE 'calendar.inc' %]
297 [% INCLUDE 'datatables.inc' %]
298 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
300 $(document).ready(function() {
301 if($('#barcodelist').length) {
302 $('#barcodelist').focus();
303 } else if ($('#checkoutrenew').length) {
304 $('#checkoutrenew').focus();
306 $("#checkout_infos").dataTable($.extend(true, {}, dataTablesDefaults, {
310 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
311 { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
317 [% INCLUDE 'str/members-menu.inc' %]
318 [% Asset.js("js/members-menu.js") | $raw %]
321 [% INCLUDE 'intranet-bottom.inc' %]