Lines 275-284
Link Here
|
275 |
[% END # / UNLESS singleBranchMode %] |
275 |
[% END # / UNLESS singleBranchMode %] |
276 |
</ul> |
276 |
</ul> |
277 |
|
277 |
|
278 |
[% IF pickup_delays %] |
|
|
279 |
<p class="pickup_delay" style="display:none;">When your item is ready for pickup, you will have <span id="pickup_delay_days_[% bibitemloo.biblionumber | html %]"></span> days to pick it up from this library.</p> |
280 |
[% END %] |
281 |
|
282 |
<a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber | html %]" style="display:none;" href="#">Show more options</a> |
278 |
<a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber | html %]" style="display:none;" href="#">Show more options</a> |
283 |
|
279 |
|
284 |
<div id="hold-options-[% bibitemloo.biblionumber | html %]" class="hold-options"> |
280 |
<div id="hold-options-[% bibitemloo.biblionumber | html %]" class="hold-options"> |
Lines 503-522
Link Here
|
503 |
<script> |
499 |
<script> |
504 |
var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection."); |
500 |
var MSG_NO_ITEM_SELECTED = _("Expecting a specific item selection."); |
505 |
|
501 |
|
506 |
function calculate_delay_days(){ |
|
|
507 |
$(".branch > select").each(function(){ |
508 |
var selected_branch = $(this).val(); |
509 |
var branch_biblionumber = $(this).attr('id'); |
510 |
var biblionumber = branch_biblionumber.slice( branch_biblionumber.indexOf('_')+1 ); |
511 |
[% FOREACH branchcode IN pickup_delays.keys %] |
512 |
var branchcode = "[% branchcode | html %]"; |
513 |
if ( branchcode == selected_branch ) { |
514 |
$("#pickup_delay_days_" + biblionumber).text([% pickup_delays.$branchcode | html %]); |
515 |
} |
516 |
[% END %] |
517 |
}); |
518 |
} |
519 |
|
520 |
$(document).ready(function() { |
502 |
$(document).ready(function() { |
521 |
|
503 |
|
522 |
$(".toggle_unholdable").click(function(e){ |
504 |
$(".toggle_unholdable").click(function(e){ |
Lines 524-535
Link Here
|
524 |
$(this).parent('div').find(".unholdable").toggle(); |
506 |
$(this).parent('div').find(".unholdable").toggle(); |
525 |
}); |
507 |
}); |
526 |
|
508 |
|
527 |
calculate_delay_days(); |
|
|
528 |
$(".pickup_delay").show(); |
529 |
$(".branch > select").change(function(){ |
530 |
calculate_delay_days(); |
531 |
}); |
532 |
|
533 |
$("#hold-request-form").preventDoubleFormSubmit(); |
509 |
$("#hold-request-form").preventDoubleFormSubmit(); |
534 |
var copiesRowId = null; |
510 |
var copiesRowId = null; |
535 |
var wasSpecific = false; |
511 |
var wasSpecific = false; |