6 [% INCLUDE 'doc-head-open.inc' %]
7 [% UNLESS ( multi_hold ) %]
8 <title>Koha › Circulation › Holds › Place a hold on [% title |html %]</title>
10 <title>Koha › Circulation › Holds › Confirm holds</title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
14 [% INCLUDE 'datatables.inc' %]
15 [% INCLUDE 'calendar.inc' %]
16 <script type="text/javascript" src="[% interface %]/[% theme %]/js/circ-patron-search-results_[% KOHA_VERSION %].js"></script>
17 <script type="text/javascript">
19 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
20 var patron_homebranch = "[% Branches.GetName( patron.branchcode ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
21 var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %]
22 [% itemloo.itemnumber %]: {
23 homebranch: "[% Branches.GetName( itemloo.homebranch ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]",
24 holdallowed: [% itemloo.holdallowed %]
26 [% END %][% END %][% END %]
28 var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items.");
30 $(document).ready(function() {
31 function ToggleHoldsToPlace() {
32 if ( $("#requestany").prop('checked') ) {
33 $("#holds_to_place_count").prop('disabled', false);
35 $("#holds_to_place_count").prop('disabled', true);
39 $("#requestany").on('change', function(){
43 [% IF AutoResumeSuspendedHolds %]
44 $(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1);
47 var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, {
49 "sDom": '<"top pager"ilf>t',
51 { "sType": "title-string", "aTargets" : [ "title-string" ] }
55 //Override fieldset styling for dataTables search box
56 $("div.top.pager").css("margin-left","1em");
57 $(".dataTables_filter label").css({
68 // check if we have checkitem form
69 if (document.form.checkitem){
70 for (i=0;i<document.form.checkitem.length;i++){
71 if (document.form.checkitem[i].checked == true) {
75 // for only one item, check the checkitem without consider the loop checkitem
77 if (document.form.checkitem.checked == true) {
83 if (document.form.requestany.checked == true){
87 if (count_reserv == "0"){
88 msg += (_("- Please select an item to place a hold") + "\n");
92 $('#hold-request-form').preventDoubleFormSubmit();
100 function checkMultiHold() {
101 var spans = $(".multi_hold_item");
102 if ($(spans).size() == 0) {
103 alert(MSG_NO_ITEMS_AVAILABLE);
107 var biblionumbers = "";
108 $(spans).each(function() {
109 var bibnum = $(this).attr("title");
110 biblionumbers += bibnum + "/";
113 var badSpans = $(".not_holdable");
115 $(badSpans).each(function() {
116 var bibnum = $(this).attr("title");
117 badBibs += bibnum + "/";
120 $("#multi_hold_bibs").val(biblionumbers);
121 $("#bad_bibs").val(badBibs);
123 $('#hold-request-form').preventDoubleFormSubmit();
128 $(document).ready(function() {
129 $("input.needsoverride").click(function() { // This must be before the radio button/checkbox switch logic
130 var itemnumber = this.value;
133 switch (override_items[itemnumber].holdallowed) {
134 case 0: msg = _("This item normally cannot be put on hold."); break;
135 case 1: msg = _("This item normally cannot be put on hold except for patrons from %s.").format(override_items[itemnumber].homebranch); break;
138 msg += "\n\n" + _("Place hold on this item?");
142 $("input.warning").click(function() {
143 return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") );
145 $("#requestany").click(function() {
147 $("input[name=checkitem]").each(function() {
148 $(this).prop("checked", false);
152 $("input[name=checkitem]").click(function() {
154 $("input[name=checkitem]").each(function() {
160 $("#requestany").prop("checked", false);
162 $("#requestany").prop("checked",true);
165 var prev_rank_request;
166 $("select[name=rank-request]").on("focus", function() {
167 prev_rank_request = $(this).val();
168 }).change(function() {
169 var row = $(this).parents("tr:first");
170 var value = parseInt($(this).val());
171 var after = row.parent().find("tr:nth-child("+(value+1)+")");
173 if (prev_rank_request > value) {
174 row.insertBefore(after);
176 row.insertAfter(after);
179 var next_priority = 1;
180 $("select[name=rank-request]").each(function () {
181 $(this).val(next_priority);
186 $(".clear-date").on("click",function(e){
188 var fieldID = this.id.replace("clear-date-","");
189 $("#" + fieldID).val("");
192 // Confirm cancelation of hold
193 $(".cancel-hold").on("click",function(e) {
194 return confirmDelete(MSG_CONFIRM_DELETE_HOLD);
198 [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %]
199 [% IF ( CircAutocompl ) %]
200 $( "#patron" ).autocomplete({
201 source: "/cgi-bin/koha/circ/ysearch.pl",
203 select: function( event, ui ) {
204 $( "#patron" ).val( ui.item.cardnumber );
205 $( "#holds_patronsearch" ).submit();
209 .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
210 return $( "<li></li>" )
211 .data( "ui-autocomplete-item", item )
212 .append( "<a>" + item.surname + ", " + item.firstname +
213 " (" + item.cardnumber + ") <small>" + item.address +
214 " " + item.city + " " + item.zipcode + " " +
215 item.country + "</small></a>" )
226 <body id="circ_request" class="catalog">
227 [% INCLUDE 'header.inc' %]
228 [% INCLUDE 'circ-search.inc' %]
230 [% UNLESS ( multi_hold ) %]
231 <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>
233 <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>
236 <div id="doc3" class="yui-t2">
242 <div class="dialog alert">
244 <strong>Cannot place hold:</strong> one or more records without items attached.
246 <strong>Cannot place hold:</strong> this record has no items attached.
251 [% IF ( messagetransfert ) %]
252 <div class="dialog message">
253 <h2>Hold found for ([% nextreservtitle %]), please transfer</h2>
254 <p>Hold placed by : <strong> [% nextreservsurname %] [% nextreservfirstname %]</strong> at : <strong> [% branchname %] </strong>, Please transfer this item.
256 <form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
257 <input type="submit" class="button" />
262 [% UNLESS ( multi_hold ) %]
263 <h1>Place a hold on [% INCLUDE 'biblio-default-view.inc' %][% title |html %]</a></h1>
265 <h1>Confirm holds</h1>
268 [% UNLESS patron OR patron.borrowernumber OR noitems %]
269 [% IF ( messageborrower ) %]
270 <div class="dialog alert"><h3>Patron not found</h3><p>No patron with this name, please, try another</p> </div>
272 <form id="holds_patronsearch" action="request.pl?biblionumber=[% biblionumber %]" method="post">
273 <fieldset id="circ_holds_selectborrower" class="brief">
275 [% UNLESS borrowers %]
276 <label for="patron">Patron: </label>
277 <div class="hint">Enter patron card number or partial name:</div>
278 <input type="text" size="40" id="patron" class="focus" name="findborrower" />
279 <input type="submit" value="Search" />
280 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
283 [% INCLUDE 'circ-patron-search-results.inc' destination = "holds" %]
287 [% IF ( multi_hold ) %]
288 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
289 <input type="hidden" name="biblionumbers" value="[% biblionumbers %]"/>
292 [% ELSIF NOT noitems %]
294 [% IF ( exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
295 <div class="dialog alert">
297 [% UNLESS ( multi_hold ) %]
298 <h3>Cannot place hold</h3>
300 [% IF ( exceeded_maxreserves ) %]
301 <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>
302 [% ELSIF ( exceeded_holds_per_record ) %]
303 <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>
304 [% ELSIF ( alreadypossession ) %]
305 <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>
306 [% ELSIF ( alreadyreserved ) %]
307 <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>
308 [% ELSIF ( ageRestricted ) %]
309 <li><strong>Age restricted</strong></li>
310 [% ELSIF ( none_available ) %]
311 <li> <strong>No items are available</strong> to be placed on hold.</li>
312 [% ELSIF ( maxreserves ) %]
313 <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>
317 <h3>Cannot place hold on some items</h3>
318 [% IF ( exceeded_maxreserves ) %]
319 <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>
320 [% ELSIF ( exceeded_holds_per_record ) %]
321 [% FOREACH biblioloo IN biblioloop %]
322 [% IF (biblioloo.tooManyHoldsForThisRecord) %]
323 <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>
332 [% IF ( expiry || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %]
333 <div class="dialog message"><ul>
335 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron,surname %]</a>: <strong>Account has expired</strong></li>
338 [% IF patron.is_debarred %]
339 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]#reldebarments">[% patron.firstname %] [% patron.surname %]</a>: <strong>Patron has restrictions</strong></li>
342 [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %]
343 <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>
346 [% IF ( diffbranch ) %]
347 <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>
353 [% IF ( messageborrower ) %]
354 <div class="dialog alert"><h3>Patron not found:</h3> <p>Name or barcode not found. Please try an other </p></div>
357 <fieldset class="rows left">
358 <legend>Hold details</legend>
359 [% UNLESS ( multi_hold ) %]
360 <form action="placerequest.pl" method="post" onsubmit="return check();" name="form" id="hold-request-form">
362 <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form">
365 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
366 <input type="hidden" name="type" value="str8" />
368 [% IF ( multi_hold ) %]
369 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
370 <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers %]"/>
371 <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
372 <input type="hidden" name="request" value="any"/>
373 [% FOREACH biblioloo IN biblioloop %]
374 <input type="hidden" name="title_[% biblioloo.biblionumber %]" value="[% biblioloo.title |html %]"/>
375 <input type="hidden" name="rank_[% biblioloo.biblionumber %]" value="[% biblioloo.rank %]"/>
378 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
379 <input type="hidden" name="title" value="[% title |html %]" />
380 <input type="hidden" name="rank-request" value="[% fixedRank %]" />
383 <ol> <li><span class="label">Patron:</span>
384 [% IF ( patron.borrowernumber ) %]
385 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] ([% cardnumber %])</a>
390 [% UNLESS ( multi_hold ) %]
392 <span class="label">Estimated priority:</span>
393 <strong>[% fixedRank %]</strong>
397 <label for="holdnotes">Notes:</label>
398 <textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
401 <label for="pickup">Pickup at:</label>
402 <select name="pickup" size="1" id="pickup">
403 [% PROCESS options_for_libraries libraries => Branches.all() %]
407 [% UNLESS ( multi_hold ) %]
408 [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
410 <label for="itemtype">Request specific item type:</label>
411 <select name="itemtype" size="1" id="itemtype">
412 <option value="">Any item type</option>
413 [%- FOREACH itemtype IN available_itemtypes %]
414 <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
421 [% IF ( reserve_in_future ) %]
423 <label for="from">Hold starts on date:</label>
424 <input name="reserve_date" id="from" size="10" class="datepickerfrom">
425 <a href="#" id="clear-date-from" class="clear-date">Clear date</a>
430 <label for="to">Hold expires on date:</label>
431 <input name="expiration_date" id="to" size="10" class="datepickerto" />
432 <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
435 [% UNLESS ( multi_hold ) %]
436 <li> <label for="requestany">Hold next available item </label>
437 [% IF force_hold_level == 'item' %]
438 <input type="checkbox" id="requestany" name="request" disabled="true" />
439 [% ELSIF force_hold_level == 'record' %]
440 <input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/>
441 <input type="hidden" name="request" value="Any"/>
443 <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
445 <input type="hidden" name="biblioitem" value="[% biblioitemnumber %]" />
446 <input type="hidden" name="alreadyreserved" value="[% alreadyreserved %]" />
449 [% IF remaining_holds_for_record > 1 %]
451 <label for="holds_to_place_count">Holds to place (count)</label>
452 <input type="number" name="holds_to_place_count" min="1" max="[% remaining_holds_for_record %]" step="1" value="1" />
455 <input type="hidden" name="holds_to_place_count" value="1" />
460 [% UNLESS ( multi_hold ) %]
461 <fieldset class="action">
462 [% IF ( patron.borrowernumber ) %]
463 [% IF ( override_required ) %]
464 <input type="submit" class="warning" value="Place hold" />
465 [% ELSIF ( none_available ) %]
466 <input type="submit" disabled="disabled" value="Place hold" />
468 <input type="submit" value="Place hold" />
472 [% FOREACH bibitemloo IN bibitemloop %]
474 [% UNLESS ( item_level_itypes ) %]
475 <li><span class="label">Item type:</span> [% bibitemloo.description %]</li>
478 [% IF ( bibitemloo.publicationyear ) %]<li><span class="label">Publication year:</span> [% bibitemloo.publicationyear %]</li>[% END %]
481 <h2 style="padding: 0 1em;">
482 Place a hold on a specific item
483 [% IF bibitemloo.force_hold_level == 'item' %]
484 <span class="error"><i>(Required)</i></span>
487 <table id="requestspecific">
491 [% IF ( item_level_itypes ) %]
495 <th>Home library</th>
496 <th>Last location</th>
499 [% IF itemdata_enumchron %]
502 <th class="title-string">Information</th>
506 [% SET selected = 0 %]
507 [% FOREACH itemloo IN bibitemloo.itemloop %]
508 [% UNLESS ( itemloo.hide ) %]
509 <tr class="[% itemloo.backgroundcolor %]">
511 [% IF itemloo.force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
513 <i class="fa fa-times fa-lg" alt="Cannot be put on hold"></i>
514 Hold must be record level
516 [% ELSIF ( itemloo.available ) %]
517 <input type="radio" name="checkitem" value="[% itemloo.itemnumber %]" />
518 [% ELSIF ( itemloo.override ) %]
519 <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber %]" />
520 <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" alt="Requires override of hold policy"/></i>
523 <i class="fa fa-times fa-lg" alt="Cannot be put on hold"></i>
524 [% IF itemloo.not_holdable %]
525 [% IF itemloo.not_holdable == 'damaged' %]
527 [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
529 [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
530 Exceeded max holds per record
531 [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
533 [% ELSIF itemloo.not_holdable == 'notReservable' %]
535 [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
536 Patron is from different library
537 [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
538 Patron already has hold for this item
540 [% itemloo.not_holdable %]
546 [% IF ( item_level_itypes ) %]
548 [% UNLESS ( noItemTypeImages ) %]
549 [% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl %]" alt="" /> <br /> [% END %]
551 [% itemloo.itypename %]
556 [% itemloo.barcode %]
559 [% Branches.GetName( itemloo.homebranch ) %]
562 [% Branches.GetName( itemloo.holdingbranch ) %]
565 [% itemloo.itemcallnumber %]
568 [% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %] [% END %]
570 [% IF itemdata_enumchron %]
572 [% itemloo.enumchron %]
576 [% IF ( itemloo.onloan ) %]
577 <span title="[% itemloo.date_due %]" class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span>
579 <span title="0000-00-00">
580 [% IF ( itemloo.transfertwhen ) %]
581 In transit from [% Branches.GetName( itemloo.transfertfrom ) %],
582 to [% Branches.GetName( itemloo.transfertto ) %], since [% itemloo.transfertwhen %]
586 [% IF ( itemloo.message ) %]
587 Unavailable (lost or missing)
590 [% IF ( itemloo.notforloan ) %]
591 Not for loan ([% itemloo.notforloanvalue %])
594 [% IF ( itemloo.reservedate ) %]
595 [% IF ( itemloo.nocancel ) %]
596 Can't be cancelled when item is in transit
598 [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
599 [% 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 ) %]
601 [% 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>
608 [% IF itemloo.item_level_holds == "N" %]
609 <br/>Item level hold not allowed from OPAC
610 [% ELSIF itemloo.item_level_holds == "F" %]
611 <br/>Item level hold forced from OPAC
613 [% IF ( itemloo.damaged ) %]
618 [% END %] <!--UNLESS item hide-->
619 [% END %] <!-- itemloop -->
622 [% IF ( bibitemloo.hiddencount ) %]
624 <p class="hiddencount"><a href="request.pl?biblionumber=[% bibitemloo.biblionumber %]&borrowernumber=[% bibitemloo.borrowernumber %]&showallitems=1">Show all items ([% bibitemloo.hiddencount %] hidden)</a></p>
626 [% END %] <!-- hiddencount -->
627 [% END %] <!-- bibitemloop -->
629 [% ELSE %]<!-- UNLESS multi_hold -->
631 <table id="requesttitles">
634 [% UNLESS ( item_level_itypes ) %]
640 [% FOREACH biblioloo IN biblioloop %]
641 [% IF ( biblioloo.warn ) %]
648 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></li>
649 [% IF ( biblioloo.publicationyear ) %]
650 <li><span class="label">Publication year:</span> [% biblioloo.publicationyear %]</li>
653 [% UNLESS ( biblioloo.warn ) %]
654 <span class="multi_hold_item" title="[% biblioloo.biblionumber %]"></span>
656 <span class="not_holdable" title="[% biblioloo.biblionumber %]"></span>
659 [% UNLESS ( item_level_itypes ) %]
661 <img src="[% biblioloo.imageurl %]" alt="[% biblioloo.itypename %]" title="[% biblioloo.itypename %]" />
664 <td>[% biblioloo.rank %]</td>
666 [% IF ( biblioloo.alreadyres ) %]
669 [% IF ( biblioloo.none_avail ) %]
674 [% IF ( biblioloo.alreadyres ) %]
675 <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>
677 [% IF ( biblioloo.none_avail ) %]
678 <li> <strong>No items are available</strong> to be placed on hold</li>
681 [% IF ( biblioloo.alreadyres ) %]
684 [% IF ( biblioloo.none_avail ) %]
694 [% END %]<!-- /multi_hold -->
696 <fieldset class="action">
697 [% IF ( patron AND patron.borrowernumber ) %]
698 [% IF ( override_required ) %]
699 <input type="submit" class="warning" value="Place hold" />
700 [% ELSIF ( none_available ) %]
701 <input type="submit" disabled="disabled" value="Place hold" />
703 <input type="submit" value="Place hold" />
711 [% UNLESS ( patron ) %]
712 [% IF ( reserveloop ) %]
713 <form name="T[% time %]" action="modrequest.pl" method="post">
714 [% IF ( multi_hold ) %]
715 <input type = "hidden" name="multi_hold" value="1"/>
716 <input type = "hidden" name="biblionumbers" value="[% biblionumbers %]"/>
719 <fieldset class="rows left">
720 <legend>Existing holds</legend>
722 [% FOREACH biblioloo IN biblioloop %]
724 [% IF ( biblioloo.reserveloop ) %]
726 [% IF ( multi_hold ) %]
727 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></caption>
730 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
740 <th>Pickup library</th>
742 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
743 <th><img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th>
746 [% IF SuspendHoldsIntranet %]<th> </th><!-- Suspend Holds Column Header -->[% END %]
748 [% FOREACH reserveloo IN biblioloo.reserveloop %]
751 <input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" />
752 <input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber %]" />
753 <input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber %]" />
754 <select name="rank-request">
755 [% IF ( reserveloo.found ) %]
756 [% IF ( reserveloo.intransit ) %]
757 <option value="T" selected="selected">In transit</option>
759 <option value="W" selected="selected">Waiting</option>
763 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
764 [% FOREACH optionloo IN reserveloo.optionloop %]
765 [% IF ( optionloo.selected ) %]
766 <option value="[% optionloo.num %]" selected="selected">[% optionloo.num %]</option>
768 <option value="[% optionloo.num %]">[% optionloo.num %]</option>
771 [% ELSIF !reserveloo.found %]
772 <option value="[% reserveloo.priority %]" selected="selected">[% reserveloo.priority %]</option>
774 <option value="del">del</option>
778 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
779 <td style="white-space:nowrap;">
780 <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 %]">
781 <img src="[% interface %]/[% theme %]/img/go-up.png" alt="Go up" />
784 <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 %]">
785 <img src="[% interface %]/[% theme %]/img/go-top.png" alt="Go top" />
788 <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 %]">
789 <img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Go bottom" />
792 <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 %]">
793 <img src="[% interface %]/[% theme %]/img/go-down.png" alt="Go down" />
799 [% INCLUDE 'patron-title.inc' patron=reserveloo.patron hide_patron_infos_if_needed=1 %]
801 <td>[% reserveloo.notes %]</td>
802 <td>[% reserveloo.date %]</td>
803 <td>[% reserveloo.expirationdate %]</td>
805 [% IF ( reserveloo.found ) %]
806 [% IF ( reserveloo.atdestination ) %]
807 [% IF ( reserveloo.found ) %]
808 Item waiting at <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" /> since [% reserveloo.waiting_date | $KohaDates %]
810 Waiting to be pulled <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
813 Item being transferred to <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
816 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
817 [% Branches.GetName(reserveloo.branchcode) %] <input type="hidden" name="pickup" value="[% reserveloo.branchcode %]" />
819 <select name="pickup">
820 [% PROCESS options_for_libraries libraries => Branches.all( selected => reserveloo.branchcode ) %]
826 [% IF ( reserveloo.found ) %]
827 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
828 [% IF ( reserveloo.barcodenumber ) %]
829 [% reserveloo.barcodenumber %]
830 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
836 [% IF ( reserveloo.item_level_hold ) %]
838 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
839 [% IF ( reserveloo.barcodenumber ) %]
840 [% reserveloo.barcodenumber %]
841 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
848 [% IF reserveloo.itemtype %]
849 <i>Next available [% ItemTypes.GetDescription( reserveloo.itemtype ) %] item</i>
851 <i>Next available</i>
853 <input type="hidden" name="itemnumber" value="" />
858 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
860 <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
861 [% IF ( reserveloo.lowestPriority ) %]
862 <img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Unset lowest priority" />
864 <img src="[% interface %]/[% theme %]/img/go-down.png" alt="Set to lowest priority" />
871 <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 %]">
872 <img src="[% interface %]/[% theme %]/img/x.png" alt="Cancel" />
876 [% IF SuspendHoldsIntranet %]
878 [% UNLESS ( reserveloo.found ) %]
879 <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()" />
881 [% IF AutoResumeSuspendedHolds %]
882 <label for="suspend_until_[% reserveloo.reserve_id %]">[% IF ( reserveloo.suspend ) %] on [% ELSE %] until [% END %]</label>
883 <input name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" size="10" value="[% reserveloo.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
884 <a href='#' onclick="document.getElementById('suspend_until_[% reserveloo.reserve_id %]').value='';">Clear date</a>
886 <input type="hidden" name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" value=""/>
889 <input type="hidden" name="suspend_until" value="" />
892 [% END # IF SuspendHoldsIntranet %]
896 [% END %] <!-- existing reserveloop -->
898 [% END %]<!-- /reserveloop -->
899 [% END %]<!-- /biblioloop -->
901 <fieldset class="action">
902 <input type="submit" name="submit" value="Update hold(s)" />
912 [% UNLESS ( multi_hold ) %]
913 [% INCLUDE 'biblio-view-menu.inc' %]
918 [% INCLUDE 'intranet-bottom.inc' %]