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" />
281 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
282 <input type="hidden" name="biblionumbers" value="[% biblionumbers %]"/>
284 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
288 [% INCLUDE 'circ-patron-search-results.inc' destination = "holds" %]
292 [% IF ( multi_hold ) %]
293 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
294 <input type="hidden" name="biblionumbers" value="[% biblionumbers %]"/>
297 [% ELSIF NOT noitems %]
299 [% IF ( exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
300 <div class="dialog alert">
302 [% UNLESS ( multi_hold ) %]
303 <h3>Cannot place hold</h3>
305 [% IF ( exceeded_maxreserves ) %]
306 <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>
307 [% ELSIF ( exceeded_holds_per_record ) %]
308 <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>
309 [% ELSIF ( alreadypossession ) %]
310 <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>
311 [% ELSIF ( alreadyreserved ) %]
312 <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>
313 [% ELSIF ( ageRestricted ) %]
314 <li><strong>Age restricted</strong></li>
315 [% ELSIF ( none_available ) %]
316 <li> <strong>No items are available</strong> to be placed on hold.</li>
317 [% ELSIF ( maxreserves ) %]
318 <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>
322 <h3>Cannot place hold on some items</h3>
323 [% IF ( exceeded_maxreserves ) %]
324 <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>
325 [% ELSIF ( exceeded_holds_per_record ) %]
326 [% FOREACH biblioloo IN biblioloop %]
327 [% IF (biblioloo.tooManyHoldsForThisRecord) %]
328 <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>
337 [% IF ( expiry || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %]
338 <div class="dialog message"><ul>
340 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a>: <strong>Account has expired</strong></li>
343 [% IF patron.is_debarred %]
344 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]#reldebarments">[% patron.firstname %] [% patron.surname %]</a>: <strong>Patron has restrictions</strong></li>
347 [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %]
348 <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>
351 [% IF ( diffbranch ) %]
352 <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>
358 [% IF ( messageborrower ) %]
359 <div class="dialog alert"><h3>Patron not found:</h3> <p>Name or barcode not found. Please try an other </p></div>
362 <fieldset class="rows left">
363 <legend>Hold details</legend>
364 [% UNLESS ( multi_hold ) %]
365 <form action="placerequest.pl" method="post" onsubmit="return check();" name="form" id="hold-request-form">
367 <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form">
370 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
371 <input type="hidden" name="type" value="str8" />
373 [% IF ( multi_hold ) %]
374 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
375 <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers %]"/>
376 <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
377 <input type="hidden" name="request" value="any"/>
378 [% FOREACH biblioloo IN biblioloop %]
379 <input type="hidden" name="title_[% biblioloo.biblionumber %]" value="[% biblioloo.title |html %]"/>
380 <input type="hidden" name="rank_[% biblioloo.biblionumber %]" value="[% biblioloo.rank %]"/>
383 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
384 <input type="hidden" name="title" value="[% title |html %]" />
385 <input type="hidden" name="rank-request" value="[% fixedRank %]" />
388 <ol> <li><span class="label">Patron:</span>
389 [% IF ( patron.borrowernumber ) %]
390 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</a>
395 [% UNLESS ( multi_hold ) %]
397 <span class="label">Estimated priority:</span>
398 <strong>[% fixedRank %]</strong>
402 <label for="holdnotes">Notes:</label>
403 <textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
406 <label for="pickup">Pickup at:</label>
407 <select name="pickup" size="1" id="pickup">
408 [% PROCESS options_for_libraries libraries => Branches.all() %]
412 [% UNLESS ( multi_hold ) %]
413 [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
415 <label for="itemtype">Request specific item type:</label>
416 <select name="itemtype" size="1" id="itemtype">
417 <option value="">Any item type</option>
418 [%- FOREACH itemtype IN available_itemtypes %]
419 <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
426 [% IF ( reserve_in_future ) %]
428 <label for="from">Hold starts on date:</label>
429 <input name="reserve_date" id="from" size="10" class="datepickerfrom">
430 <a href="#" id="clear-date-from" class="clear-date">Clear date</a>
435 <label for="to">Hold expires on date:</label>
436 <input name="expiration_date" id="to" size="10" class="datepickerto" />
437 <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
440 [% UNLESS ( multi_hold ) %]
441 <li> <label for="requestany">Hold next available item </label>
442 [% IF force_hold_level == 'item' %]
443 <input type="checkbox" id="requestany" name="request" disabled="true" />
444 [% ELSIF force_hold_level == 'record' %]
445 <input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/>
446 <input type="hidden" name="request" value="Any"/>
448 <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
450 <input type="hidden" name="biblioitem" value="[% biblioitemnumber %]" />
451 <input type="hidden" name="alreadyreserved" value="[% alreadyreserved %]" />
454 [% IF remaining_holds_for_record > 1 %]
456 <label for="holds_to_place_count">Holds to place (count)</label>
457 <input type="number" name="holds_to_place_count" min="1" max="[% remaining_holds_for_record %]" step="1" value="1" />
460 <input type="hidden" name="holds_to_place_count" value="1" />
465 [% UNLESS ( multi_hold ) %]
466 <fieldset class="action">
467 [% IF ( patron.borrowernumber ) %]
468 [% IF ( override_required ) %]
469 <input type="submit" class="warning" value="Place hold" />
470 [% ELSIF ( none_available ) %]
471 <input type="submit" disabled="disabled" value="Place hold" />
473 <input type="submit" value="Place hold" />
477 [% FOREACH bibitemloo IN bibitemloop %]
479 [% UNLESS ( item_level_itypes ) %]
480 <li><span class="label">Item type:</span> [% bibitemloo.description %]</li>
483 [% IF ( bibitemloo.publicationyear ) %]<li><span class="label">Publication year:</span> [% bibitemloo.publicationyear %]</li>[% END %]
486 <h2 style="padding: 0 1em;">
487 Place a hold on a specific item
488 [% IF bibitemloo.force_hold_level == 'item' %]
489 <span class="error"><i>(Required)</i></span>
492 <table id="requestspecific">
496 [% IF ( item_level_itypes ) %]
500 <th>Home library</th>
501 <th>Last location</th>
504 [% IF itemdata_enumchron %]
507 <th class="title-string">Information</th>
511 [% SET selected = 0 %]
512 [% FOREACH itemloo IN bibitemloo.itemloop %]
513 [% UNLESS ( itemloo.hide ) %]
514 <tr class="[% itemloo.backgroundcolor %]">
516 [% IF itemloo.force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
518 <i class="fa fa-times fa-lg" alt="Cannot be put on hold"></i>
519 Hold must be record level
521 [% ELSIF ( itemloo.available ) %]
522 <input type="radio" name="checkitem" value="[% itemloo.itemnumber %]" />
523 [% ELSIF ( itemloo.override ) %]
524 <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber %]" />
525 <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" alt="Requires override of hold policy"/></i>
528 <i class="fa fa-times fa-lg" alt="Cannot be put on hold"></i>
529 [% IF itemloo.not_holdable %]
530 [% IF itemloo.not_holdable == 'damaged' %]
532 [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
534 [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
535 Exceeded max holds per record
536 [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
538 [% ELSIF itemloo.not_holdable == 'notReservable' %]
540 [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
541 Patron is from different library
542 [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
543 Patron already has hold for this item
545 [% itemloo.not_holdable %]
551 [% IF ( item_level_itypes ) %]
553 [% UNLESS ( noItemTypeImages ) %]
554 [% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl %]" alt="" /> <br /> [% END %]
556 [% itemloo.itypename %]
561 [% itemloo.barcode %]
564 [% Branches.GetName( itemloo.homebranch ) %]
567 [% Branches.GetName( itemloo.holdingbranch ) %]
570 [% itemloo.itemcallnumber %]
573 [% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %] [% END %]
575 [% IF itemdata_enumchron %]
577 [% itemloo.enumchron %]
581 [% IF ( itemloo.onloan ) %]
582 <span title="[% itemloo.date_due %]" class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span>
584 <span title="0000-00-00">
585 [% IF ( itemloo.transfertwhen ) %]
586 In transit from [% Branches.GetName( itemloo.transfertfrom ) %],
587 to [% Branches.GetName( itemloo.transfertto ) %], since [% itemloo.transfertwhen %]
591 [% IF ( itemloo.message ) %]
592 Unavailable (lost or missing)
595 [% IF ( itemloo.notforloan ) %]
596 Not for loan ([% itemloo.notforloanvalue %])
599 [% IF ( itemloo.reservedate ) %]
600 [% IF ( itemloo.nocancel ) %]
601 Can't be cancelled when item is in transit
603 [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
604 [% 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 ) %]
606 [% 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>
613 [% IF itemloo.item_level_holds == "N" %]
614 <br/>Item level hold not allowed from OPAC
615 [% ELSIF itemloo.item_level_holds == "F" %]
616 <br/>Item level hold forced from OPAC
618 [% IF ( itemloo.damaged ) %]
623 [% END %] <!--UNLESS item hide-->
624 [% END %] <!-- itemloop -->
627 [% IF ( bibitemloo.hiddencount ) %]
629 <p class="hiddencount"><a href="request.pl?biblionumber=[% bibitemloo.biblionumber %]&borrowernumber=[% bibitemloo.borrowernumber %]&showallitems=1">Show all items ([% bibitemloo.hiddencount %] hidden)</a></p>
631 [% END %] <!-- hiddencount -->
632 [% END %] <!-- bibitemloop -->
634 [% ELSE %]<!-- UNLESS multi_hold -->
636 <table id="requesttitles">
639 [% UNLESS ( item_level_itypes ) %]
645 [% FOREACH biblioloo IN biblioloop %]
646 [% IF ( biblioloo.warn ) %]
653 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></li>
654 [% IF ( biblioloo.publicationyear ) %]
655 <li><span class="label">Publication year:</span> [% biblioloo.publicationyear %]</li>
658 [% UNLESS ( biblioloo.warn ) %]
659 <span class="multi_hold_item" title="[% biblioloo.biblionumber %]"></span>
661 <span class="not_holdable" title="[% biblioloo.biblionumber %]"></span>
664 [% UNLESS ( item_level_itypes ) %]
666 <img src="[% biblioloo.imageurl %]" alt="[% biblioloo.itypename %]" title="[% biblioloo.itypename %]" />
669 <td>[% biblioloo.rank %]</td>
671 [% IF ( biblioloo.alreadyres ) %]
674 [% IF ( biblioloo.none_avail ) %]
679 [% IF ( biblioloo.alreadyres ) %]
680 <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>
682 [% IF ( biblioloo.none_avail ) %]
683 <li> <strong>No items are available</strong> to be placed on hold</li>
686 [% IF ( biblioloo.alreadyres ) %]
689 [% IF ( biblioloo.none_avail ) %]
699 [% END %]<!-- /multi_hold -->
701 <fieldset class="action">
702 [% IF ( patron AND patron.borrowernumber ) %]
703 [% IF ( override_required ) %]
704 <input type="submit" class="warning" value="Place hold" />
705 [% ELSIF ( none_available ) %]
706 <input type="submit" disabled="disabled" value="Place hold" />
708 <input type="submit" value="Place hold" />
716 [% UNLESS ( patron ) %]
717 [% IF ( reserveloop ) %]
718 <form name="T[% time %]" action="modrequest.pl" method="post">
719 [% IF ( multi_hold ) %]
720 <input type = "hidden" name="multi_hold" value="1"/>
721 <input type = "hidden" name="biblionumbers" value="[% biblionumbers %]"/>
724 <fieldset class="rows left">
725 <legend>Existing holds</legend>
727 [% FOREACH biblioloo IN biblioloop %]
729 [% IF ( biblioloo.reserveloop ) %]
731 [% IF ( multi_hold ) %]
732 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></caption>
735 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
745 <th>Pickup library</th>
747 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
748 <th><img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Toggle set to lowest priority" /></th>
751 [% IF SuspendHoldsIntranet %]<th> </th><!-- Suspend Holds Column Header -->[% END %]
753 [% FOREACH reserveloo IN biblioloo.reserveloop %]
756 <input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" />
757 <input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber %]" />
758 <input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber %]" />
759 <select name="rank-request">
760 [% IF ( reserveloo.found ) %]
761 [% IF ( reserveloo.intransit ) %]
762 <option value="T" selected="selected">In transit</option>
764 <option value="W" selected="selected">Waiting</option>
768 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
769 [% FOREACH optionloo IN reserveloo.optionloop %]
770 [% IF ( optionloo.selected ) %]
771 <option value="[% optionloo.num %]" selected="selected">[% optionloo.num %]</option>
773 <option value="[% optionloo.num %]">[% optionloo.num %]</option>
776 [% ELSIF !reserveloo.found %]
777 <option value="[% reserveloo.priority %]" selected="selected">[% reserveloo.priority %]</option>
779 <option value="del">del</option>
783 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
784 <td style="white-space:nowrap;">
785 <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 %]">
786 <img src="[% interface %]/[% theme %]/img/go-up.png" alt="Go up" />
789 <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 %]">
790 <img src="[% interface %]/[% theme %]/img/go-top.png" alt="Go top" />
793 <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 %]">
794 <img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Go bottom" />
797 <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 %]">
798 <img src="[% interface %]/[% theme %]/img/go-down.png" alt="Go down" />
804 [% INCLUDE 'patron-title.inc' patron=reserveloo.patron hide_patron_infos_if_needed=1 %]
806 <td>[% reserveloo.notes %]</td>
807 <td>[% reserveloo.date %]</td>
808 <td>[% reserveloo.expirationdate %]</td>
810 [% IF ( reserveloo.found ) %]
811 [% IF ( reserveloo.atdestination ) %]
812 [% IF ( reserveloo.found ) %]
813 Item waiting at <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" /> since [% reserveloo.waiting_date | $KohaDates %]
815 Waiting to be pulled <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
818 Item being transferred to <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
821 [% IF Koha.Preference('IndependentBranches') && Branches.all().size == 1 %]
822 [% Branches.GetName(reserveloo.branchcode) %] <input type="hidden" name="pickup" value="[% reserveloo.branchcode %]" />
824 <select name="pickup">
825 [% PROCESS options_for_libraries libraries => Branches.all( selected => reserveloo.branchcode ) %]
831 [% IF ( reserveloo.found ) %]
832 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
833 [% IF ( reserveloo.barcodenumber ) %]
834 [% reserveloo.barcodenumber %]
835 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
841 [% IF ( reserveloo.item_level_hold ) %]
843 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
844 [% IF ( reserveloo.barcodenumber ) %]
845 [% reserveloo.barcodenumber %]
846 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
853 [% IF reserveloo.itemtype %]
854 <i>Next available [% ItemTypes.GetDescription( reserveloo.itemtype ) %] item</i>
856 <i>Next available</i>
858 <input type="hidden" name="itemnumber" value="" />
863 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
865 <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
866 [% IF ( reserveloo.lowestPriority ) %]
867 <img src="[% interface %]/[% theme %]/img/go-bottom.png" alt="Unset lowest priority" />
869 <img src="[% interface %]/[% theme %]/img/go-down.png" alt="Set to lowest priority" />
876 <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 %]">
877 <img src="[% interface %]/[% theme %]/img/x.png" alt="Cancel" />
881 [% IF SuspendHoldsIntranet %]
883 [% UNLESS ( reserveloo.found ) %]
884 <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()" />
886 [% IF AutoResumeSuspendedHolds %]
887 <label for="suspend_until_[% reserveloo.reserve_id %]">[% IF ( reserveloo.suspend ) %] on [% ELSE %] until [% END %]</label>
888 <input name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" size="10" value="[% reserveloo.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
889 <a href='#' onclick="document.getElementById('suspend_until_[% reserveloo.reserve_id %]').value='';">Clear date</a>
891 <input type="hidden" name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" value=""/>
894 <input type="hidden" name="suspend_until" value="" />
897 [% END # IF SuspendHoldsIntranet %]
901 [% END %] <!-- existing reserveloop -->
903 [% END %]<!-- /reserveloop -->
904 [% END %]<!-- /biblioloop -->
906 <fieldset class="action">
907 <input type="submit" name="submit" value="Update hold(s)" />
917 [% UNLESS ( multi_hold ) %]
918 [% INCLUDE 'biblio-view-menu.inc' %]
923 [% INCLUDE 'intranet-bottom.inc' %]