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

(-)a/catalogue/search.pl (+6 lines)
Lines 238-245 if($cgi->cookie("intranet_bib_list")){ Link Here
238
my @search_groups =
238
my @search_groups =
239
  Koha::Library::Groups->get_search_groups( { interface => 'staff' } )->as_list;
239
  Koha::Library::Groups->get_search_groups( { interface => 'staff' } )->as_list;
240
240
241
my $branch_limit = '';
242
if ( scalar $cgi->param('limit') =~ /branch:([\w-]+)/ ) {
243
    $branch_limit = $1;
244
}
245
241
$template->param(
246
$template->param(
242
    search_groups    => \@search_groups,
247
    search_groups    => \@search_groups,
248
    branch_limit     => $branch_limit
243
);
249
);
244
250
245
# load the Type stuff
251
# 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