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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-2 / +1 lines)
Lines 245-251 Link Here
245
                                                            [% SET at_least_one_library_not_available_for_pickup = 0 %]
245
                                                            [% SET at_least_one_library_not_available_for_pickup = 0 %]
246
                                                            <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]">
246
                                                            <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]">
247
                                                                [% FOREACH library IN Branches.pickup_locations({ search_params => { biblio => bibitemloo.biblionumber, patron => logged_in_user }, selected => branch }) %]
247
                                                                [% FOREACH library IN Branches.pickup_locations({ search_params => { biblio => bibitemloo.biblionumber, patron => logged_in_user }, selected => branch }) %]
248
                                                                    [% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %]
248
                                                                    [% SET pickup_available_at = bibitemloo.not_available_at.grep("^" _ library.branchcode _ "\$").size ? 0 : 1 %]
249
                                                                    [% IF library.selected AND pickup_available_at %]
249
                                                                    [% IF library.selected AND pickup_available_at %]
250
                                                                        <option value="[% library.branchcode | html %]" selected="selected" >[% library.branchname | html %]</option>
250
                                                                        <option value="[% library.branchcode | html %]" selected="selected" >[% library.branchname | html %]</option>
251
                                                                    [% ELSIF pickup_available_at %]
251
                                                                    [% ELSIF pickup_available_at %]
252
- 

Return to bug 25024