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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-2 / +10 lines)
Lines 253-260 Link Here
253
                <select name="multibranchlimit" id="categoryloop">
253
                <select name="multibranchlimit" id="categoryloop">
254
                    <option value=""> -- none -- </option>
254
                    <option value=""> -- none -- </option>
255
                    [% FOREACH sg IN search_groups %]
255
                    [% FOREACH sg IN search_groups %]
256
                        [% UNLESS sg.branchcode %]
256
                        [% IF sg.libraries %]
257
                            <option value="[% sg.id | html %]">[% sg.title | html %]</option>
257
                            [% SET groups = sg %]
258
                        [% ELSE %]
259
                            [% SET groups = sg.children %]
260
                        [% END %]
261
262
                        [% FOREACH g IN groups %]
263
                            [% UNLESS g.branchcode %]
264
                                <option value="[% g.id | html %]">[% g.title | html %]</option>
265
                            [% END %]
258
                        [% END %]
266
                        [% END %]
259
                    [% END %]
267
                    [% END %]
260
                </select>
268
                </select>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-4 / +12 lines)
Lines 232-242 Link Here
232
                                                </optgroup>
232
                                                </optgroup>
233
                                                <optgroup label="Groups">
233
                                                <optgroup label="Groups">
234
                                                    [% FOREACH lsg IN LibrarySearchGroups %]
234
                                                    [% FOREACH lsg IN LibrarySearchGroups %]
235
                                                        [% IF lsg.id == opac_name %]
235
                                                        [% IF lsg.libraries %]
236
                                                            <option selected="selected" value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
236
                                                            [% SET groups = lsg %]
237
                                                        [% ELSE %]
237
                                                        [% ELSE %]
238
                                                            <option value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
238
                                                            [% SET groups = lsg.children %]
239
                                                        [% END # / bc.selected %]
239
                                                        [% END %]
240
241
                                                        [% FOREACH g IN groups %]
242
                                                            [% IF g.id == opac_name %]
243
                                                                <option selected="selected" value="multibranchlimit-[% g.id | html %]">[% g.title | html %]</option>
244
                                                            [% ELSE %]
245
                                                                <option value="multibranchlimit-[% g.id | html %]">[% g.title | html %]</option>
246
                                                            [% END # / bc.selected %]
247
                                                        [% END %]
240
                                                    [% END %]
248
                                                    [% END %]
241
                                                </optgroup>
249
                                                </optgroup>
242
                                            [% END # / BranchCategoriesLoop %]
250
                                            [% END # / BranchCategoriesLoop %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-2 / +9 lines)
Lines 232-238 Link Here
232
                                        <select name="multibranchlimit" id="categoryloop">
232
                                        <select name="multibranchlimit" id="categoryloop">
233
                                            <option value=""> -- none -- </option>
233
                                            <option value=""> -- none -- </option>
234
                                            [% FOREACH sg IN search_groups %]
234
                                            [% FOREACH sg IN search_groups %]
235
                                                <option value="[% sg.id | html %]">[% sg.title | html %]</option>
235
                                                [% IF sg.libraries %]
236
                                                    [% SET groups = sg %]
237
                                                [% ELSE %]
238
                                                    [% SET groups = sg.children %]
239
                                                [% END %]
240
241
                                                [% FOREACH g IN groups %]
242
                                                    <option value="[% g.id | html %]">[% g.title | html %]</option>
243
                                                [% END %]
236
                                            [% END %]
244
                                            [% END %]
237
                                        </select>
245
                                        </select>
238
                                    [% END %]
246
                                    [% END %]
239
- 

Return to bug 22173