Lines 215-226
Link Here
|
215 |
<label for="branch_[% bibitemloo.biblionumber %]">Pick up location:</label> |
215 |
<label for="branch_[% bibitemloo.biblionumber %]">Pick up location:</label> |
216 |
[% UNLESS ( bibitemloo.holdable ) %] |
216 |
[% UNLESS ( bibitemloo.holdable ) %] |
217 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled"> |
217 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]" disabled="disabled"> |
218 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %] |
218 |
[% PROCESS options_for_libraries libraries => Branches.pickup_locations( selected => branch ) %] |
219 |
</select> |
219 |
</select> |
220 |
[% ELSE %] |
220 |
[% ELSE %] |
221 |
[% SET at_least_one_library_not_available_for_pickup = 0 %] |
221 |
[% SET at_least_one_library_not_available_for_pickup = 0 %] |
222 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]"> |
222 |
<select name="branch" id="branch_[% bibitemloo.biblionumber %]"> |
223 |
[% FOREACH library IN Branches.all( selected => branch) %] |
223 |
[% FOREACH library IN Branches.pickup_locations( selected => branch) %] |
224 |
[% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %] |
224 |
[% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %] |
225 |
[% IF library.selected AND pickup_available_at %] |
225 |
[% IF library.selected AND pickup_available_at %] |
226 |
<option value="[% library.branchcode %]" selected="selected" >[% library.branchname %]</option> |
226 |
<option value="[% library.branchcode %]" selected="selected" >[% library.branchname %]</option> |
227 |
- |
|
|