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

(-)a/catalogue/search.pl (+6 lines)
Lines 241-248 my @search_groups = Link Here
241
  Koha::Library::Groups->get_search_groups( { interface => 'staff' } )->as_list;
241
  Koha::Library::Groups->get_search_groups( { interface => 'staff' } )->as_list;
242
@search_groups = sort { $a->title cmp $b->title } @search_groups;
242
@search_groups = sort { $a->title cmp $b->title } @search_groups;
243
243
244
my $branch_limit = '';
245
if ( scalar $cgi->param('limit') =~ /branch:([\w-]+)/ ) {
246
    $branch_limit = $1;
247
}
248
244
$template->param(
249
$template->param(
245
    search_groups    => \@search_groups,
250
    search_groups    => \@search_groups,
251
    branch_limit     => $branch_limit
246
);
252
);
247
253
248
# load the Type stuff
254
# load the Type stuff
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue-search-box.inc (-2 / +1 lines)
Lines 10-16 Link Here
10
            [% IF ( Koha.Preference('IntranetAddMastheadLibraryPulldown') ) %]
10
            [% IF ( Koha.Preference('IntranetAddMastheadLibraryPulldown') ) %]
11
                <select id="select_library" name="limit" style="margin-left:5px;">
11
                <select id="select_library" name="limit" style="margin-left:5px;">
12
                    <option value="">All libraries</option>
12
                    <option value="">All libraries</option>
13
                    [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( selected => "" ) %]
13
                    [% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( selected => branch_limit ) %]
14
                </select>
14
                </select>
15
            [% END %]
15
            [% END %]
16
            <input type="submit" value="Submit"  class="submit" />
16
            <input type="submit" value="Submit"  class="submit" />
17
- 

Return to bug 30077