4 [% INCLUDE 'doc-head-open.inc' %]
5 [% UNLESS ( multi_hold ) %]
6 <title>Koha › Circulation › Holds › Place a hold on [% title |html %]</title>
8 <title>Koha › Circulation › Holds › Confirm holds</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
12 [% INCLUDE 'datatables.inc' %]
13 [% INCLUDE 'calendar.inc' %]
14 <script type="text/javascript">
16 var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?");
17 var patron_homebranch = "[% borrower_branchname |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
18 var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %]
19 [% itemloo.itemnumber %]: {
20 homebranch: "[% itemloo.homebranchname |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]",
21 holdallowed: [% itemloo.holdallowed %]
23 [% END %][% END %][% END %]
25 var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items.");
27 $(document).ready(function() {
28 [% IF AutoResumeSuspendedHolds %]
29 $(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1);
32 var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
34 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
36 "aaSorting": [[ 2, "asc" ]],
40 $(table).find('tbody tr').filter(':has(:radio:checked)').end().click(function(event) {
41 $('#table_borrowers tbody tr').removeClass('selected');
42 $(this).addClass('selected');
43 if (event.target.type !== 'radio') {
44 $(':radio', this).attr('checked', 'true')
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({
67 var alreadyreserved = 0;
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.request.checked == true){
88 if (document.form.alreadyreserved && document.form.alreadyreserved.value == "1"){
92 if (count_reserv == "0"){
93 msg += (_("- Please select an item to place a hold") + "\n");
95 if (count_reserv >= "2"){
96 msg += (_("- You may only place a hold on one item at a time") + "\n");
99 if (alreadyreserved > "0"){
100 msg += (_("- This patron had already placed a hold on this item") + "\n" + _("Please cancel the previous hold first") + "\n");
103 if (msg == "") return(true);
110 function checkMultiHold() {
111 var spans = $(".multi_hold_item");
112 if ($(spans).size() == 0) {
113 alert(MSG_NO_ITEMS_AVAILABLE);
117 var biblionumbers = "";
118 $(spans).each(function() {
119 var bibnum = $(this).attr("title");
120 biblionumbers += bibnum + "/";
123 var badSpans = $(".not_holdable");
125 $(badSpans).each(function() {
126 var bibnum = $(this).attr("title");
127 badBibs += bibnum + "/";
130 $("#multi_hold_bibs").val(biblionumbers);
131 $("#bad_bibs").val(badBibs);
136 $(document).ready(function() {
137 $("input.needsoverride").click(function() { // This must be before the radio button/checkbox switch logic
138 var itemnumber = this.value;
141 switch (override_items[itemnumber].holdallowed) {
142 case 0: msg = _("This item normally cannot be put on hold."); break;
143 case 1: msg = _("This item normally cannot be put on hold except for patrons from %s.").format(override_items[itemnumber].homebranch); break;
146 msg += "\n\n" + _("Place hold on this item?");
150 $("input.warning").click(function() {
151 return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") );
153 $("#requestany").click(function() {
155 $("input[name=checkitem]").each(function() {
156 $(this).removeAttr("checked");
160 $("input[name=checkitem]").click(function() {
162 $("input[name=checkitem]").each(function() {
168 $("#requestany").removeAttr("checked");
170 $("#requestany").attr("checked","checked");
174 $(".clear-date").on("click",function(e){
176 var fieldID = this.id.replace("clear-date-","");
177 $("#" + fieldID).val("");
180 $('#hold-request-form').preventDoubleFormSubmit();
182 [% UNLESS ( borrowernumber || borrowers || noitems ) %]
183 [% IF ( CircAutocompl ) %]
184 $( "#patron" ).autocomplete({
185 source: "/cgi-bin/koha/circ/ysearch.pl",
187 select: function( event, ui ) {
188 $( "#patron" ).val( ui.item.cardnumber );
189 $( "#holds_patronsearch" ).submit();
193 .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
194 return $( "<li></li>" )
195 .data( "ui-autocomplete-item", item )
196 .append( "<a>" + item.surname + ", " + item.firstname +
197 " (" + item.cardnumber + ") <small>" + item.address +
198 " " + item.city + " " + item.zipcode + " " +
199 item.country + "</small></a>" )
210 <body id="circ_request" class="catalog">
211 [% INCLUDE 'header.inc' %]
212 [% INCLUDE 'circ-search.inc' %]
214 [% UNLESS ( multi_hold ) %]
215 <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>
217 <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>
220 <div id="doc3" class="yui-t2">
226 <div class="dialog alert">
228 <strong>Cannot place hold:</strong> one or more records without items attached.
230 <strong>Cannot place hold:</strong> this record has no items attached.
235 [% IF ( messagetransfert ) %]
236 <div class="dialog message">
237 <h2>Hold found for ([% nextreservtitle %]), please transfer</h2>
238 <p>Hold placed by : <strong> [% nextreservsurname %] [% nextreservfirstname %]</strong> at : <strong> [% branchname %] </strong>, Please transfer this item.
240 <form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
241 <input type="submit" class="button" />
246 [% UNLESS ( multi_hold ) %]
247 <h1>Place a hold on [% INCLUDE 'biblio-default-view.inc' %][% title |html %]</a></h1>
249 <h1>Confirm holds</h1>
252 [% UNLESS borrowernumber OR noitems %]
253 [% IF ( messageborrower ) %]
254 <div class="dialog alert"><h3>Patron not found</h3><p>No patron with this name, please, try another</p> </div>
256 <form id="holds_patronsearch" action="request.pl?biblionumber=[% biblionumber %]" method="post">
257 [% UNLESS borrowers %]
258 <fieldset class="brief">
259 <label for="patron">Patron: </label>
260 <div class="hint">Enter patron card number or partial name:</div>
261 <input type="text" size="40" id="patron" class="focus" name="findborrower" />
262 <input type="submit" value="Search" />
263 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
267 <table id="table_borrowers">
279 [% FOREACH borrower IN borrowers %]
281 <td><input type="radio" name="borrowernumber" value="[% borrower.borrowernumber %]" /></td>
282 <td>[% borrower.surname %], [% borrower.firstname %]</td>
283 <td>[% borrower.cardnumber %]</td>
284 <td>[% borrower.categorycode %]</td>
285 <td>[% borrower.branchcode %]</td>
286 <td>[% borrower.address %]</td>
291 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
292 <fieldset class="action"><input type="submit" value="Select" /></fieldset>
296 [% IF ( multi_hold ) %]
297 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
298 <input type="hidden" name="biblionumbers" value="[% biblionumbers %]"/>
301 [% ELSIF NOT noitems %]
303 [% IF ( exceeded_maxreserves || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
304 <div class="dialog alert">
306 [% UNLESS ( multi_hold ) %]
307 <h3>Cannot place hold</h3>
309 [% IF ( exceeded_maxreserves ) %]
310 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] </a> can only place a maximum of [% maxreserves %] total holds.</li>
311 [% ELSIF ( alreadypossession ) %]
312 <li> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>is already in possession</strong> of one item</li>
313 [% ELSIF ( alreadyreserved ) %]
314 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>already has a hold</strong> on this item </li>
315 [% ELSIF ( ageRestricted ) %]
316 <li><strong>Age restricted</strong></li>
317 [% ELSIF ( none_available ) %]
318 <li> <strong>No items are available</strong> to be placed on hold</li>
319 [% ELSIF ( maxreserves ) %]
320 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] </a> has too many holds.</li>
324 <h3>Cannot place hold on some items</h3>
325 [% IF ( exceeded_maxreserves ) %]
326 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] </a> can place [% new_reserves_allowed %] of the requested [% new_reserves_count %] holds for a maximum of [% maxreserves %] total holds.</li>
333 [% IF ( expiry || diffbranch ) %]
334 <div class="dialog message"><ul>
336 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a>'s <strong>account has expired</strong></li>
340 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]#reldebarments">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>has restrictions</strong></li>
343 [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %]
344 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>owes [% amount_outstanding | format('%.2f') %]</strong></li>
347 [% IF ( diffbranch ) %]
348 <li> <strong>Pickup library is different</strong> than <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a>'s home library ([% borrower_branchname %] / [% borrower_branchcode %] )</li>
354 [% IF ( messageborrower ) %]
355 <div class="dialog alert"><h3>Patron not found:</h3> <p>Name or barcode not found. Please try an other </p></div>
358 <fieldset class="rows left">
359 <legend>Hold details</legend>
360 [% UNLESS ( multi_hold ) %]
361 <form action="placerequest.pl" method="post" onsubmit="return check();" name="form" id="hold-request-form">
363 <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form">
366 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
367 <input type="hidden" name="type" value="str8" />
369 [% IF ( multi_hold ) %]
370 <input type="hidden" name="multi_hold" value="[% multi_hold %]"/>
371 <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers %]"/>
372 <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
373 <input type="hidden" name="request" value="any"/>
374 [% FOREACH biblioloo IN biblioloop %]
375 <input type="hidden" name="title_[% biblioloo.biblionumber %]" value="[% biblioloo.title |html %]"/>
376 <input type="hidden" name="rank_[% biblioloo.biblionumber %]" value="[% biblioloo.rank %]"/>
379 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
380 <input type="hidden" name="title" value="[% title |html %]" />
381 <input type="hidden" name="rank-request" value="[% fixedRank %]" />
384 <ol> <li><span class="label">Patron:</span>
385 [% IF ( borrowernumber ) %]
386 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] ([% cardnumber %])</a>
391 [% UNLESS ( multi_hold ) %]
393 <span class="label">Estimated priority:</span>
394 <strong>[% fixedRank %]</strong>
398 <label for="holdnotes">Notes:</label>
399 <textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
402 <label for="pickup">Pickup at:</label>
403 <select name="pickup" size="1" id="pickup">
404 [%- FOREACH branchloo IN branchloop %]
405 [% IF ( branchloo.selected ) -%]
406 <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
408 <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
414 [% UNLESS ( multi_hold ) %]
415 [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
417 <label for="itemtype">Request specific item type:</label>
418 <select name="itemtype" size="1" id="itemtype">
419 <option value="">Any item type</option>
420 [%- FOREACH itemtype IN available_itemtypes %]
421 <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
428 [% IF ( reserve_in_future ) %]
430 <label for="from">Hold starts on date:</label>
431 <input name="reserve_date" id="from" size="10" readonly="readonly" class="datepickerfrom">
432 <a href="#" id="clear-date-from" class="clear-date">Clear date</a>
437 <label for="to">Hold expires on date:</label>
438 <input name="expiration_date" id="to" size="10" readonly="readonly" class="datepickerto" />
439 <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
442 [% UNLESS ( multi_hold ) %]
443 <li> <label for="requestany">Place a hold on the next available item </label>
444 <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 %]" />
451 [% UNLESS ( multi_hold ) %]
452 <fieldset class="action">
453 [% IF ( borrowernumber ) %]
454 [% IF ( override_required ) %]
455 <input type="submit" class="warning" value="Place hold" />
456 [% ELSIF ( none_available ) %]
457 <input type="submit" disabled="disabled" value="Place hold" />
459 <input type="submit" value="Place hold" />
463 [% FOREACH bibitemloo IN bibitemloop %]
465 [% UNLESS ( item_level_itypes ) %]
466 <li><span class="label">Item type:</span> [% bibitemloo.description %]</li>
469 [% IF ( bibitemloo.publicationyear ) %]<li><span class="label">Publication year:</span> [% bibitemloo.publicationyear %]</li>[% END %]
472 <h2 style="padding: 0 1em;">Place a hold on a specific item</h2>
473 <table id="requestspecific">
477 [% IF ( item_level_itypes ) %]
481 <th>Home library</th>
482 <th>Last location</th>
485 [% IF itemdata_enumchron %]
488 <th class="title-string">Information</th>
492 [% FOREACH itemloo IN bibitemloo.itemloop %]
493 [% UNLESS ( itemloo.hide ) %]
494 <tr class="[% itemloo.backgroundcolor %]">
496 [% IF ( itemloo.available ) %]
497 <input type="radio" name="checkitem" value="[% itemloo.itemnumber %]" />
498 [% ELSIF ( itemloo.override ) %]
499 <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber %]" />
500 <img src="[% interface %]/[% theme %]/img/famfamfam/silk/error.png" alt="Requires override of hold policy" />
502 <input disabled="disabled" type="radio" name="checkitem" value="[% itemloo.itemnumber %]" />
503 <img src="[% interface %]/[% theme %]/img/famfamfam/silk/cross.png" alt="Cannot be put on hold" />
506 [% IF ( item_level_itypes ) %]
508 [% UNLESS ( noItemTypeImages ) %]
509 [% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl %]" alt="" /> <br /> [% END %]
511 [% itemloo.itypename %]
516 [% itemloo.barcode %]
519 [% itemloo.homebranchname %]
522 [% itemloo.holdingbranchname %]
525 [% itemloo.itemcallnumber %]
528 [% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %] [% END %]
530 [% IF itemdata_enumchron %]
532 [% itemloo.enumchron %]
536 [% IF ( itemloo.onloan ) %]
537 <span title="[% itemloo.date_due %]" class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span>
539 <span title="0000-00-00">
540 [% IF ( itemloo.transfertwhen ) %]
541 In transit from [% itemloo.transfertfrom %],
542 to [% itemloo.transfertto %], since [% itemloo.transfertwhen %]
547 [% IF ( itemloo.message ) %]
548 Unavailable (lost or missing)
551 [% IF ( itemloo.notforloan ) %]
552 Not for loan ([% itemloo.notforloanvalue %])
555 [% IF ( itemloo.reservedate ) %]
556 [% IF ( itemloo.nocancel ) %]
557 Can't be cancelled when item is in transit
559 [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
560 [% IF ( itemloo.canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">[% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %]</a>[% END %] [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% itemloo.ExpectedAtLibrary %]
562 [% 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.ReservedForBorrowernumber %]&CancelItemnumber=[% itemloo.itemnumber %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);">Cancel hold</a>
570 [% END %] <!--UNLESS item hide-->
571 [% END %] <!-- itemloop -->
574 [% IF ( bibitemloo.hiddencount ) %]
576 <p class="hiddencount"><a href="request.pl?biblionumber=[% bibitemloo.biblionumber %]&borrowernumber=[% bibitemloo.borrowernumber %]&showallitems=1">Show all items ([% bibitemloo.hiddencount %] hidden)</a></p>
578 [% END %] <!-- hiddencount -->
579 [% END %] <!-- bibitemloop -->
581 [% ELSE %]<!-- UNLESS multi_hold -->
583 <table id="requesttitles">
586 [% UNLESS ( item_level_itypes ) %]
592 [% FOREACH biblioloo IN biblioloop %]
593 [% IF ( biblioloo.warn ) %]
600 <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></li>
601 [% IF ( biblioloo.publicationyear ) %]
602 <li><span class="label">Publication year:</span> [% biblioloo.publicationyear %]</li>
605 [% UNLESS ( biblioloo.warn ) %]
606 <span class="multi_hold_item" title="[% biblioloo.biblionumber %]"></span>
608 <span class="not_holdable" title="[% biblioloo.biblionumber %]"></span>
611 [% UNLESS ( item_level_itypes ) %]
613 <img src="[% biblioloo.imageurl %]" alt="[% biblioloo.itypename %]" title="[% biblioloo.itypename %]" />
616 <td>[% biblioloo.rank %]</td>
618 [% IF ( biblioloo.alreadyres ) %]
621 [% IF ( biblioloo.none_avail ) %]
626 [% IF ( biblioloo.alreadyres ) %]
627 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>already has a hold</strong> on this item </li>
629 [% IF ( biblioloo.none_avail ) %]
630 <li> <strong>No items are available</strong> to be placed on hold</li>
633 [% IF ( biblioloo.alreadyres ) %]
636 [% IF ( biblioloo.none_avail ) %]
646 [% END %]<!-- /multi_hold -->
648 <fieldset class="action">
649 [% IF ( borrowernumber ) %]
650 [% IF ( override_required ) %]
651 <input type="submit" class="warning" value="Place hold" />
652 [% ELSIF ( none_available ) %]
653 <input type="submit" disabled="disabled" value="Place hold" />
655 <input type="submit" value="Place hold" />
663 [% UNLESS ( borrowernumber ) %]
664 [% IF ( reserveloop ) %]
665 <form name="T[% time %]" action="modrequest.pl" method="post">
666 [% IF ( multi_hold ) %]
667 <input type = "hidden" name="multi_hold" value="1"/>
668 <input type = "hidden" name="biblionumbers" value="[% biblionumbers %]"/>
671 <fieldset class="rows left">
672 <legend>Existing holds</legend>
674 [% FOREACH biblioloo IN biblioloop %]
676 [% IF ( biblioloo.reserveloop ) %]
678 [% IF ( multi_hold ) %]
679 <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></caption>
682 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
692 <th>Pickup library</th>
694 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
695 <th><img src="[% interface %]/[% theme %]/img/go-bottom.png" border="0" alt="Toggle set to lowest priority" /></th>
698 [% IF SuspendHoldsIntranet %]<th> </th><!-- Suspend Holds Column Header -->[% END %]
700 [% FOREACH reserveloo IN biblioloo.reserveloop %]
703 <input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" />
704 <input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber %]" />
705 <input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber %]" />
706 <select name="rank-request">
707 [% IF ( reserveloo.found ) %]
708 [% IF ( reserveloo.intransit ) %]
709 <option value="T" selected="selected">In transit</option>
711 <option value="W" selected="selected">Waiting</option>
715 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
716 [% FOREACH optionloo IN reserveloo.optionloop %]
717 [% IF ( optionloo.selected ) %]
718 <option value="[% optionloo.num %]" selected="selected">[% optionloo.num %]</option>
720 <option value="[% optionloo.num %]">[% optionloo.num %]</option>
723 [% ELSIF !reserveloo.found %]
724 <option value="[% reserveloo.priority %]" selected="selected">[% reserveloo.priority %]</option>
726 <option value="del">del</option>
730 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
731 <td style="white-space:nowrap;">
732 <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 %]">
733 <img src="[% interface %]/[% theme %]/img/go-up.png" border="0" alt="Go up" />
736 <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 %]">
737 <img src="[% interface %]/[% theme %]/img/go-top.png" border="0" alt="Go top" />
740 <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 %]">
741 <img src="[% interface %]/[% theme %]/img/go-bottom.png" border="0" alt="Go bottom" />
744 <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 %]">
745 <img src="[% interface %]/[% theme %]/img/go-down.png" border="0" alt="Go down" />
751 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrowernumber %]" >
752 [% IF ( reserveloo.hidename ) %]
753 [% reserveloo.cardnumber (reserveloo.borrowernumber) %]
755 [% reserveloo.firstname %] [% reserveloo.surname %]
759 <td>[% reserveloo.notes %]</td>
760 <td>[% reserveloo.date %]</td>
762 [% IF reserveloo.waiting_until %]
763 [% reserveloo.waiting_until | $KohaDates %]
765 [% reserveloo.expirationdate %]
769 [% IF ( reserveloo.found ) %]
770 [% IF ( reserveloo.atdestination ) %]
771 [% IF ( reserveloo.found ) %]
772 Item waiting at <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" /> since [% reserveloo.waiting_date | $KohaDates %]
774 Waiting to be pulled <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
777 Item being transferred to <b> [% reserveloo.wbrname %]</b> <input type="hidden" name="pickup" value="[% reserveloo.wbrcode %]" />
780 <select name="pickup">
781 [% FOREACH branchloo IN reserveloo.branchloop %]
782 [% IF ( branchloo.selected ) %]
783 <option value="[% branchloo.branchcode %]" selected="selected">
785 <option value="[% branchloo.branchcode %]">
787 [% branchloo.branchname %]
794 [% IF ( reserveloo.found ) %]
795 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
796 [% IF ( reserveloo.barcodenumber ) %]
797 [% reserveloo.barcodenumber %]
798 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
804 [% IF ( reserveloo.item_level_hold ) %]
806 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reserveloo.biblionumber %]">
807 [% IF ( reserveloo.barcodenumber ) %]
808 [% reserveloo.barcodenumber %]
809 <input type="hidden" name="itemnumber" value="[% reserveloo.itemnumber %]" />
816 [% IF reserveloo.itemtype %]
817 <i><b>Next available [% ItemTypes.GetDescription( reserveloo.itemtype ) %] item</b></i>
819 <i>Next available</i>
821 <input type="hidden" name="itemnumber" value="" />
826 [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
828 <a title="Toggle lowest priority" href="request.pl?action=setLowestPriority&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
829 [% IF ( reserveloo.lowestPriority ) %]
830 <img src="[% interface %]/[% theme %]/img/go-bottom.png" border="0" alt="Unset lowest priority" />
832 <img src="[% interface %]/[% theme %]/img/go-down.png" border="0" alt="Set to lowest priority" />
839 <a title="Cancel hold" href="request.pl?action=cancel&borrowernumber=[% reserveloo.borrowernumber %]&biblionumber=[% reserveloo.biblionumber %]&reserve_id=[% reserveloo.reserve_id %]&date=[% reserveloo.date %]">
840 <img src="[% interface %]/[% theme %]/img/x.png" border="0" alt="Cancel" />
844 [% IF SuspendHoldsIntranet %]
846 [% UNLESS ( reserveloo.found ) %]
847 <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()" />
849 [% IF AutoResumeSuspendedHolds %]
850 <label for="suspend_until_[% reserveloo.reserve_id %]">[% IF ( reserveloo.suspend ) %] on [% ELSE %] until [% END %]</label>
851 <input name="suspend_until" id="suspend_until_[% reserveloo.reserve_id %]" size="10" readonly="readonly" value="[% reserveloo.suspend_until | $KohaDates %]" class="datepicker suspend_until_datepicker" />
852 <a href='#' onclick="document.getElementById('suspend_until_[% reserveloo.reserve_id %]').value='';">Clear date</a>
855 <input type="hidden" name="suspend_until" value="" />
858 [% END # IF SuspendHoldsIntranet %]
862 [% END %] <!-- existing reserveloop -->
864 [% END %]<!-- /reserveloop -->
865 [% END %]<!-- /biblioloop -->
867 <fieldset class="action">
868 <input type="submit" name="submit" value="Update hold(s)" />
878 [% UNLESS ( multi_hold ) %]
879 [% INCLUDE 'biblio-view-menu.inc' %]
884 [% INCLUDE 'intranet-bottom.inc' %]