Lines 273-282
Link Here
|
273 |
[% END # / UNLESS singleBranchMode %] |
273 |
[% END # / UNLESS singleBranchMode %] |
274 |
</ul> |
274 |
</ul> |
275 |
|
275 |
|
276 |
[% IF pickup_delays %] |
|
|
277 |
<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> |
278 |
[% END %] |
279 |
|
280 |
<a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber | html %]" style="display:none;" href="#">Show more options</a> |
276 |
<a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber | html %]" style="display:none;" href="#">Show more options</a> |
281 |
|
277 |
|
282 |
<div id="hold-options-[% bibitemloo.biblionumber | html %]" class="hold-options"> |
278 |
<div id="hold-options-[% bibitemloo.biblionumber | html %]" class="hold-options"> |
Lines 512-531
Link Here
|
512 |
$(radios).first().attr("checked", "checked"); |
508 |
$(radios).first().attr("checked", "checked"); |
513 |
} |
509 |
} |
514 |
|
510 |
|
515 |
function calculate_delay_days(){ |
|
|
516 |
$(".branch > select").each(function(){ |
517 |
var selected_branch = $(this).val(); |
518 |
var branch_biblionumber = $(this).attr('id'); |
519 |
var biblionumber = branch_biblionumber.slice( branch_biblionumber.indexOf('_')+1 ); |
520 |
[% FOREACH branchcode IN pickup_delays.keys %] |
521 |
var branchcode = "[% branchcode | html %]"; |
522 |
if ( branchcode == selected_branch ) { |
523 |
$("#pickup_delay_days_" + biblionumber).text([% pickup_delays.$branchcode | html %]); |
524 |
} |
525 |
[% END %] |
526 |
}); |
527 |
} |
528 |
|
529 |
$(document).ready(function() { |
511 |
$(document).ready(function() { |
530 |
|
512 |
|
531 |
$(".toggle_unholdable").click(function(e){ |
513 |
$(".toggle_unholdable").click(function(e){ |
Lines 533-544
Link Here
|
533 |
$(this).parent('div').find(".unholdable").toggle(); |
515 |
$(this).parent('div').find(".unholdable").toggle(); |
534 |
}); |
516 |
}); |
535 |
|
517 |
|
536 |
calculate_delay_days(); |
|
|
537 |
$(".pickup_delay").show(); |
538 |
$(".branch > select").change(function(){ |
539 |
calculate_delay_days(); |
540 |
}); |
541 |
|
542 |
$("#hold-request-form").preventDoubleFormSubmit(); |
518 |
$("#hold-request-form").preventDoubleFormSubmit(); |
543 |
var copiesRowId = null; |
519 |
var copiesRowId = null; |
544 |
var wasSpecific = false; |
520 |
var wasSpecific = false; |