Lines 130-135
function checkMultiHold() {
Link Here
|
130 |
}); |
130 |
}); |
131 |
|
131 |
|
132 |
$('#hold-request-form').preventDoubleFormSubmit(); |
132 |
$('#hold-request-form').preventDoubleFormSubmit(); |
|
|
133 |
$('#reloadPickupLocationForm').preventDoubleFormSubmit(); |
134 |
|
135 |
//Setting the trigger to reload branchTransferLimits |
136 |
$('#pickup').change(function() { |
137 |
var newSelection = $(this).val(); |
138 |
|
139 |
//Make sure the pickup location is changed to the first select as well. |
140 |
// The branch selection uses only the first given pickuplocations branch value. |
141 |
$('#reloadPickupLocationForm > input[name="pickup"]').val(newSelection); |
142 |
|
143 |
$('#reloadPickupLocationForm').submit(); |
144 |
}); |
145 |
|
133 |
|
146 |
|
134 |
[% UNLESS ( borrowernumber || borrower_list ) %] |
147 |
[% UNLESS ( borrowernumber || borrower_list ) %] |
135 |
[% IF ( CircAutocompl ) %] |
148 |
[% IF ( CircAutocompl ) %] |
Lines 352-361
function checkMultiHold() {
Link Here
|
352 |
[% END %] |
365 |
[% END %] |
353 |
|
366 |
|
354 |
</ol> |
367 |
</ol> |
355 |
[% UNLESS ( multi_hold ) %] |
368 |
|
|
|
369 |
|
370 |
|
371 |
[% UNLESS ( multi_hold ) %] |
356 |
<fieldset class="action"> |
372 |
<fieldset class="action"> |
357 |
[% IF ( borrowernumber ) %] |
373 |
[% IF ( borrowernumber ) %] |
358 |
[% IF ( override_required ) %] |
374 |
[% IF ( bookBranchTransferDenied ) %] |
|
|
375 |
<input type="submit" disabled="disabled" value="Place hold" /> |
376 |
[% ELSIF ( override_required ) %] |
359 |
<input type="submit" class="warning" value="Place hold" /> |
377 |
<input type="submit" class="warning" value="Place hold" /> |
360 |
[% ELSIF ( none_available ) %] |
378 |
[% ELSIF ( none_available ) %] |
361 |
<input type="submit" disabled="disabled" value="Place hold" /> |
379 |
<input type="submit" disabled="disabled" value="Place hold" /> |
Lines 367-378
function checkMultiHold() {
Link Here
|
367 |
[% FOREACH bibitemloo IN bibitemloop %] |
385 |
[% FOREACH bibitemloo IN bibitemloop %] |
368 |
<ol> |
386 |
<ol> |
369 |
[% UNLESS ( item_level_itypes ) %] |
387 |
[% UNLESS ( item_level_itypes ) %] |
370 |
<li><span class="label">Item type:</span> [% bibitemloo.description %]</li> |
388 |
<li><span class="label">Item type:</span> [% bibitemloo.description %]</li> |
371 |
[% END %] |
389 |
[% END %] |
372 |
|
390 |
|
373 |
[% IF ( bibitemloo.publicationyear ) %]<li><span class="label">Publication year:</span> [% bibitemloo.publicationyear %]</li>[% END %] |
391 |
[% IF ( bibitemloo.publicationyear ) %] |
|
|
392 |
<li><span class="label">Publication year:</span> [% bibitemloo.publicationyear %]</li> |
393 |
[% END %] |
374 |
</ol> |
394 |
</ol> |
375 |
|
395 |
|
|
|
396 |
[% IF ( bibitemloo.suggestAnotherPickupLocation ) %] |
397 |
<div id="suggestAnotherPickupLocation_[% bibitemloo.biblionumber %]" class="dialog alert">None of the available items can be transferred to your pickup location. You could try another pickup location.</div> |
398 |
[% END %] |
399 |
|
376 |
<table id="requestspecific"> |
400 |
<table id="requestspecific"> |
377 |
<caption>Place a hold on a specific copy</caption> |
401 |
<caption>Place a hold on a specific copy</caption> |
378 |
<tr> |
402 |
<tr> |
Lines 396-407
function checkMultiHold() {
Link Here
|
396 |
<td> |
420 |
<td> |
397 |
[% IF ( itemloo.available ) %] |
421 |
[% IF ( itemloo.available ) %] |
398 |
<input type="radio" name="checkitem" value="[% itemloo.itemnumber %]" /> |
422 |
<input type="radio" name="checkitem" value="[% itemloo.itemnumber %]" /> |
|
|
423 |
[% ELSIF ( itemloo.branchTransferDenied ) %] |
424 |
<input disabled="disabled" type="radio" name="checkitem" value="[% itemloo.itemnumber %]" /> |
425 |
<img src="/intranet-tmpl/[% theme %]/img/famfamfam/silk/cross.png" title="Cannot transfer this item to your pickup location" alt="Cannot transfer this item to your pickup location" /> |
399 |
[% ELSIF ( itemloo.override ) %] |
426 |
[% ELSIF ( itemloo.override ) %] |
400 |
<input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber %]" /> |
427 |
<input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber %]" /> |
401 |
<img src="/intranet-tmpl/[% theme %]/img/famfamfam/silk/error.png" alt="Requires override of hold policy" /> |
428 |
<img src="/intranet-tmpl/[% theme %]/img/famfamfam/silk/error.png" title="Requires override of hold policy" alt="Requires override of hold policy" /> |
402 |
[% ELSE %] |
429 |
[% ELSE %] |
403 |
<input disabled="disabled" type="radio" name="checkitem" value="[% itemloo.itemnumber %]" /> |
430 |
<input disabled="disabled" type="radio" name="checkitem" value="[% itemloo.itemnumber %]" /> |
404 |
<img src="/intranet-tmpl/[% theme %]/img/famfamfam/silk/cross.png" alt="Cannot be put on hold" /> |
431 |
<img src="/intranet-tmpl/[% theme %]/img/famfamfam/silk/cross.png" title="Cannot be put on hold" alt="Cannot be put on hold" /> |
405 |
[% END %] |
432 |
[% END %] |
406 |
</td> |
433 |
</td> |
407 |
[% IF ( item_level_itypes ) %] |
434 |
[% IF ( item_level_itypes ) %] |
Lines 476-481
function checkMultiHold() {
Link Here
|
476 |
|
503 |
|
477 |
[% ELSE %]<!-- UNLESS multi_hold --> |
504 |
[% ELSE %]<!-- UNLESS multi_hold --> |
478 |
|
505 |
|
|
|
506 |
|
479 |
<table id="requesttitles"> |
507 |
<table id="requesttitles"> |
480 |
<tr> |
508 |
<tr> |
481 |
<th>Title</th> |
509 |
<th>Title</th> |
Lines 493-499
function checkMultiHold() {
Link Here
|
493 |
[% END %] |
521 |
[% END %] |
494 |
<td> |
522 |
<td> |
495 |
<ul> |
523 |
<ul> |
496 |
<li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a></li> |
524 |
<li> |
|
|
525 |
[% IF ( biblioloo.suggestAnotherPickupLocation ) %] |
526 |
<img src="/intranet-tmpl/[% theme %]/img/famfamfam/silk/cross.png" title="Cannot transfer this item to your pickup location" alt="Cannot transfer this item to your pickup location" /> |
527 |
[% END %] |
528 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]">[% biblioloo.title |html %]</a> |
529 |
</li> |
497 |
[% IF ( biblioloo.publicationyear ) %] |
530 |
[% IF ( biblioloo.publicationyear ) %] |
498 |
<li><span class="label">Publication year:</span> [% biblioloo.publicationyear %]</li> |
531 |
<li><span class="label">Publication year:</span> [% biblioloo.publicationyear %]</li> |
499 |
[% END %] |
532 |
[% END %] |
Lines 539-549
function checkMultiHold() {
Link Here
|
539 |
[% END %] |
572 |
[% END %] |
540 |
</table> |
573 |
</table> |
541 |
|
574 |
|
|
|
575 |
[% IF ( bookBranchTransferDenied ) %] |
576 |
<div class="dialog alert"> |
577 |
Some books cannot be transferred to your pickup location. Please try another pickup location, or reserve fewer items at once. |
578 |
</div> |
579 |
[% END %] |
580 |
|
542 |
[% END %]<!-- /multi_hold --> |
581 |
[% END %]<!-- /multi_hold --> |
543 |
|
582 |
|
544 |
<fieldset class="action"> |
583 |
<fieldset class="action"> |
545 |
[% IF ( borrowernumber ) %] |
584 |
[% IF ( borrowernumber ) %] |
546 |
[% IF ( override_required ) %] |
585 |
[% IF ( bookBranchTransferDenied ) %] |
|
|
586 |
<input type="submit" disabled="disabled" value="Place hold" /> |
587 |
[% ELSIF ( override_required ) %] |
547 |
<input type="submit" class="warning" value="Place hold" /> |
588 |
<input type="submit" class="warning" value="Place hold" /> |
548 |
[% ELSIF ( none_available ) %] |
589 |
[% ELSIF ( none_available ) %] |
549 |
<input type="submit" disabled="disabled" value="Place hold" /> |
590 |
<input type="submit" disabled="disabled" value="Place hold" /> |
Lines 600-625
function checkMultiHold() {
Link Here
|
600 |
<input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber %]" /> |
641 |
<input type="hidden" name="borrowernumber" value="[% reserveloo.borrowernumber %]" /> |
601 |
<input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber %]" /> |
642 |
<input type="hidden" name="biblionumber" value="[% reserveloo.biblionumber %]" /> |
602 |
<select name="rank-request"> |
643 |
<select name="rank-request"> |
603 |
[% IF ( reserveloo.wait ) %] |
644 |
[% IF ( reserveloo.wait ) %] |
604 |
[% IF ( reserveloo.intransit ) %] |
645 |
[% IF ( reserveloo.intransit ) %] |
605 |
<option value="T" selected="selected">In transit</option> |
646 |
<option value="T" selected="selected">In transit</option> |
606 |
[% ELSE %] |
647 |
[% ELSE %] |
607 |
<option value="W" selected="selected">Waiting</option> |
648 |
<option value="W" selected="selected">Waiting</option> |
608 |
[% END %] |
649 |
[% END %] |
609 |
[% END %] |
650 |
[% END %] |
610 |
|
651 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %][% FOREACH optionloo IN reserveloo.optionloop %] |
611 |
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] |
652 |
[% IF ( optionloo.selected ) %]<option value="[% optionloo.num %]" selected="selected">[% optionloo.num %]</option>[% ELSE %]<option value="[% optionloo.num %]">[% optionloo.num %]</option>[% END %] |
612 |
[% FOREACH optionloo IN reserveloo.optionloop %] |
653 |
[% END %][% ELSE %]<option value=""></option>[% END %] |
613 |
[% IF ( optionloo.selected ) %] |
654 |
<option value="del">del</option> |
614 |
<option value="[% optionloo.num %]" selected="selected">[% optionloo.num %]</option> |
|
|
615 |
[% ELSE %] |
616 |
<option value="[% optionloo.num %]">[% optionloo.num %]</option> |
617 |
[% END %] |
618 |
[% END %] |
619 |
[% ELSIF !reserveloo.wait %] |
620 |
<option value="[% reserveloo.priority %]" selected="selected">[% reserveloo.priority %]</option> |
621 |
[% END %] |
622 |
<option value="del">del</option> |
623 |
</select> |
655 |
</select> |
624 |
</td> |
656 |
</td> |
625 |
|
657 |
|
Lines 774-777
function checkMultiHold() {
Link Here
|
774 |
|
806 |
|
775 |
</div> |
807 |
</div> |
776 |
</div> |
808 |
</div> |
|
|
809 |
[% IF ( multi_hold ) %] |
810 |
<form id="reloadPickupLocationForm" name="reloadPickupLocationForm" method="post" action="request.pl"> |
811 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
812 |
<input type="hidden" name="type" value="str8" /> |
813 |
<input type="hidden" name="multi_hold" value="[% multi_hold %]"/> |
814 |
<input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers %]"/> |
815 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
816 |
<input type="hidden" name="request" value="any"/> |
817 |
<input type="hidden" name="pickup" value="fromJavascript" /> |
818 |
[% FOREACH biblioloo IN biblioloop %] |
819 |
<input type="hidden" name="title_[% biblioloo.biblionumber %]" value="[% biblioloo.title |html %]"/> |
820 |
<input type="hidden" name="rank_[% biblioloo.biblionumber %]" value="[% biblioloo.rank %]"/> |
821 |
[% END %] |
822 |
</form> |
823 |
[% ELSE %] |
824 |
<form id="reloadPickupLocationForm" name="reloadPickupLocationForm" method="post" action="request.pl"> |
825 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
826 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
827 |
<input type="hidden" name="pickup" value="fromJavascript" /> |
828 |
</form> |
829 |
[% END %] |
830 |
|
777 |
[% INCLUDE 'intranet-bottom.inc' %] |
831 |
[% INCLUDE 'intranet-bottom.inc' %] |