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