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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-1 / +5 lines)
Lines 218-223 Link Here
218
                                                                        [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
218
                                                                        [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
219
                                                                    </select>
219
                                                                    </select>
220
                                                                [% ELSE %]
220
                                                                [% ELSE %]
221
                                                                    [% SET at_least_one_library_not_available_for_pickup = 0 %]
221
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber %]">
222
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber %]">
222
                                                                        [% FOREACH library IN Branches.all( selected => branch) %]
223
                                                                        [% FOREACH library IN Branches.all( selected => branch) %]
223
                                                                            [% 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 %]
Lines 226-235 Link Here
226
                                                                            [% ELSIF pickup_available_at %]
227
                                                                            [% ELSIF pickup_available_at %]
227
                                                                                <option value="[% library.branchcode %]">[% library.branchname %]</option>
228
                                                                                <option value="[% library.branchcode %]">[% library.branchname %]</option>
228
                                                                            [% ELSE %]
229
                                                                            [% ELSE %]
230
                                                                                [% SET at_least_one_library_not_available_for_pickup = 1 %]
229
                                                                                <option value="[% library.branchcode %]" disabled="disabled" title="At least one item is available at this library">[% library.branchname %]</option>
231
                                                                                <option value="[% library.branchcode %]" disabled="disabled" title="At least one item is available at this library">[% library.branchname %]</option>
230
                                                                            [% END %]
232
                                                                            [% END %]
231
                                                                        [% END %]
233
                                                                        [% END %]
232
                                                                    </select>
234
                                                                    </select>
235
                                                                    [% IF at_least_one_library_not_available_for_pickup %]
236
                                                                        Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
237
                                                                    [% END %]
233
                                                                [% END # / UNLESS bibitemloo.holdable %]
238
                                                                [% END # / UNLESS bibitemloo.holdable %]
234
                                                            </li>
239
                                                            </li>
235
                                                        [% END # / IF bibitemloo.holdable && choose_branch %]
240
                                                        [% END # / IF bibitemloo.holdable && choose_branch %]
236
- 

Return to bug 17453