Lines 305-310
Link Here
|
305 |
</li> |
305 |
</li> |
306 |
[% END %] |
306 |
[% END %] |
307 |
|
307 |
|
|
|
308 |
[% UNLESS bibitemloo.forced_hold_level && ( bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'record' ) %] |
309 |
[% IF bibitemloo.object.item_groups %] |
310 |
<li> |
311 |
<label for="itemtype">Request specific item group:</label> |
312 |
<select name="item_group_id_[% bibitemloo.biblionumber | html %]" id="item_group_id_[% bibitemloo.biblionumber | html %]"> |
313 |
<option value="">Any item group</option> |
314 |
[% FOREACH g IN bibitemloo.object.item_groups.search({}, { order_by => ['display_order'] }) %] |
315 |
<option value="[% g.id | html %]">[% g.description | html %]</option> |
316 |
[% END %] |
317 |
</select> |
318 |
</li> |
319 |
[% END %] |
320 |
[% END %] |
321 |
|
308 |
[% IF ( OpacHoldNotes ) %] |
322 |
[% IF ( OpacHoldNotes ) %] |
309 |
<li> |
323 |
<li> |
310 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]"> |
324 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]"> |
Lines 320-326
Link Here
|
320 |
[% IF bibitemloo.itemholdable %] |
334 |
[% IF bibitemloo.itemholdable %] |
321 |
<!-- ITEM HOLDS --> |
335 |
<!-- ITEM HOLDS --> |
322 |
<li class="lradio place_on_type" style="display:none;"> |
336 |
<li class="lradio place_on_type" style="display:none;"> |
323 |
[% IF NOT bibitemloo.force_hold %] |
337 |
[% UNLESS bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'item_group' %] |
324 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label> |
338 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label> |
325 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
339 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
326 |
id="reqany_[% bibitemloo.biblionumber | html %]" |
340 |
id="reqany_[% bibitemloo.biblionumber | html %]" |
Lines 590-599
Link Here
|
590 |
var select_specific = $("#reqspecific_"+biblioNum).is(":checked"); |
604 |
var select_specific = $("#reqspecific_"+biblioNum).is(":checked"); |
591 |
// If the checkbox is checked AND we want a specific item, we display the items block |
605 |
// If the checkbox is checked AND we want a specific item, we display the items block |
592 |
if ( $(checkbox).is(":checked") && select_specific ) { |
606 |
if ( $(checkbox).is(":checked") && select_specific ) { |
|
|
607 |
if ( $(`#item_group_id_${biblioNum}`).length ) { |
608 |
$(`#item_group_id_${biblioNum}`).val("").attr('disabled', 'disabled'); |
609 |
} |
593 |
$(newCopiesRowId).show(); |
610 |
$(newCopiesRowId).show(); |
594 |
} else { |
611 |
} else { |
|
|
612 |
if ( $(`#item_group_id_${biblioNum}`).length ) { |
613 |
$(`#item_group_id_${biblioNum}`).removeAttr('disabled'); |
614 |
} |
595 |
$(newCopiesRowId).hide(); |
615 |
$(newCopiesRowId).hide(); |
596 |
} |
616 |
} |
597 |
}; |
617 |
}; |
598 |
|
618 |
|
599 |
$("#place_on_hdr").show(); |
619 |
$("#place_on_hdr").show(); |