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

(-)a/opac/opac-search.pl (-3 / +10 lines)
Lines 141-149 if (C4::Context->preference('TagsEnabled')) { Link Here
141
141
142
# load the branches
142
# load the branches
143
143
144
my $branches = GetBranches();   # used later in *getRecords, probably should be internalized by those functions after caching in C4::Branch is established
144
my $mybranch = ( C4::Context->preference('SearchMyLibraryFirst') && C4::Context->userenv && C4::Context->userenv->{branch} ) ? C4::Context->userenv->{branch} : '';
145
my $branches = GetBranches();    # used later in *getRecords, probably should be internalized by those functions after caching in C4::Branch is established
146
my $branchloop = GetBranchesLoop( $mybranch, 0 );
147
unless ($mybranch){
148
    foreach (@$branchloop){
149
        $_->{'selected'}=0;
150
    }
151
}
145
$template->param(
152
$template->param(
146
    searchdomainloop => GetBranchCategories(undef,'searchdomain'),
153
    branchloop       => $branchloop,
154
    searchdomainloop => GetBranchCategories( undef, 'searchdomain' ),
147
);
155
);
148
156
149
# load the language limits (for search)
157
# load the language limits (for search)
150
- 

Return to bug 5977