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

(-)a/catalogue/detail.pl (-3 / +2 lines)
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
	);
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-2 / +1 lines)
Lines 140-146 CAN_user_serials_create_subscription ) %] Link Here
140
[% END %]
140
[% END %]
141
141
142
[% FOREACH p IN plugins %]
142
[% FOREACH p IN plugins %]
143
	[% p.get_toolbar_button %]
143
	[% p.get_intranet_catalog_toolbar_button %]
144
[% END %]
144
[% END %]
145
145
146
</div>
146
</div>
147
- 

Return to bug 20968