7 [% INCLUDE 'doc-head-open.inc' %]
8 [% UNLESS ( multi_hold ) %]
9 <title>Koha › Circulation › Holds › Place a hold on [% title |html %]</title>
11 <title>Koha › Circulation › Holds › Confirm holds</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% Asset.css("css/datatables.css") %]
15 [% INCLUDE 'datatables.inc' %]
16 [% INCLUDE 'calendar.inc' %]
17 [% Asset.js("js/circ-patron-search-results.js") %]
18 <script type="text/javascript">
20 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
21 var patron_homebranch = "[% Branches.GetName( patron.branchcode ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
22 var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %]
23 [% itemloo.itemnumber %]: {
24 homebranch: "[% Branches.GetName( itemloo.homebranch ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]",
25 holdallowed: [% itemloo.holdallowed %]
27 [% END %][% END %][% END %]
29 var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items.");
31 $(document).ready(function() {
32 function ToggleHoldsToPlace() {
33 if ( $("#requestany").prop('checked') ) {
34 $("#holds_to_place_count").prop('disabled', false);
36 $("#holds_to_place_count").prop('disabled', true);
40 $("#requestany").on('change', function(){
44 [% IF AutoResumeSuspendedHolds %]
45 $(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1);
48 var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, {
50 "sDom": '<"top pager"ilf>t',
52 { "sType": "title-string", "aTargets" : [ "title-string" ] }
56 //Override fieldset styling for dataTables search box
57 $("div.top.pager").css("margin-left","1em");
58 $(".dataTables_filter label").css({
69 // check if we have checkitem form
70 if (document.form.checkitem){
71 for (i=0;i<document.form.checkitem.length;i++){
72 if (document.form.checkitem[i].checked == true) {
76 // for only one item, check the checkitem without consider the loop checkitem
78 if (document.form.checkitem.checked == true) {
84 if (document.form.requestany.checked == true){
88 if (count_reserv == "0"){
89 msg += (_("- Please select an item to place a hold") + "\n");
93 $('#hold-request-form').preventDoubleFormSubmit();
101 function checkMultiHold() {
102 var spans = $(".multi_hold_item");
103 if ($(spans).size() == 0) {
104 alert(MSG_NO_ITEMS_AVAILABLE);
108 var biblionumbers = "";
109 $(spans).each(function() {
110 var bibnum = $(this).attr("title");
111 biblionumbers += bibnum + "/";
114 var badSpans = $(".not_holdable");
116 $(badSpans).each(function() {
117 var bibnum = $(this).attr("title");
118 badBibs += bibnum + "/";
121 $("#multi_hold_bibs").val(biblionumbers);
122 $("#bad_bibs").val(badBibs);
124 $('#hold-request-form').preventDoubleFormSubmit();
129 $(document).ready(function() {
130 $("input.needsoverride").click(function() { // This must be before the radio button/checkbox switch logic
131 var itemnumber = this.value;
134 switch (override_items[itemnumber].holdallowed) {
135 case 0: msg = _("This item normally cannot be put on hold."); break;
136 case 1: msg = _("This item normally cannot be put on hold except for patrons from %s.").format(override_items[itemnumber].homebranch); break;
139 msg += "\n\n" + _("Place hold on this item?");
143 $("input.warning").click(function() {
144 return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") );
146 $("#requestany").click(function() {
148 $("input[name=checkitem]").each(function() {
149 $(this).prop("checked", false);
153 $("input[name=checkitem]").click(function() {
155 $("input[name=checkitem]").each(function() {
161 $("#requestany").prop("checked", false);
163 $("#requestany").prop("checked",true);
166 var prev_rank_request;
167 $("select[name=rank-request]").on("focus", function() {
168 prev_rank_request = $(this).val();
169 }).change(function() {
170 var row = $(this).parents("tr:first");
171 var value = parseInt($(this).val());
172 var after = row.parent().find("tr:nth-child("+(value+1)+")");
174 if (prev_rank_request > value) {
175 row.insertBefore(after);
177 row.insertAfter(after);
180 var next_priority = 1;
181 $("select[name=rank-request]").each(function () {
182 $(this).val(next_priority);
187 $(".clear-date").on("click",function(e){
189 var fieldID = this.id.replace("clear-date-","");
190 $("#" + fieldID).val("");
193 // Confirm cancelation of hold
194 $(".cancel-hold").on("click",function(e) {
195 return confirmDelete(MSG_CONFIRM_DELETE_HOLD);
199 [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %]
200 [% IF ( CircAutocompl ) %]
201 $( "#patron" ).autocomplete({
202 source: "/cgi-bin/koha/circ/ysearch.pl",
204 select: function( event, ui ) {
205 $( "#patron" ).val( ui.item.cardnumber );
206 $( "#holds_patronsearch" ).submit();
210 .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
211 return $( "<li></li>" )
212 .data( "ui-autocomplete-item", item )
213 .append( "<a>" + item.surname + ", " + item.firstname +
214 " (" + item.cardnumber + ") <small>" + item.address +
215 " " + item.city + " " + item.zipcode + " " +
216 item.country + "</small></a>" )
227 <body id="circ_request" class="catalog">
228 [% INCLUDE 'header.inc' %]
229 [% INCLUDE 'circ-search.inc' %]
231 [% UNLESS ( multi_hold ) %]
232 <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 %]">[% title |html %]</a> › Place a hold on [% title |html %]</div>
234 <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>
237 <div id="doc3" class="yui-t2">
243 <div class="dialog alert">
245 <strong>Cannot place hold:</strong> one or more records without items attached.
247 <strong>Cannot place hold:</strong> this record has no items attached.
252 [% IF ( messagetransfert ) %]
253 <div class="dialog message">
254 <h2>Hold found for ([% nextreservtitle %]), please transfer</h2>
255 <p>Hold placed by : <strong> [% nextreservsurname %] [% nextreservfirstname %]</strong> at : <strong> [% branchname %] </strong>, Please transfer this item.
257 <form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
258 <input type="submit" class="button" />
263 [% UNLESS ( multi_hold ) %]
264 <h1>Place a hold on [% INCLUDE 'biblio-default-view.inc' %][% title |html %]</a></h1>
266 <h1>Confirm holds</h1>
269 [% UNLESS patron OR patron.borrowernumber OR noitems %]
270 [% IF ( messageborrower ) %]
271 <div class="dialog alert"><h3>Patron not found</h3><p>No patron with this name, please, try another</p> </div>
273 <form id="holds_patronsearch" action="request.pl?biblionumber=[% biblionumber %]" method="post">
274 <fieldset id="circ_holds_selectborrower" class="brief">
276 [% UNLESS borrowers %]
277 <label for="patron">Patron: </label>
278 <div class="hint">Enter patron card number or partial name:</div>
279 <input type="text" size="40" id="patron" class="focus" name="findborrower" />
280 <input type="submit" value="Search" />
282 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
283 <input type="hidden" name="biblionumbers" value="[% biblionumbers %]"/>
285 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
289 [% INCLUDE 'circ-patron-search-results.inc' destination = "holds" %]
293 [% IF ( multi_hold ) %]
294 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
295 <input type="hidden" name="biblionumbers" value="[% biblionumbers %]"/>
298 [% ELSIF NOT noitems %]
300 [% IF ( exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
301 <div class="dialog alert">
303 [% UNLESS ( multi_hold ) %]
304 <h3>Cannot place hold</h3>
306 [% IF ( exceeded_maxreserves ) %]
307 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> can only place a maximum of [% maxreserves %] total holds.</li>
308 [% ELSIF ( exceeded_holds_per_record ) %]
309 <li><strong>Too many holds for this record: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> can only place a maximum of [% max_holds_for_record %] hold(s) on this record.</li>
310 [% ELSIF ( alreadypossession ) %]
311 <li> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> <strong>is already in possession</strong> of one item.</li>
312 [% ELSIF ( alreadyreserved ) %]
313 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> <strong>already has a hold</strong> on this item.</li>
314 [% ELSIF ( ageRestricted ) %]
315 <li><strong>Age restricted</strong></li>
316 [% ELSIF ( none_available ) %]
317 <li> <strong>No items are available</strong> to be placed on hold.</li>
318 [% ELSIF ( maxreserves ) %]
319 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> has too many holds.</li>
323 <h3>Cannot place hold on some items</h3>
324 [% IF ( exceeded_maxreserves ) %]
325 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> can place [% new_reserves_allowed %] of the requested [% new_reserves_count %] holds for a maximum of [% maxreserves %] total holds.</li>
326 [% ELSIF ( exceeded_holds_per_record ) %]
327 [% FOREACH biblioloo IN biblioloop %]
328 [% IF (biblioloo.tooManyHoldsForThisRecord) %]
329 <li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]"> [% biblioloo.title %]</a>: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> can only place a maximum of [% max_holds_for_record %] hold(s) on this record.</li>
338 [% IF ( expiry || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %]
339 <div class="dialog message"><ul>
341 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a>: <strong>Account has expired</strong></li>
344 [% IF patron.is_debarred %]
345 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]#reldebarments">[% patron.firstname %] [% patron.surname %]</a>: <strong>Patron has restrictions</strong></li>
348 [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %]
349 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a>: <strong>Patron has outstanding fines: [% amount_outstanding | format('%.2f') %]</strong></li>
352 [% IF ( diffbranch ) %]
353 <li> <strong>Pickup library is different. </strong>Patron: <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> Patron's home library: ([% Branches.GetName(patron.branchcode) %] / [% patron.branchcode %] )</li>
359 [% IF ( messageborrower ) %]
360 <div class="dialog alert"><h3>Patron not found:</h3> <p>Name or barcode not found. Please try an other </p></div>
363 <fieldset class="rows left">
364 <legend>Hold details</legend>
365 [% UNLESS ( multi_hold ) %]
366 <form action="placerequest.pl" method="post" onsubmit="return check();" name="form" id="hold-request-form">
368 <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form">
371 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
372 <input type="hidden" name="type" value="str8" />
374 [% IF ( multi_hold ) %]
375 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
376 <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers %]"/>
377 <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
378 <input type="hidden" name="request" value="any"/>
379 [% FOREACH biblioloo IN biblioloop %]
380 <input type="hidden" name="title_[% biblioloo.biblionumber %]" value="[% biblioloo.title |html %]"/>
381 <input type="hidden" name="rank_[% biblioloo.biblionumber %]" value="[% biblioloo.rank %]"/>
384 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
385 <input type="hidden" name="title" value="[% title |html %]" />
386 <input type="hidden" name="rank-request" value="[% fixedRank %]" />
389 <ol> <li><span class="label">Patron:</span>
390 [% IF ( patron.borrowernumber ) %]
391 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</a>
396 [% UNLESS ( multi_hold ) %]
398 <span class="label">Estimated priority:</span>
399 <strong>[% fixedRank %]</strong>
403 <label for="holdnotes">Notes:</label>
404 <textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
407 <label for="pickup">Pickup at:</label>
408 <select name="pickup" size="1" id="pickup">
409 [% PROCESS options_for_libraries libraries => Branches.all() %]
413 [% UNLESS ( multi_hold ) %]
414 [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
416 <label for="itemtype">Request specific item type:</label>
417 <select name="itemtype" size="1" id="itemtype">
418 <option value="">Any item type</option>
419 [%- FOREACH itemtype IN available_itemtypes %]
420 <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
427 [% IF ( reserve_in_future ) %]
429 <label for="from">Hold starts on date:</label>
430 <input name="reserve_date" id="from" size="10" class="datepickerfrom">
431 <a href="#" id="clear-date-from" class="clear-date">Clear date</a>
436 <label for="to">Hold expires on date:</label>
437 <input name="expiration_date" id="to" size="10" class="datepickerto" />
438 <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
441 [% UNLESS ( multi_hold ) %]
442 <li> <label for="requestany">Hold next available item </label>
443 [% IF force_hold_level == 'item' %]
444 <input type="checkbox" id="requestany" name="request" disabled="true" />
445 [% ELSIF force_hold_level == 'record' %]
446 <input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/>
447 <input type="hidden" name="request" value="Any"/>
449 <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
451 <input type="hidden" name="biblioitem" value="[% biblioitemnumber %]" />
452 <input type="hidden" name="alreadyreserved" value="[% alreadyreserved %]" />
455 [% IF remaining_holds_for_record > 1 %]
457 <label for="holds_to_place_count">Holds to place (count)</label>
458 <input type="number" name="holds_to_place_count" min="1" max="[% remaining_holds_for_record %]" step="1" value="1" />
461 <input type="hidden" name="holds_to_place_count" value="1" />
466 [% UNLESS ( multi_hold ) %]
467 <fieldset class="action">
468 [% IF ( patron.borrowernumber ) %]
469 [% IF ( override_required ) %]
470 <input type="submit" class="warning" value="Place hold" />
471 [% ELSIF ( none_available ) %]
472 <input type="submit" disabled="disabled" value="Place hold" />
474 <input type="submit" value="Place hold" />
478 [% FOREACH bibitemloo IN bibitemloop %]
480 [% UNLESS ( item_level_itypes ) %]
481 <li><span class="label">Item type:</span> [% bibitemloo.description %]</li>
484 [% IF ( bibitemloo.publicationyear ) %]<li><span class="label">Publication year:</span> [% bibitemloo.publicationyear %]</li>[% END %]
487 <h2 style="padding: 0 1em;">
488 Place a hold on a specific item
489 [% IF bibitemloo.force_hold_level == 'item' %]
490 <span class="error"><i>(Required)</i></span>
493 <table id="requestspecific">
497 [% IF ( item_level_itypes ) %]
501 <th>Home library</th>
502 <th>Last location</th>
505 [% IF itemdata_enumchron %]
508 <th class="title-string">Information</th>
512 [% SET selected = 0 %]
513 [% FOREACH itemloo IN bibitemloo.itemloop %]
514 [% UNLESS ( itemloo.hide ) %]
515 <tr class="[% itemloo.backgroundcolor %]">
517 [% IF itemloo.force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
519 <i class="fa fa-times fa-lg" alt="Cannot be put on hold"></i>
520 Hold must be record level
522 [% ELSIF ( itemloo.available ) %]
523 <input type="radio" name="checkitem" value="[% itemloo.itemnumber %]" />
524 [% ELSIF ( itemloo.override ) %]
525 <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber %]" />
526 <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" alt="Requires override of hold policy"/></i>
529 <i class="fa fa-times fa-lg" alt="Cannot be put on hold"></i>
530 [% IF itemloo.not_holdable %]
531 [% IF itemloo.not_holdable == 'damaged' %]
533 [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
535 [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
536 Exceeded max holds per record
537 [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
539 [% ELSIF itemloo.not_holdable == 'notReservable' %]
541 [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
542 Patron is from different library
543 [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
544 Patron already has hold for this item
546 [% itemloo.not_holdable %]
552 [% IF ( item_level_itypes ) %]
554 [% UNLESS ( noItemTypeImages ) %]
555 [% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl %]" alt="" /> <br /> [% END %]
557 [% itemloo.itypename %]
562 [% itemloo.barcode %]
565 [% Branches.GetName( itemloo.homebranch ) %]
568 [% Branches.GetName( itemloo.holdingbranch ) %]
571 [% itemloo.itemcallnumber %]
574 [% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %] [% END %]
576 [% IF itemdata_enumchron %]
578 [% itemloo.enumchron %]
582 [% IF ( itemloo.onloan ) %]
583 <span title="[% itemloo.date_due %]" class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span>
585 <span title="0000-00-00">
586 [% IF ( itemloo.transfertwhen ) %]
587 In transit from [% Branches.GetName( itemloo.transfertfrom ) %],
588 to [% Branches.GetName( itemloo.transfertto ) %], since [% itemloo.transfertwhen %]
592 [% IF ( itemloo.message ) %]
593 Unavailable (lost or missing)
596 [% IF ( itemloo.notforloan ) %]
597 Not for loan ([% itemloo.notforloanvalue %])
600 [% IF ( itemloo.reservedate ) %]
601 [% IF ( itemloo.nocancel ) %]
602 Can't be cancelled when item is in transit
604 [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
605 [% IF ( itemloo.canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedFor.borrowernumber %]">[% itemloo.ReservedFor.firstname %] [% itemloo.ReservedFor.surname %]</a>[% END %] [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% Branches.GetName( itemloo.ExpectedAtLibrary ) %]
607 [% IF ( itemloo.waitingdate ) %][% itemloo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemloo.reservedate ) %][% itemloo.reservedate %][% END %][% END %]. <a class="info" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber %]&CancelItemnumber=[% itemloo.itemnumber %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);">Cancel hold</a>
614 [% IF itemloo.item_level_holds == "N" %]
615 <br/>Item level hold not allowed from OPAC
616 [% ELSIF itemloo.item_level_holds == "F" %]
617 <br/>Item level hold forced from OPAC
619 [% IF ( itemloo.damaged ) %]
624 [% END %] <!--UNLESS item hide-->
625 [% END %] <!-- itemloop -->
628 [% IF ( bibitemloo.hiddencount ) %]
630 <p class="hiddencount"><a href="request.pl?biblionumber=[% bibitemloo.biblionumber %]&borrowernumber=[% bibitemloo.borrowernumber %]&showallitems=1">Show all items ([% bibitemloo.hiddencount %] hidden)</a></p>
632 [% END %] <!-- hiddencount -->
633 [% END %] <!-- bibitemloop -->
635 [% ELSE %]<!-- UNLESS multi_hold -->
637 <table id="requesttitles">
640 [% UNLESS ( item_level_itypes ) %]
646 [% FOREACH biblioloo IN biblioloop %]
647 [% IF ( biblioloo.warn ) %]
654 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></li>
655 [% IF ( biblioloo.publicationyear ) %]
656 <li><span class="label">Publication year:</span> [% biblioloo.publicationyear %]</li>
659 [% UNLESS ( biblioloo.warn ) %]
660 <span class="multi_hold_item" title="[% biblioloo.biblionumber %]"></span>
662 <span class="not_holdable" title="[% biblioloo.biblionumber %]"></span>
665 [% UNLESS ( item_level_itypes ) %]
667 <img src="[% biblioloo.imageurl %]" alt="[% biblioloo.itypename %]" title="[% biblioloo.itypename %]" />
670 <td>[% biblioloo.rank %]</td>
672 [% IF ( biblioloo.alreadyres ) %]
675 [% IF ( biblioloo.none_avail ) %]
680 [% IF ( biblioloo.alreadyres ) %]
681 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> <strong>already has a hold</strong> on this item </li>
683 [% IF ( biblioloo.none_avail ) %]
684 <li> <strong>No items are available</strong> to be placed on hold</li>
687 [% IF ( biblioloo.alreadyres ) %]
690 [% IF ( biblioloo.none_avail ) %]
700 [% END %]<!-- /multi_hold -->
702 <fieldset class="action">
703 [% IF ( patron AND patron.borrowernumber ) %]
704 [% IF ( override_required ) %]
705 <input type="submit" class="warning" value="Place hold" />
706 [% ELSIF ( none_available ) %]
707 <input type="submit" disabled="disabled" value="Place hold" />
709 <input type="submit" value="Place hold" />
717 [% UNLESS ( patron ) %]
718 [% IF ( reserveloop ) %]
719 <form name="T[% time %]" action="modrequest.pl" method="post">
720 [% IF ( multi_hold ) %]
721 <input type = "hidden" name="multi_hold" value="1"/>
722 <input type = "hidden" name="biblionumbers" value="[% biblionumbers %]"/>
725 <fieldset class="rows left">
726 <legend>Existing holds</legend>
728 [% FOREACH biblioloo IN biblioloop %]
730 [% IF ( biblioloo.reserveloop ) %]
732 [% IF ( multi_hold ) %]
733 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></caption>
736 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
746 <th>Pickup library</th>
748 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
749 <th><img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th>
752 [% IF SuspendHoldsIntranet %]<th> </th><!-- Suspend Holds Column Header -->[% END %]
754 [% FOREACH reserveloo IN biblioloo.reserveloop %]
757 <input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" />
758 <input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber %]" />
759 <input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber %]" />
760 <select name="rank-request">
761 [% IF ( reserveloo.found ) %]
762 [% IF ( reserveloo.intransit ) %]
763 <option value="T" selected="selected">In transit</option>
765 <option value="W" selected="selected">Waiting</option>
769 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
770 [% FOREACH optionloo IN reserveloo.optionloop %]
771 [% IF ( optionloo.selected ) %]
772 <option value="[% optionloo.num %]" selected="selected">[% optionloo.num %]</option>
774 <option value="[% optionloo.num %]">[% optionloo.num %]</option>
777 [% ELSIF !reserveloo.found %]
778 <option value="[% reserveloo.priority %]" selected="selected">[% reserveloo.priority %]</option>
780 <option value="del">del</option>
784 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
785 <td style="white-space:nowrap;">
786 <a title="Move hold up" href="request.pl?action=move&where=up&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
787 <img src="[% interface %]/[% theme %]/img/go-up.png" alt="Go up" />
790 <a title="Move hold to top" href="request.pl?action=move&where=top&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
791 <img src="[% interface %]/[% theme %]/img/go-top.png" alt="Go top" />
794 <a title="Move hold to bottom" href="request.pl?action=move&where=bottom&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
795 <img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Go bottom" />
798 <a title="Move hold down" href="request.pl?action=move&where=down&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
799 <img src="[% interface %]/[% theme %]/img/go-down.png" alt="Go down" />
805 [% INCLUDE 'patron-title.inc' patron=reserveloo.patron hide_patron_infos_if_needed=1 %]
807 <td>[% reserveloo.notes %]</td>
808 <td>[% reserveloo.date %]</td>
809 <td>[% reserveloo.expirationdate %]</td>
811 [% IF ( reserveloo.found ) %]
812 [% IF ( reserveloo.atdestination ) %]
813 [% IF ( reserveloo.found ) %]
814 Item waiting at <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" /> since [% reserveloo.waiting_date | $KohaDates %]
816 Waiting to be pulled <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
819 Item being transferred to <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
822 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
823 [% Branches.GetName(reserveloo.branchcode) %] <input type="hidden" name="pickup" value="[% reserveloo.branchcode %]" />
825 <select name="pickup">
826 [% PROCESS options_for_libraries libraries => Branches.all( selected => reserveloo.branchcode ) %]
832 [% IF ( reserveloo.found ) %]
833 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
834 [% IF ( reserveloo.barcodenumber ) %]
835 [% reserveloo.barcodenumber %]
836 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
842 [% IF ( reserveloo.item_level_hold ) %]
844 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
845 [% IF ( reserveloo.barcodenumber ) %]
846 [% reserveloo.barcodenumber %]
847 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
854 [% IF reserveloo.itemtype %]
855 <i>Next available [% ItemTypes.GetDescription( reserveloo.itemtype ) %] item</i>
857 <i>Next available</i>
859 <input type="hidden" name="itemnumber" value="" />
864 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
866 <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
867 [% IF ( reserveloo.lowestPriority ) %]
868 <img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Unset lowest priority" />
870 <img src="[% interface %]/[% theme %]/img/go-down.png" alt="Set to lowest priority" />
877 <a class="cancel-hold" title="Cancel hold" href="request.pl?action=cancel&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
878 <img src="[% interface %]/[% theme %]/img/x.png" alt="Cancel" />
882 [% IF SuspendHoldsIntranet %]
884 [% UNLESS ( reserveloo.found ) %]
885 <input type="button" value="[% IF ( reserveloo.suspend ) %]Unsuspend[% ELSE %]Suspend[% END %]" onclick="window.location.href='request.pl?action=toggleSuspend&reserve_id=[% reserveloo.reserve_id %]&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&date=[% reserveloo.date %]&suspend_until=' + $('#suspend_until_[% reserveloo.reserve_id %]').val()" />
887 [% IF AutoResumeSuspendedHolds %]
888 <label for="suspend_until_[% reserveloo.reserve_id %]">[% IF ( reserveloo.suspend ) %] on [% ELSE %] until [% END %]</label>
889 <input name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" size="10" value="[% reserveloo.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
890 <a href='#' onclick="document.getElementById('suspend_until_[% reserveloo.reserve_id %]').value='';">Clear date</a>
892 <input type="hidden" name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" value=""/>
895 <input type="hidden" name="suspend_until" value="" />
898 [% END # IF SuspendHoldsIntranet %]
902 [% END %] <!-- existing reserveloop -->
904 [% END %]<!-- /reserveloop -->
905 [% END %]<!-- /biblioloop -->
907 <fieldset class="action">
908 <input type="submit" name="submit" value="Update hold(s)" />
918 [% UNLESS ( multi_hold ) %]
919 [% INCLUDE 'biblio-view-menu.inc' %]
924 [% INCLUDE 'intranet-bottom.inc' %]