Bug 20157: Do not display OPAC groups on the staff interface
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
702c464c74
commit
e7aa94b782
2 changed files with 2 additions and 5 deletions
|
@ -513,7 +513,7 @@ sub get_template_and_user {
|
|||
$opac_name = C4::Context->userenv->{'branch'};
|
||||
}
|
||||
|
||||
my @search_groups = Koha::Library::Groups->get_search_groups();
|
||||
my @search_groups = Koha::Library::Groups->get_search_groups({ interface => 'opac' });
|
||||
$template->param(
|
||||
OpacAdditionalStylesheet => C4::Context->preference("OpacAdditionalStylesheet"),
|
||||
AnonSuggestions => "" . C4::Context->preference("AnonSuggestions"),
|
||||
|
|
|
@ -209,11 +209,8 @@ if($cgi->cookie("intranet_bib_list")){
|
|||
@cart_list = split(/\//, $cart_list);
|
||||
}
|
||||
|
||||
my @search_groups_opac =
|
||||
Koha::Library::Groups->get_search_groups( { interface => 'opac' } );
|
||||
my @search_groups_staff =
|
||||
my @search_groups =
|
||||
Koha::Library::Groups->get_search_groups( { interface => 'staff' } );
|
||||
my @search_groups = ( @search_groups_opac, @search_groups_staff );
|
||||
@search_groups = sort { $a->title cmp $b->title } @search_groups;
|
||||
|
||||
$template->param(
|
||||
|
|
Loading…
Reference in a new issue