Lines 464-516
Link Here
|
464 |
<label for="holdnotes">Notes:</label> |
464 |
<label for="holdnotes">Notes:</label> |
465 |
<textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea> |
465 |
<textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea> |
466 |
</li> |
466 |
</li> |
467 |
<li> |
|
|
468 |
<label for="pickup">Pickup at:</label> |
469 |
<select name="pickup" id="pickup" |
470 |
data-biblio-id="[% biblio.biblionumber | html %]" |
471 |
data-patron-id="[% patron.borrowernumber | html %]" |
472 |
data-pickup-location-source="biblio"> |
473 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %] |
474 |
</select> |
475 |
</li> |
476 |
[% IF Koha.Preference('AllowHoldItemTypeSelection') %] |
477 |
<li> |
478 |
<label for="itemtype">Request specific item type:</label> |
479 |
<select name="itemtype" id="itemtype"> |
480 |
<option value="">Any item type</option> |
481 |
[%- FOREACH itemtype IN available_itemtypes %] |
482 |
<option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option> |
483 |
[%- END %] |
484 |
</select> |
485 |
</li> |
486 |
[% END %] |
487 |
[% IF ( reserve_in_future ) %] |
467 |
[% IF ( reserve_in_future ) %] |
488 |
<li> |
468 |
<li> |
489 |
<label for="from">Hold starts on date:</label> |
469 |
<label for="from">Hold starts on date:</label> |
490 |
<input id="reserve_date" name="reserve_date" id="from" size="10" type="text" data-date_to="expiration_date" class="flatpickr" data-flatpickr-futuredate="true" /> |
470 |
<input id="reserve_date" name="reserve_date" id="from" size="10" type="text" data-date_to="expiration_date" class="flatpickr" data-flatpickr-futuredate="true" /> |
491 |
</li> |
471 |
</li> |
492 |
[% END %] |
472 |
[% END %] |
493 |
<li> |
|
|
494 |
<label for="requestany">Hold next available item </label> |
495 |
[% IF force_hold_level == 'item' %] |
496 |
<input type="checkbox" id="requestany" name="request" disabled="true" /> |
497 |
[% ELSIF force_hold_level == 'record' %] |
498 |
<input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/> |
499 |
<input type="hidden" name="request" value="Any"/> |
500 |
[% ELSE %] |
501 |
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" /> |
502 |
[% END %] |
503 |
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> |
504 |
</li> |
505 |
|
473 |
|
506 |
[% IF remaining_holds_for_record > 1 %] |
|
|
507 |
<li> |
508 |
<label for="holds_to_place_count">Holds to place (count)</label> |
509 |
<input type="text" inputmode="numeric" pattern="[0-9]*" id="holds_to_place_count" name="holds_to_place_count" maxlength="[% remaining_holds_for_record | html %]" value="1" /> |
510 |
</li> |
511 |
[% ELSE %] |
512 |
<input type="hidden" name="holds_to_place_count" value="1" /> |
513 |
[% END %] |
514 |
|
474 |
|
515 |
<li> |
475 |
<li> |
516 |
<label for="to">Hold expires on date:</label> |
476 |
<label for="to">Hold expires on date:</label> |
Lines 521-526
Link Here
|
521 |
<input name="non_priority" id="non_priority" type="checkbox" /> |
481 |
<input name="non_priority" id="non_priority" type="checkbox" /> |
522 |
<span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span> |
482 |
<span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span> |
523 |
</li> |
483 |
</li> |
|
|
484 |
<fieldset> |
485 |
<legend> |
486 |
<label for="requestany"> |
487 |
Hold next available item |
488 |
[% IF force_hold_level == 'item' %] |
489 |
<input type="checkbox" id="requestany" name="request" disabled="true" /> |
490 |
[% ELSIF force_hold_level == 'record' %] |
491 |
<input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/> |
492 |
<input type="hidden" name="request" value="Any"/> |
493 |
[% ELSE %] |
494 |
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" /> |
495 |
[% END %] |
496 |
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> |
497 |
</label> |
498 |
</legend> |
499 |
<ol> |
500 |
<li> |
501 |
<label for="pickup">Pickup at:</label> |
502 |
<select name="pickup" id="pickup" |
503 |
data-biblio-id="[% biblio.biblionumber | html %]" |
504 |
data-patron-id="[% patron.borrowernumber | html %]" |
505 |
data-pickup-location-source="biblio"> |
506 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %] |
507 |
</select> |
508 |
</li> |
509 |
[% IF Koha.Preference('AllowHoldItemTypeSelection') %] |
510 |
<li> |
511 |
<label for="itemtype">Request specific item type:</label> |
512 |
<select name="itemtype" id="itemtype"> |
513 |
<option value="">Any item type</option> |
514 |
[%- FOREACH itemtype IN available_itemtypes %] |
515 |
<option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option> |
516 |
[%- END %] |
517 |
</select> |
518 |
</li> |
519 |
[% END %] |
520 |
[% IF remaining_holds_for_record > 1 %] |
521 |
<li> |
522 |
<label for="holds_to_place_count">Holds to place (count)</label> |
523 |
<input type="text" inputmode="numeric" pattern="[0-9]*" id="holds_to_place_count" name="holds_to_place_count" maxlength="[% remaining_holds_for_record | html %]" value="1" /> |
524 |
</li> |
525 |
[% ELSE %] |
526 |
<input type="hidden" name="holds_to_place_count" value="1" /> |
527 |
[% END %] |
528 |
</ol> |
529 |
</fieldset> |
524 |
</ol> |
530 |
</ol> |
525 |
<fieldset class="action"> |
531 |
<fieldset class="action"> |
526 |
[% IF ( patron.borrowernumber ) %] |
532 |
[% IF ( patron.borrowernumber ) %] |
Lines 1245-1253
Link Here
|
1245 |
}); |
1251 |
}); |
1246 |
function ToggleHoldsToPlace() { |
1252 |
function ToggleHoldsToPlace() { |
1247 |
if ( $("#requestany").prop('checked') ) { |
1253 |
if ( $("#requestany").prop('checked') ) { |
1248 |
$("#holds_to_place_count").prop('disabled', false); |
1254 |
$("#holds_to_place_count,#pickup,#itemtype").prop('disabled', false); |
1249 |
} else { |
1255 |
} else { |
1250 |
$("#holds_to_place_count").prop('disabled', true); |
1256 |
$("#holds_to_place_count,#pickup,#itemtype").prop('disabled', true); |
1251 |
} |
1257 |
} |
1252 |
} |
1258 |
} |
1253 |
ToggleHoldsToPlace(); |
1259 |
ToggleHoldsToPlace(); |
Lines 1487-1496
Link Here
|
1487 |
}); |
1493 |
}); |
1488 |
if(onechecked == 1){ |
1494 |
if(onechecked == 1){ |
1489 |
$("#requestany").prop("checked", false); |
1495 |
$("#requestany").prop("checked", false); |
1490 |
$("#holds_to_place_count").prop('disabled', true); |
1496 |
$("#holds_to_place_count,#pickup,#itemtype").prop('disabled', true); |
1491 |
} else { |
1497 |
} else { |
1492 |
$("#requestany").prop("checked",true); |
1498 |
$("#requestany").prop("checked",true); |
1493 |
$("#holds_to_place_count").prop('disabled', false); |
1499 |
$("#holds_to_place_count,#pickup,#itemtype").prop('disabled', false); |
1494 |
} |
1500 |
} |
1495 |
}); |
1501 |
}); |
1496 |
var prev_rank_request; |
1502 |
var prev_rank_request; |
1497 |
- |
|
|