Lines 313-318
Link Here
|
313 |
</li> |
313 |
</li> |
314 |
[% END %] |
314 |
[% END %] |
315 |
|
315 |
|
|
|
316 |
[% UNLESS bibitemloo.forced_hold_level && ( bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'record' ) %] |
317 |
[% IF bibitemloo.object.item_groups %] |
318 |
<li> |
319 |
<label for="itemtype">Request specific item group:</label> |
320 |
<select name="item_group_id_[% bibitemloo.biblionumber | html %]" id="item_group_id_[% bibitemloo.biblionumber | html %]"> |
321 |
<option value="">Any item group</option> |
322 |
[% FOREACH g IN bibitemloo.object.item_groups.search({}, { order_by => ['display_order'] }) %] |
323 |
<option value="[% g.id | html %]">[% g.description | html %]</option> |
324 |
[% END %] |
325 |
</select> |
326 |
</li> |
327 |
[% END %] |
328 |
[% END %] |
329 |
|
316 |
[% IF ( OpacHoldNotes ) %] |
330 |
[% IF ( OpacHoldNotes ) %] |
317 |
<li> |
331 |
<li> |
318 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]"> |
332 |
<div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]"> |
Lines 325-331
Link Here
|
325 |
[% IF bibitemloo.itemholdable %] |
339 |
[% IF bibitemloo.itemholdable %] |
326 |
<!-- ITEM HOLDS --> |
340 |
<!-- ITEM HOLDS --> |
327 |
<li class="lradio place_on_type" style="display:none;"> |
341 |
<li class="lradio place_on_type" style="display:none;"> |
328 |
[% IF NOT bibitemloo.force_hold %] |
342 |
[% UNLESS bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'item_group' %] |
329 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label> |
343 |
<label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label> |
330 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
344 |
<input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]" |
331 |
id="reqany_[% bibitemloo.biblionumber | html %]" |
345 |
id="reqany_[% bibitemloo.biblionumber | html %]" |
Lines 580-589
Link Here
|
580 |
var select_specific = $("#reqspecific_"+biblioNum).is(":checked"); |
594 |
var select_specific = $("#reqspecific_"+biblioNum).is(":checked"); |
581 |
// If the checkbox is checked AND we want a specific item, we display the items block |
595 |
// If the checkbox is checked AND we want a specific item, we display the items block |
582 |
if ( $(checkbox).is(":checked") && select_specific ) { |
596 |
if ( $(checkbox).is(":checked") && select_specific ) { |
|
|
597 |
if ( $(`#item_group_id_${biblioNum}`).length ) { |
598 |
$(`#item_group_id_${biblioNum}`).val("").attr('disabled', 'disabled'); |
599 |
} |
583 |
$(newCopiesRowId).show(); |
600 |
$(newCopiesRowId).show(); |
584 |
} else { |
601 |
} else { |
|
|
602 |
if ( $(`#item_group_id_${biblioNum}`).length ) { |
603 |
$(`#item_group_id_${biblioNum}`).removeAttr('disabled'); |
604 |
} |
585 |
$(newCopiesRowId).hide(); |
605 |
$(newCopiesRowId).hide(); |
586 |
} |
606 |
} |
587 |
}; |
607 |
}; |
588 |
|
608 |
|
589 |
$("#place_on_hdr").show(); |
609 |
$("#place_on_hdr").show(); |