View | Details | Raw Unified | Return to bug 7534
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-3 / +2 lines)
Lines 226-237 Link Here
226
                                                                <label for="branch_[% bibitemloo.biblionumber | html %]">Pick up location:</label>
226
                                                                <label for="branch_[% bibitemloo.biblionumber | html %]">Pick up location:</label>
227
                                                                [% UNLESS ( bibitemloo.holdable ) %]
227
                                                                [% UNLESS ( bibitemloo.holdable ) %]
228
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]" disabled="disabled">
228
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]" disabled="disabled">
229
                                                                        [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
229
                                                                        [% PROCESS options_for_libraries libraries => Branches.all({ search_params => { pickup_location => 1 }, selected => branch }) %]
230
                                                                    </select>
230
                                                                    </select>
231
                                                                [% ELSE %]
231
                                                                [% ELSE %]
232
                                                                    [% SET at_least_one_library_not_available_for_pickup = 0 %]
232
                                                                    [% SET at_least_one_library_not_available_for_pickup = 0 %]
233
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]">
233
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]">
234
                                                                        [% FOREACH library IN Branches.all( selected => branch) %]
234
                                                                        [% FOREACH library IN Branches.all({ search_params => { pickup_location => 1 }, selected => branch }) %]
235
                                                                            [% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %]
235
                                                                            [% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %]
236
                                                                            [% IF library.selected AND pickup_available_at %]
236
                                                                            [% IF library.selected AND pickup_available_at %]
237
                                                                                <option value="[% library.branchcode | html %]" selected="selected" >[% library.branchname | html %]</option>
237
                                                                                <option value="[% library.branchcode | html %]" selected="selected" >[% library.branchname | html %]</option>
238
- 

Return to bug 7534