Lines 66-76
my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user(
Link Here
|
66 |
# Determine if we should be offering any enhancement plugin buttons |
66 |
# Determine if we should be offering any enhancement plugin buttons |
67 |
if ( C4::Context->preference('UseKohaPlugins') && |
67 |
if ( C4::Context->preference('UseKohaPlugins') && |
68 |
C4::Context->config('enable_plugins') ) { |
68 |
C4::Context->config('enable_plugins') ) { |
|
|
69 |
# Only pass plugins that can offer a toolbar button |
69 |
my @plugins = Koha::Plugins->new()->GetPlugins({ |
70 |
my @plugins = Koha::Plugins->new()->GetPlugins({ |
70 |
method => 'intranet_catalog_biblio_enhancements' |
71 |
method => 'get_intranet_catalog_toolbar_button' |
71 |
}); |
72 |
}); |
72 |
# Only pass plugins that can offer a toolbar button |
|
|
73 |
@plugins = grep { $_->get_toolbar_button } @plugins; |
74 |
$template->param( |
73 |
$template->param( |
75 |
plugins => \@plugins |
74 |
plugins => \@plugins |
76 |
); |
75 |
); |