Lines 119-125
Link Here
|
119 |
<div id="bigloop"> |
119 |
<div id="bigloop"> |
120 |
|
120 |
|
121 |
[% FOREACH bibitemloo IN bibitemloop %] |
121 |
[% FOREACH bibitemloo IN bibitemloop %] |
122 |
<div class="holdrow"> |
122 |
<div class="holdrow" id="holdrow_[% bibitemloo.biblionumber %]"> |
123 |
<p> |
123 |
<p> |
124 |
[% IF ( bibitemloo.holdable ) %] |
124 |
[% IF ( bibitemloo.holdable ) %] |
125 |
<input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/> |
125 |
<input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/> |
Lines 249-255
Link Here
|
249 |
</li> |
249 |
</li> |
250 |
[% END # / IF OpacHoldNotes %] |
250 |
[% END # / IF OpacHoldNotes %] |
251 |
|
251 |
|
252 |
[% IF OPACItemHolds == '1' or OPACItemHolds == 'force' %] |
252 |
[% IF OPACItemHolds %] |
253 |
<!-- ITEM HOLDS --> |
253 |
<!-- ITEM HOLDS --> |
254 |
<li class="lradio place_on_type" style="display:none;"> |
254 |
<li class="lradio place_on_type" style="display:none;"> |
255 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available item</label> |
255 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available item</label> |
Lines 268-274
Link Here
|
268 |
/> |
268 |
/> |
269 |
[% END %] |
269 |
[% END %] |
270 |
<label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label> |
270 |
<label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label> |
271 |
[% IF OPACItemHolds == "force" %] |
271 |
[% IF bibitemloo.force_item_holds %] |
272 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
272 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
273 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
273 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
274 |
class="selectspecific" |
274 |
class="selectspecific" |
Lines 286-292
Link Here
|
286 |
[% END # / IF OPACItemHolds %] |
286 |
[% END # / IF OPACItemHolds %] |
287 |
</ul> |
287 |
</ul> |
288 |
|
288 |
|
289 |
[% IF OPACItemHolds == '1' || OPACItemHolds == 'force' %] |
289 |
[% IF OPACItemHolds %] |
290 |
<table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber %]"> |
290 |
<table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber %]"> |
291 |
<caption>Select a specific item:</caption> |
291 |
<caption>Select a specific item:</caption> |
292 |
<tr> |
292 |
<tr> |
Lines 466-473
Link Here
|
466 |
// Hides all 'specific copy' table rows on load. |
466 |
// Hides all 'specific copy' table rows on load. |
467 |
$(".copiesrow").hide(); |
467 |
$(".copiesrow").hide(); |
468 |
|
468 |
|
469 |
[% IF OPACItemHolds == 'force' %] |
469 |
[% FOREACH bibitemloo IN bibitemloop %] |
470 |
[% FOREACH bibitemloo IN bibitemloop %] |
470 |
[% IF bibitemloo.force_item_holds %] |
471 |
[% IF bibitemloo.holdable %] |
471 |
[% IF bibitemloo.holdable %] |
472 |
$("#toggle-hold-options-[% bibitemloo.biblionumber %]").click(); |
472 |
$("#toggle-hold-options-[% bibitemloo.biblionumber %]").click(); |
473 |
$("#copiesrow_[% bibitemloo.biblionumber %]").show(); |
473 |
$("#copiesrow_[% bibitemloo.biblionumber %]").show(); |
Lines 529-543
Link Here
|
529 |
|
529 |
|
530 |
$("#place_on_hdr").show(); |
530 |
$("#place_on_hdr").show(); |
531 |
|
531 |
|
532 |
[% IF OPACItemHolds == '1' %] |
532 |
[% FOREACH bibitemloo IN bibitemloop %] |
533 |
$(".place_on_type").show(); |
533 |
[% IF OPACItemHolds == '1' OR !bibitemloo.force_item_holds %] |
|
|
534 |
$("#holdrow_[% bibitemloo.biblionumber %]").find(".place_on_type").show(); |
534 |
// onload, selectany is checked |
535 |
// onload, selectany is checked |
535 |
$(".selectany").attr("checked", "checked"); |
536 |
$("#holdrow_[% bibitemloo.biblionumber %]").find(".selectany").attr("checked", "checked"); |
|
|
537 |
[% END %] |
536 |
[% END %] |
538 |
[% END %] |
537 |
|
539 |
|
538 |
// If the user is *allowed* to choose a specific item |
540 |
// If the user is *allowed* to choose a specific item |
539 |
// The first one is preselected |
541 |
// The first one is preselected |
540 |
[% IF OPACItemHolds =="1" %] |
542 |
[% IF OPACItemHolds %] |
541 |
$("table.copiesrow").each(function(){ |
543 |
$("table.copiesrow").each(function(){ |
542 |
var id = suffixOf($(this).attr("id"), "_"); |
544 |
var id = suffixOf($(this).attr("id"), "_"); |
543 |
select_first_available(id); |
545 |
select_first_available(id); |