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

(-)a/catalogue/detail.pl (-3 / +2 lines)
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
	);
(-)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