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

(-)a/catalogue/search.pl (-1 lines)
Lines 235-241 my @search_groups = Link Here
235
@search_groups = sort { $a->title cmp $b->title } @search_groups;
235
@search_groups = sort { $a->title cmp $b->title } @search_groups;
236
236
237
$template->param(
237
$template->param(
238
    selected_branchcode => ( C4::Context->IsSuperLibrarian ? C4::Context->userenv : '' ),
239
    search_groups    => \@search_groups,
238
    search_groups    => \@search_groups,
240
);
239
);
241
240
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-2 / +1 lines)
Lines 287-293 Link Here
287
        <p><label for="branchloop">Individual libraries:</label><select name="limit" id="branchloop">
287
        <p><label for="branchloop">Individual libraries:</label><select name="limit" id="branchloop">
288
        <option value="">All libraries</option>
288
        <option value="">All libraries</option>
289
        [%# FIXME Should not we filter the libraries displayed? %]
289
        [%# FIXME Should not we filter the libraries displayed? %]
290
        [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( selected => selected_branchcode, unfiltered => 1 ) %]
290
        [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( unfiltered => 1, do_not_select_my_library => 1 ) %]
291
        </select></p>
291
        </select></p>
292
    <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
292
    <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
293
        [% IF search_groups %]
293
        [% IF search_groups %]
294
- 

Return to bug 28622