9 [% INCLUDE 'doc-head-open.inc' %]
10 [% UNLESS ( multi_hold ) %]
11 <title>Koha › Circulation › Holds › Place a hold on [% title | html %]</title>
13 <title>Koha › Circulation › Holds › Confirm holds</title>
15 [% INCLUDE 'doc-head-close.inc' %]
16 [% Asset.css("css/datatables.css") | $raw %]
19 <body id="circ_request" class="catalog">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'circ-search.inc' %]
23 [% UNLESS ( multi_hold ) %]
24 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | html %]">[% title | html %]</a> › Place a hold on [% title | html %]</div>
26 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › Confirm holds</div>
29 <div id="doc3" class="yui-t2">
35 <div class="dialog alert">
37 <strong>Cannot place hold:</strong> one or more records without items attached.
39 <strong>Cannot place hold:</strong> this record has no items attached.
44 [% IF ( messagetransfert ) %]
45 <div class="dialog message">
46 <h2>Hold found for ([% nextreservtitle | html %]), please transfer</h2>
47 <p>Hold placed by : <strong> [% nextreservsurname | html %] [% nextreservfirstname | html %]</strong> at : <strong> [% branchname | html %] </strong>, Please transfer this item.
49 <form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
50 <input type="submit" class="button" />
55 [% UNLESS ( multi_hold ) %]
56 <h1>Place a hold on [% INCLUDE 'biblio-default-view.inc' %][% title | html %]</a></h1>
58 <h1>Confirm holds</h1>
61 [% UNLESS patron OR patron.borrowernumber OR noitems %]
62 [% IF ( messageborrower ) %]
63 <div class="dialog alert"><h3>Patron not found</h3><p>No patron with this name, please, try another</p> </div>
65 <form id="holds_patronsearch" action="request.pl?biblionumber=[% biblionumber | html %]" method="post">
66 <fieldset id="circ_holds_selectborrower" class="brief">
68 [% UNLESS borrowers %]
69 <label for="patron">Patron: </label>
70 <div class="hint">Enter patron card number or partial name:</div>
71 <input type="text" size="40" id="patron" class="focus" name="findborrower" />
72 <input type="submit" value="Search" />
74 <input type="hidden" name="multi_hold" value="[% multi_hold | html %]"/>
75 <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
77 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
81 [% INCLUDE 'circ-patron-search-results.inc' destination = "holds" %]
85 [% IF ( multi_hold ) %]
86 <input type="hidden" name="multi_hold" value="[% multi_hold | html %]"/>
87 <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
90 [% ELSIF NOT noitems %]
92 [% IF ( exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
93 <div class="dialog alert">
95 [% UNLESS ( multi_hold ) %]
96 <h3>Cannot place hold</h3>
98 [% IF ( exceeded_maxreserves ) %]
99 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% maxreserves | html %] total holds.</li>
100 [% ELSIF ( exceeded_holds_per_record ) %]
101 <li><strong>Too many holds for this record: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li>
102 [% ELSIF ( alreadypossession ) %]
103 <li> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %]</a> <strong>is already in possession</strong> of one item.</li>
104 [% ELSIF ( alreadyreserved ) %]
105 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %]</a> <strong>already has a hold</strong> on this item.</li>
106 [% ELSIF ( ageRestricted ) %]
107 <li><strong>Age restricted</strong></li>
108 [% ELSIF ( none_available ) %]
109 <li> <strong>No items are available</strong> to be placed on hold.</li>
110 [% ELSIF ( maxreserves ) %]
111 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] </a> has too many holds.</li>
115 <h3>Cannot place hold on some items</h3>
116 [% IF ( exceeded_maxreserves ) %]
117 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can place [% new_reserves_allowed | html %] of the requested [% new_reserves_count | html %] holds for a maximum of [% maxreserves | html %] total holds.</li>
118 [% ELSIF ( exceeded_holds_per_record ) %]
119 [% FOREACH biblioloo IN biblioloop %]
120 [% IF (biblioloo.tooManyHoldsForThisRecord) %]
121 <li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | html %]"> [% biblioloo.title | html %]</a>: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li>
130 [% IF ( expiry || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %]
131 <div class="dialog message"><ul>
133 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %]</a>: <strong>Account has expired</strong></li>
136 [% IF patron.is_debarred %]
137 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]#reldebarments">[% patron.firstname | html %] [% patron.surname | html %]</a>: <strong>Patron has restrictions</strong></li>
140 [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %]
141 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %]</a>: <strong>Patron has outstanding fines: [% amount_outstanding | format('%.2f') %]</strong></li>
144 [% IF ( diffbranch ) %]
145 <li> <strong>Pickup library is different. </strong>Patron: <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %]</a> Patron's home library: ([% Branches.GetName(patron.branchcode) | html %] / [% patron.branchcode | html %] )</li>
151 [% IF ( messageborrower ) %]
152 <div class="dialog alert"><h3>Patron not found:</h3> <p>Name or barcode not found. Please try an other </p></div>
155 <fieldset class="rows left">
156 <legend>Hold details</legend>
157 [% UNLESS ( multi_hold ) %]
158 <form action="placerequest.pl" method="post" onsubmit="return check();" name="form" id="hold-request-form">
160 <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form">
163 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
164 <input type="hidden" name="type" value="str8" />
166 [% IF ( multi_hold ) %]
167 <input type="hidden" name="multi_hold" value="[% multi_hold | html %]"/>
168 <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/>
169 <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
170 <input type="hidden" name="request" value="any"/>
171 [% FOREACH biblioloo IN biblioloop %]
172 <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
173 <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
176 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
177 <input type="hidden" name="title" value="[% title | html %]" />
178 <input type="hidden" name="rank-request" value="[% fixedRank | html %]" />
181 <ol> <li><span class="label">Patron:</span>
182 [% IF ( patron.borrowernumber ) %]
183 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])</a>
188 [% UNLESS ( multi_hold ) %]
190 <span class="label">Estimated priority:</span>
191 <strong>[% fixedRank | html %]</strong>
195 <label for="holdnotes">Notes:</label>
196 <textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
199 <label for="pickup">Pickup at:</label>
200 <select name="pickup" size="1" id="pickup">
201 [% PROCESS options_for_libraries libraries => Branches.all({ search_params => { pickup_location => 1 } }) %]
205 [% UNLESS ( multi_hold ) %]
206 [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
208 <label for="itemtype">Request specific item type:</label>
209 <select name="itemtype" size="1" id="itemtype">
210 <option value="">Any item type</option>
211 [%- FOREACH itemtype IN available_itemtypes %]
212 <option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option>
219 [% IF ( reserve_in_future ) %]
221 <label for="from">Hold starts on date:</label>
222 <input name="reserve_date" id="from" size="10" class="datepickerfrom">
223 <a href="#" id="clear-date-from" class="clear-date">Clear date</a>
228 <label for="to">Hold expires on date:</label>
229 <input name="expiration_date" id="to" size="10" class="datepickerto" />
230 <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
233 [% UNLESS ( multi_hold ) %]
234 <li> <label for="requestany">Hold next available item </label>
235 [% IF force_hold_level == 'item' %]
236 <input type="checkbox" id="requestany" name="request" disabled="true" />
237 [% ELSIF force_hold_level == 'record' %]
238 <input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/>
239 <input type="hidden" name="request" value="Any"/>
241 <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
243 <input type="hidden" name="biblioitem" value="[% biblioitemnumber | html %]" />
244 <input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" />
247 [% IF remaining_holds_for_record > 1 %]
249 <label for="holds_to_place_count">Holds to place (count)</label>
250 <input type="number" name="holds_to_place_count" min="1" max="[% remaining_holds_for_record | html %]" step="1" value="1" />
253 <input type="hidden" name="holds_to_place_count" value="1" />
258 [% UNLESS ( multi_hold ) %]
259 <fieldset class="action">
260 [% IF ( patron.borrowernumber ) %]
261 [% IF ( override_required ) %]
262 <input type="submit" class="warning" value="Place hold" />
263 [% ELSIF ( none_available ) %]
264 <input type="submit" disabled="disabled" value="Place hold" />
266 <input type="submit" value="Place hold" />
270 [% FOREACH bibitemloo IN bibitemloop %]
272 [% UNLESS ( item_level_itypes ) %]
273 <li><span class="label">Item type:</span> [% bibitemloo.description | html %]</li>
276 [% IF ( bibitemloo.publicationyear ) %]<li><span class="label">Publication year:</span> [% bibitemloo.publicationyear | html %]</li>[% END %]
279 <h2 style="padding: 0 1em;">
280 Place a hold on a specific item
281 [% IF bibitemloo.force_hold_level == 'item' %]
282 <span class="error"><i>(Required)</i></span>
285 <table id="requestspecific">
289 [% IF ( item_level_itypes ) %]
293 <th>Home library</th>
294 <th>Last location</th>
297 [% IF itemdata_enumchron %]
300 <th class="title-string">Information</th>
304 [% SET selected = 0 %]
305 [% FOREACH itemloo IN bibitemloo.itemloop %]
306 [% UNLESS ( itemloo.hide ) %]
307 <tr class="[% itemloo.backgroundcolor | html %]">
309 [% IF itemloo.force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
311 <i class="fa fa-times fa-lg" alt="Cannot be put on hold"></i>
312 Hold must be record level
314 [% ELSIF ( itemloo.available ) %]
315 <input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" />
316 [% ELSIF ( itemloo.override ) %]
317 <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" />
318 <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" alt="Requires override of hold policy"/></i>
321 <i class="fa fa-times fa-lg" alt="Cannot be put on hold"></i>
322 [% IF itemloo.not_holdable %]
323 [% IF itemloo.not_holdable == 'damaged' %]
325 [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
327 [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
328 Exceeded max holds per record
329 [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
331 [% ELSIF itemloo.not_holdable == 'notReservable' %]
333 [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
334 Patron is from different library
335 [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
336 Patron already has hold for this item
338 [% itemloo.not_holdable | html %]
344 [% IF ( item_level_itypes ) %]
346 [% UNLESS ( noItemTypeImages ) %]
347 [% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl | html %]" alt="" /> <br /> [% END %]
349 [% itemloo.itypename | html %]
354 [% itemloo.barcode | html %]
357 [% Branches.GetName( itemloo.homebranch ) | html %]
360 [% Branches.GetName( itemloo.holdingbranch ) | html %]
363 [% itemloo.itemcallnumber | html %]
366 [% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %]
368 [% IF itemdata_enumchron %]
370 [% itemloo.enumchron | html %]
374 [% IF ( itemloo.onloan ) %]
375 <span title="[% itemloo.date_due | html %]" class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 | html %]</span>
377 <span title="0000-00-00">
378 [% IF ( itemloo.transfertwhen ) %]
379 In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %],
380 to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | html %]
384 [% IF ( itemloo.message ) %]
385 Unavailable (lost or missing)
388 [% IF ( itemloo.notforloan ) %]
389 Not for loan ([% itemloo.notforloanvalue | html %])
392 [% IF ( itemloo.reservedate ) %]
393 [% IF ( itemloo.nocancel ) %]
394 Can't be cancelled when item is in transit
396 [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
397 [% IF ( itemloo.canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedFor.borrowernumber | html %]">[% itemloo.ReservedFor.firstname | html %] [% itemloo.ReservedFor.surname | html %]</a>[% END %] [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %]
399 [% IF ( itemloo.waitingdate ) %][% itemloo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemloo.reservedate ) %][% itemloo.reservedate | html %][% END %][% END %]. <a class="info" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&CancelItemnumber=[% itemloo.itemnumber | html %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);">Cancel hold</a>
406 [% IF itemloo.item_level_holds == "N" %]
407 <br/>Item level hold not allowed from OPAC
408 [% ELSIF itemloo.item_level_holds == "F" %]
409 <br/>Item level hold forced from OPAC
411 [% IF ( itemloo.damaged ) %]
416 [% END %] <!--UNLESS item hide-->
417 [% END %] <!-- itemloop -->
420 [% IF ( bibitemloo.hiddencount ) %]
422 <p class="hiddencount"><a href="request.pl?biblionumber=[% bibitemloo.biblionumber | html %]&borrowernumber=[% bibitemloo.borrowernumber | html %]&showallitems=1">Show all items ([% bibitemloo.hiddencount | html %] hidden)</a></p>
424 [% END %] <!-- hiddencount -->
425 [% END %] <!-- bibitemloop -->
427 [% ELSE %]<!-- UNLESS multi_hold -->
429 <table id="requesttitles">
432 [% UNLESS ( item_level_itypes ) %]
438 [% FOREACH biblioloo IN biblioloop %]
439 [% IF ( biblioloo.warn ) %]
446 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | html %]">[% biblioloo.title | html %]</a></li>
447 [% IF ( biblioloo.publicationyear ) %]
448 <li><span class="label">Publication year:</span> [% biblioloo.publicationyear | html %]</li>
451 [% UNLESS ( biblioloo.warn ) %]
452 <span class="multi_hold_item" title="[% biblioloo.biblionumber | html %]"></span>
454 <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
457 [% UNLESS ( item_level_itypes ) %]
459 <img src="[% biblioloo.imageurl | html %]" alt="[% biblioloo.itypename | html %]" title="[% biblioloo.itypename | html %]" />
462 <td>[% biblioloo.rank | html %]</td>
464 [% IF ( biblioloo.alreadyres ) %]
467 [% IF ( biblioloo.none_avail ) %]
472 [% IF ( biblioloo.alreadyres ) %]
473 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %]</a> <strong>already has a hold</strong> on this item </li>
475 [% IF ( biblioloo.none_avail ) %]
476 <li> <strong>No items are available</strong> to be placed on hold</li>
479 [% IF ( biblioloo.alreadyres ) %]
482 [% IF ( biblioloo.none_avail ) %]
492 [% END %]<!-- /multi_hold -->
494 <fieldset class="action">
495 [% IF ( patron AND patron.borrowernumber ) %]
496 [% IF ( override_required ) %]
497 <input type="submit" class="warning" value="Place hold" />
498 [% ELSIF ( none_available ) %]
499 <input type="submit" disabled="disabled" value="Place hold" />
501 <input type="submit" value="Place hold" />
509 [% UNLESS ( patron ) %]
510 [% IF ( reserveloop ) %]
511 <form name="T[% time | html %]" action="modrequest.pl" method="post">
512 [% IF ( multi_hold ) %]
513 <input type = "hidden" name="multi_hold" value="1"/>
514 <input type = "hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
517 <fieldset class="rows left">
518 <legend>Existing holds</legend>
520 [% FOREACH biblioloo IN biblioloop %]
522 [% IF ( biblioloo.reserveloop ) %]
524 [% IF ( multi_hold ) %]
525 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | html %]">[% biblioloo.title | html %]</a></caption>
528 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
538 <th>Pickup library</th>
540 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
541 <th><img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th>
544 [% IF SuspendHoldsIntranet %]<th> </th><!-- Suspend Holds Column Header -->[% END %]
546 [% FOREACH reserveloo IN biblioloo.reserveloop %]
549 <input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id | html %]" />
550 <input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber | html %]" />
551 <input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber | html %]" />
552 <select name="rank-request">
553 [% IF ( reserveloo.found ) %]
554 [% IF ( reserveloo.intransit ) %]
555 <option value="T" selected="selected">In transit</option>
557 <option value="W" selected="selected">Waiting</option>
561 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
562 [% FOREACH optionloo IN reserveloo.optionloop %]
563 [% IF ( optionloo.selected ) %]
564 <option value="[% optionloo.num | html %]" selected="selected">[% optionloo.num | html %]</option>
566 <option value="[% optionloo.num | html %]">[% optionloo.num | html %]</option>
569 [% ELSIF !reserveloo.found %]
570 <option value="[% reserveloo.priority | html %]" selected="selected">[% reserveloo.priority | html %]</option>
572 <option value="del">del</option>
576 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
577 <td style="white-space:nowrap;">
578 <a title="Move hold up" href="request.pl?action=move&where=up&borrowernumber=[% reserveloo.borrowernumber | html %]&biblionumber=[% reserveloo.biblionumber | html %]&reserve_id=[% reserveloo.reserve_id | html %]&date=[% reserveloo.date | html %]">
579 <img src="[% interface | html %]/[% theme | html %]/img/go-up.png" alt="Go up" />
582 <a title="Move hold to top" href="request.pl?action=move&where=top&borrowernumber=[% reserveloo.borrowernumber | html %]&biblionumber=[% reserveloo.biblionumber | html %]&reserve_id=[% reserveloo.reserve_id | html %]&date=[% reserveloo.date | html %]">
583 <img src="[% interface | html %]/[% theme | html %]/img/go-top.png" alt="Go top" />
586 <a title="Move hold to bottom" href="request.pl?action=move&where=bottom&borrowernumber=[% reserveloo.borrowernumber | html %]&biblionumber=[% reserveloo.biblionumber | html %]&reserve_id=[% reserveloo.reserve_id | html %]&date=[% reserveloo.date | html %]">
587 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Go bottom" />
590 <a title="Move hold down" href="request.pl?action=move&where=down&borrowernumber=[% reserveloo.borrowernumber | html %]&biblionumber=[% reserveloo.biblionumber | html %]&reserve_id=[% reserveloo.reserve_id | html %]&date=[% reserveloo.date | html %]">
591 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Go down" />
597 [% INCLUDE 'patron-title.inc' patron=reserveloo.patron hide_patron_infos_if_needed=1 %]
599 <td>[% reserveloo.notes | html %]</td>
600 <td>[% reserveloo.date | html %]</td>
601 <td>[% reserveloo.expirationdate | html %]</td>
603 [% IF ( reserveloo.found ) %]
604 [% IF ( reserveloo.atdestination ) %]
605 [% IF ( reserveloo.found ) %]
606 Item waiting at <b> [% reserveloo.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode | html %]" /> since [% reserveloo.waiting_date | $KohaDates %]
608 Waiting to be pulled <input type="hidden" name="pickup" value="[% reserveloo.wbrcode | html %]" />
611 Item being transferred to <b> [% reserveloo.wbrname | html %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode | html %]" />
614 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
615 [% Branches.GetName(reserveloo.branchcode) | html %] <input type="hidden" name="pickup" value="[% reserveloo.branchcode | html %]" />
617 <select name="pickup">
618 [% PROCESS options_for_libraries libraries => Branches.all({ search_params => { pickup_location => 1 }, selected => reserveloo.branchcode }) %]
624 [% IF ( reserveloo.found ) %]
625 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber | html %]">
626 [% IF ( reserveloo.barcodenumber ) %]
627 [% reserveloo.barcodenumber | html %]
628 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber | html %]" />
634 [% IF ( reserveloo.item_level_hold ) %]
636 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber | html %]">
637 [% IF ( reserveloo.barcodenumber ) %]
638 [% reserveloo.barcodenumber | html %]
639 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber | html %]" />
646 [% IF reserveloo.itemtype %]
647 <i>Next available [% ItemTypes.GetDescription( reserveloo.itemtype ) | html %] item</i>
649 <i>Next available</i>
651 <input type="hidden" name="itemnumber" value="" />
656 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
658 <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&borrowernumber=[% reserveloo.borrowernumber | html %]&biblionumber=[% reserveloo.biblionumber | html %]&reserve_id=[% reserveloo.reserve_id | html %]&date=[% reserveloo.date | html %]">
659 [% IF ( reserveloo.lowestPriority ) %]
660 <img src="[% interface | html %]/[% theme | html %]/img/go-bottom.png" alt="Unset lowest priority" />
662 <img src="[% interface | html %]/[% theme | html %]/img/go-down.png" alt="Set to lowest priority" />
669 <a class="cancel-hold" title="Cancel hold" href="request.pl?action=cancel&borrowernumber=[% reserveloo.borrowernumber | html %]&biblionumber=[% reserveloo.biblionumber | html %]&reserve_id=[% reserveloo.reserve_id | html %]&date=[% reserveloo.date | html %]">
670 <img src="[% interface | html %]/[% theme | html %]/img/x.png" alt="Cancel" />
674 [% IF SuspendHoldsIntranet %]
676 [% UNLESS ( reserveloo.found ) %]
677 <input type="button" value="[% IF ( reserveloo.suspend ) %]Unsuspend[% ELSE %]Suspend[% END %]" onclick="window.location.href='request.pl?action=toggleSuspend&reserve_id=[% reserveloo.reserve_id | html %]&borrowernumber=[% reserveloo.borrowernumber | html %]&biblionumber=[% reserveloo.biblionumber | html %]&date=[% reserveloo.date | html %]&suspend_until=' + $('#suspend_until_[% reserveloo.reserve_id | html %]').val()" />
679 [% IF AutoResumeSuspendedHolds %]
680 <label for="suspend_until_[% reserveloo.reserve_id | html %]">[% IF ( reserveloo.suspend ) %] on [% ELSE %] until [% END %]</label>
681 <input name="suspend_until" id="suspend_until_[% reserveloo.reserve_id | html %]" size="10" value="[% reserveloo.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
682 <a href='#' onclick="document.getElementById('suspend_until_[% reserveloo.reserve_id | html %]').value='';">Clear date</a>
684 <input type="hidden" name="suspend_until" id="suspend_until_[% reserveloo.reserve_id | html %]" value=""/>
687 <input type="hidden" name="suspend_until" value="" />
690 [% END # IF SuspendHoldsIntranet %]
694 [% END %] <!-- existing reserveloop -->
696 [% END %]<!-- /reserveloop -->
697 [% END %]<!-- /biblioloop -->
699 <fieldset class="action">
700 <input type="submit" name="submit" value="Update hold(s)" />
710 [% UNLESS ( multi_hold ) %]
711 [% INCLUDE 'biblio-view-menu.inc' %]
717 [% MACRO jsinclude BLOCK %]
718 [% INCLUDE 'datatables.inc' %]
719 [% INCLUDE 'calendar.inc' %]
720 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
722 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
723 var patron_homebranch = "[% Branches.GetName( patron.branchcode ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
724 var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %]
725 [% itemloo.itemnumber | html %]: {
726 homebranch: "[% Branches.GetName( itemloo.homebranch ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]",
727 holdallowed: [% itemloo.holdallowed | html %]
729 [% END %][% END %][% END %]
731 var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items.");
733 $(document).ready(function() {
734 function ToggleHoldsToPlace() {
735 if ( $("#requestany").prop('checked') ) {
736 $("#holds_to_place_count").prop('disabled', false);
738 $("#holds_to_place_count").prop('disabled', true);
741 ToggleHoldsToPlace();
742 $("#requestany").on('change', function(){
743 ToggleHoldsToPlace();
746 [% IF AutoResumeSuspendedHolds %]
747 $(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1);
750 var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, {
752 "sDom": '<"top pager"ilf>t',
754 { "sType": "title-string", "aTargets" : [ "title-string" ] }
758 //Override fieldset styling for dataTables search box
759 $("div.top.pager").css("margin-left","1em");
760 $(".dataTables_filter label").css({
769 var count_reserv = 0;
771 // check if we have checkitem form
772 if (document.form.checkitem){
773 for (i=0;i<document.form.checkitem.length;i++){
774 if (document.form.checkitem[i].checked == true) {
778 // for only one item, check the checkitem without consider the loop checkitem
780 if (document.form.checkitem.checked == true) {
786 if (document.form.requestany.checked == true){
790 if (count_reserv == "0"){
791 msg += (_("- Please select an item to place a hold") + "\n");
795 $('#hold-request-form').preventDoubleFormSubmit();
803 function checkMultiHold() {
804 var spans = $(".multi_hold_item");
805 if ($(spans).size() == 0) {
806 alert(MSG_NO_ITEMS_AVAILABLE);
810 var biblionumbers = "";
811 $(spans).each(function() {
812 var bibnum = $(this).attr("title");
813 biblionumbers += bibnum + "/";
816 var badSpans = $(".not_holdable");
818 $(badSpans).each(function() {
819 var bibnum = $(this).attr("title");
820 badBibs += bibnum + "/";
823 $("#multi_hold_bibs").val(biblionumbers);
824 $("#bad_bibs").val(badBibs);
826 $('#hold-request-form').preventDoubleFormSubmit();
831 $(document).ready(function() {
832 $("input.needsoverride").click(function() { // This must be before the radio button/checkbox switch logic
833 var itemnumber = this.value;
836 switch (override_items[itemnumber].holdallowed) {
837 case 0: msg = _("This item normally cannot be put on hold."); break;
838 case 1: msg = _("This item normally cannot be put on hold except for patrons from %s.").format(override_items[itemnumber].homebranch); break;
841 msg += "\n\n" + _("Place hold on this item?");
845 $("input.warning").click(function() {
846 return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") );
848 $("#requestany").click(function() {
850 $("input[name=checkitem]").each(function() {
851 $(this).prop("checked", false);
855 $("input[name=checkitem]").click(function() {
857 $("input[name=checkitem]").each(function() {
863 $("#requestany").prop("checked", false);
865 $("#requestany").prop("checked",true);
868 var prev_rank_request;
869 $("select[name=rank-request]").on("focus", function() {
870 prev_rank_request = $(this).val();
871 }).change(function() {
872 var row = $(this).parents("tr:first");
873 var value = parseInt($(this).val());
874 var after = row.parent().find("tr:nth-child("+(value+1)+")");
876 if (prev_rank_request > value) {
877 row.insertBefore(after);
879 row.insertAfter(after);
882 var next_priority = 1;
883 $("select[name=rank-request]").each(function () {
884 $(this).val(next_priority);
889 $(".clear-date").on("click",function(e){
891 var fieldID = this.id.replace("clear-date-","");
892 $("#" + fieldID).val("");
895 // Confirm cancelation of hold
896 $(".cancel-hold").on("click",function(e) {
897 return confirmDelete(MSG_CONFIRM_DELETE_HOLD);
900 [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %]
901 [% IF ( CircAutocompl ) %]
902 $( "#patron" ).autocomplete({
903 source: "/cgi-bin/koha/circ/ysearch.pl",
905 select: function( event, ui ) {
906 $( "#patron" ).val( ui.item.cardnumber );
907 $( "#holds_patronsearch" ).submit();
911 .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
912 return $( "<li></li>" )
913 .data( "ui-autocomplete-item", item )
914 .append( "<a>" + item.surname + ", " + item.firstname +
915 " (" + item.cardnumber + ") <small>" + item.address +
916 " " + item.city + " " + item.zipcode + " " +
917 item.country + "</small></a>" )
927 [% INCLUDE 'intranet-bottom.inc' %]