|
Lines 536-563
Link Here
|
| 536 |
<label for="holdnotes">Notes:</label> |
536 |
<label for="holdnotes">Notes:</label> |
| 537 |
<textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea> |
537 |
<textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea> |
| 538 |
</li> |
538 |
</li> |
| 539 |
<li> |
|
|
| 540 |
<label for="pickup">Pickup at:</label> |
| 541 |
<select name="pickup" id="pickup" |
| 542 |
data-biblio-id="[% biblio.biblionumber | html %]" |
| 543 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 544 |
data-pickup-location-source="biblio"> |
| 545 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %] |
| 546 |
</select> |
| 547 |
</li> |
| 548 |
|
| 549 |
[% IF Koha.Preference('AllowHoldItemTypeSelection') %] |
| 550 |
<li> |
| 551 |
<label for="itemtype">Request specific item type:</label> |
| 552 |
<select name="itemtype" id="itemtype"> |
| 553 |
<option value="">Any item type</option> |
| 554 |
[%- FOREACH itemtype IN available_itemtypes %] |
| 555 |
<option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option> |
| 556 |
[%- END %] |
| 557 |
</select> |
| 558 |
</li> |
| 559 |
[% END %] |
| 560 |
|
| 561 |
[% IF ( reserve_in_future ) %] |
539 |
[% IF ( reserve_in_future ) %] |
| 562 |
<li> |
540 |
<li> |
| 563 |
<label for="from">Hold starts on date:</label> |
541 |
<label for="from">Hold starts on date:</label> |
|
Lines 570-588
Link Here
|
| 570 |
<input id="expiration_date" name="expiration_date" id="to" size="10" type="text" class="flatpickr" data-flatpickr-futuredate="true" /> |
548 |
<input id="expiration_date" name="expiration_date" id="to" size="10" type="text" class="flatpickr" data-flatpickr-futuredate="true" /> |
| 571 |
</li> |
549 |
</li> |
| 572 |
|
550 |
|
|
|
551 |
|
| 552 |
<li id="non_priority_list_item"> |
| 553 |
<label for="non_priority">Non priority hold:</label> |
| 554 |
<input name="non_priority" id="non_priority" type="checkbox" /> |
| 555 |
<span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span> |
| 556 |
</li> |
| 557 |
</ol> |
| 558 |
<fieldset class="rows"> |
| 559 |
<legend> |
| 560 |
<label for="requestany"> |
| 561 |
Hold next available item |
| 562 |
</label> |
| 563 |
</legend> |
| 564 |
[% IF force_hold_level == 'item' %] |
| 565 |
<input type="checkbox" id="requestany" name="request" disabled="true" /> |
| 566 |
[% ELSIF force_hold_level == 'record' %] |
| 567 |
<input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/> |
| 568 |
<input type="hidden" name="request" value="Any"/> |
| 569 |
[% ELSE %] |
| 570 |
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" /> |
| 571 |
[% END %] |
| 572 |
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> |
| 573 |
<ol> |
| 574 |
|
| 573 |
<li> |
575 |
<li> |
| 574 |
<label for="requestany">Hold next available item </label> |
576 |
<label for="pickup">Pickup at:</label> |
| 575 |
[% IF force_hold_level == 'item' %] |
577 |
<select name="pickup" id="pickup" |
| 576 |
<input type="checkbox" id="requestany" name="request" disabled="true" /> |
578 |
data-biblio-id="[% biblio.biblionumber | html %]" |
| 577 |
[% ELSIF force_hold_level == 'record' %] |
579 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 578 |
<input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/> |
580 |
data-pickup-location-source="biblio"> |
| 579 |
<input type="hidden" name="request" value="Any"/> |
581 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %] |
| 580 |
[% ELSE %] |
582 |
</select> |
| 581 |
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" /> |
|
|
| 582 |
[% END %] |
| 583 |
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> |
| 584 |
</li> |
583 |
</li> |
| 585 |
|
584 |
|
|
|
585 |
[% IF Koha.Preference('AllowHoldItemTypeSelection') %] |
| 586 |
<li> |
| 587 |
<label for="itemtype">Request specific item type:</label> |
| 588 |
<select name="itemtype" id="itemtype"> |
| 589 |
<option value="">Any item type</option> |
| 590 |
[%- FOREACH itemtype IN available_itemtypes %] |
| 591 |
<option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option> |
| 592 |
[%- END %] |
| 593 |
</select> |
| 594 |
</li> |
| 595 |
[% END %] |
| 586 |
[% IF remaining_holds_for_record > 1 %] |
596 |
[% IF remaining_holds_for_record > 1 %] |
| 587 |
<li> |
597 |
<li> |
| 588 |
<label for="holds_to_place_count">Holds to place (count)</label> |
598 |
<label for="holds_to_place_count">Holds to place (count)</label> |
|
Lines 591-603
Link Here
|
| 591 |
[% ELSE %] |
601 |
[% ELSE %] |
| 592 |
<input type="hidden" name="holds_to_place_count" value="1" /> |
602 |
<input type="hidden" name="holds_to_place_count" value="1" /> |
| 593 |
[% END %] |
603 |
[% END %] |
|
|
604 |
</ol> |
| 605 |
</fieldset> |
| 594 |
|
606 |
|
| 595 |
<li id="non_priority_list_item"> |
|
|
| 596 |
<label for="non_priority">Non priority hold:</label> |
| 597 |
<input name="non_priority" id="non_priority" type="checkbox" /> |
| 598 |
<span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span> |
| 599 |
</li> |
| 600 |
</ol> |
| 601 |
|
607 |
|
| 602 |
<fieldset class="action"> |
608 |
<fieldset class="action"> |
| 603 |
[% IF ( patron.borrowernumber ) %] |
609 |
[% IF ( patron.borrowernumber ) %] |
|
Lines 1285-1293
Link Here
|
| 1285 |
|
1291 |
|
| 1286 |
function ToggleHoldsToPlace() { |
1292 |
function ToggleHoldsToPlace() { |
| 1287 |
if ( $("#requestany").prop('checked') ) { |
1293 |
if ( $("#requestany").prop('checked') ) { |
| 1288 |
$("#holds_to_place_count").prop('disabled', false); |
1294 |
$("#holds_to_place_count,#pickup,#itemtype").prop('disabled', false); |
| 1289 |
} else { |
1295 |
} else { |
| 1290 |
$("#holds_to_place_count").prop('disabled', true); |
1296 |
$("#holds_to_place_count,#pickup,#itemtype").prop('disabled', true); |
| 1291 |
} |
1297 |
} |
| 1292 |
} |
1298 |
} |
| 1293 |
ToggleHoldsToPlace(); |
1299 |
ToggleHoldsToPlace(); |
|
Lines 1523-1532
Link Here
|
| 1523 |
}); |
1529 |
}); |
| 1524 |
if(onechecked == 1){ |
1530 |
if(onechecked == 1){ |
| 1525 |
$("#requestany").prop("checked", false); |
1531 |
$("#requestany").prop("checked", false); |
| 1526 |
$("#holds_to_place_count").prop('disabled', true); |
1532 |
$("#holds_to_place_count,#pickup,#itemtype").prop('disabled', true); |
| 1527 |
} else { |
1533 |
} else { |
| 1528 |
$("#requestany").prop("checked",true); |
1534 |
$("#requestany").prop("checked",true); |
| 1529 |
$("#holds_to_place_count").prop('disabled', false); |
1535 |
$("#holds_to_place_count,#pickup,#itemtype").prop('disabled', false); |
| 1530 |
} |
1536 |
} |
| 1531 |
}); |
1537 |
}); |
| 1532 |
var prev_rank_request; |
1538 |
var prev_rank_request; |
| 1533 |
- |
|
|