|
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 243-249
Link Here
|
| 243 |
</li> |
243 |
</li> |
| 244 |
[% END # / IF OpacHoldNotes %] |
244 |
[% END # / IF OpacHoldNotes %] |
| 245 |
|
245 |
|
| 246 |
[% IF OPACItemHolds == '1' or OPACItemHolds == 'force' %] |
246 |
[% IF OPACItemHolds %] |
| 247 |
<!-- ITEM HOLDS --> |
247 |
<!-- ITEM HOLDS --> |
| 248 |
<li class="lradio place_on_type" style="display:none;"> |
248 |
<li class="lradio place_on_type" style="display:none;"> |
| 249 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available item</label> |
249 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber %]">Next available item</label> |
|
Lines 262-268
Link Here
|
| 262 |
/> |
262 |
/> |
| 263 |
[% END %] |
263 |
[% END %] |
| 264 |
<label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label> |
264 |
<label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber %]">A specific item</label> |
| 265 |
[% IF OPACItemHolds == "force" %] |
265 |
[% IF bibitemloo.force_item_holds %] |
| 266 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
266 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber %]" |
| 267 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
267 |
id="reqspecific_[% bibitemloo.biblionumber %]" |
| 268 |
class="selectspecific" |
268 |
class="selectspecific" |
|
Lines 280-286
Link Here
|
| 280 |
[% END # / IF OPACItemHolds %] |
280 |
[% END # / IF OPACItemHolds %] |
| 281 |
</ul> |
281 |
</ul> |
| 282 |
|
282 |
|
| 283 |
[% IF OPACItemHolds == '1' || OPACItemHolds == 'force' %] |
283 |
[% IF OPACItemHolds %] |
| 284 |
<table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber %]"> |
284 |
<table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber %]"> |
| 285 |
<caption>Select a specific item:</caption> |
285 |
<caption>Select a specific item:</caption> |
| 286 |
<tr> |
286 |
<tr> |
|
Lines 460-467
Link Here
|
| 460 |
// Hides all 'specific copy' table rows on load. |
460 |
// Hides all 'specific copy' table rows on load. |
| 461 |
$(".copiesrow").hide(); |
461 |
$(".copiesrow").hide(); |
| 462 |
|
462 |
|
| 463 |
[% IF OPACItemHolds == 'force' %] |
463 |
[% FOREACH bibitemloo IN bibitemloop %] |
| 464 |
[% FOREACH bibitemloo IN bibitemloop %] |
464 |
[% IF bibitemloo.force_item_holds %] |
| 465 |
[% IF bibitemloo.holdable %] |
465 |
[% IF bibitemloo.holdable %] |
| 466 |
$("#toggle-hold-options-[% bibitemloo.biblionumber %]").click(); |
466 |
$("#toggle-hold-options-[% bibitemloo.biblionumber %]").click(); |
| 467 |
$("#copiesrow_[% bibitemloo.biblionumber %]").show(); |
467 |
$("#copiesrow_[% bibitemloo.biblionumber %]").show(); |
|
Lines 523-537
Link Here
|
| 523 |
|
523 |
|
| 524 |
$("#place_on_hdr").show(); |
524 |
$("#place_on_hdr").show(); |
| 525 |
|
525 |
|
| 526 |
[% IF OPACItemHolds == '1' %] |
526 |
[% FOREACH bibitemloo IN bibitemloop %] |
| 527 |
$(".place_on_type").show(); |
527 |
[% IF OPACItemHolds == '1' OR !bibitemloo.force_item_holds %] |
|
|
528 |
$("#holdrow_[% bibitemloo.biblionumber %]").find(".place_on_type").show(); |
| 528 |
// onload, selectany is checked |
529 |
// onload, selectany is checked |
| 529 |
$(".selectany").attr("checked", "checked"); |
530 |
$("#holdrow_[% bibitemloo.biblionumber %]").find(".selectany").attr("checked", "checked"); |
|
|
531 |
[% END %] |
| 530 |
[% END %] |
532 |
[% END %] |
| 531 |
|
533 |
|
| 532 |
// If the user is *allowed* to choose a specific item |
534 |
// If the user is *allowed* to choose a specific item |
| 533 |
// The first one is preselected |
535 |
// The first one is preselected |
| 534 |
[% IF OPACItemHolds =="1" %] |
536 |
[% IF OPACItemHolds %] |
| 535 |
$("table.copiesrow").each(function(){ |
537 |
$("table.copiesrow").each(function(){ |
| 536 |
var id = suffixOf($(this).attr("id"), "_"); |
538 |
var id = suffixOf($(this).attr("id"), "_"); |
| 537 |
select_first_available(id); |
539 |
select_first_available(id); |