From 2a899edbcc8c3739bd96bab9cfe06fbd8b1147a5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 27 Jun 2018 13:21:53 -0400 Subject: [PATCH] Bug 20968: Rename method get_intranet_catalog_toolbar_button to intranet_catalog_biblio_enhancements_toolbar_button Signed-off-by: Stephen Graham Signed-off-by: Kyle M Hall Signed-off-by: Nick Clemens (cherry picked from commit e87fa069dc3d10284a2bd31b7c7913132fed5d06) Signed-off-by: Martin Renvoize --- catalogue/detail.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 +- t/db_dependent/Plugins.t | 2 +- t/lib/Koha/Plugin/Test.pm | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 266139b8b6..333bc88c6c 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -68,7 +68,7 @@ if ( C4::Context->preference('UseKohaPlugins') && C4::Context->config('enable_plugins') ) { # Only pass plugins that can offer a toolbar button my @plugins = Koha::Plugins->new()->GetPlugins({ - method => 'get_intranet_catalog_toolbar_button' + method => 'intranet_catalog_biblio_enhancements_toolbar_button' }); $template->param( plugins => \@plugins diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc index 89e96c5de6..cff23943b8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc @@ -140,7 +140,7 @@ CAN_user_serials_create_subscription ) %] [% END %] [% FOREACH p IN plugins %] - [% p.get_intranet_catalog_toolbar_button %] + [% p.intranet_catalog_biblio_enhancements_toolbar_button %] [% END %] diff --git a/t/db_dependent/Plugins.t b/t/db_dependent/Plugins.t index c95966eace..8dc533fbf7 100755 --- a/t/db_dependent/Plugins.t +++ b/t/db_dependent/Plugins.t @@ -43,7 +43,7 @@ ok( $plugin->can('report'), 'Test plugin can report' ); ok( $plugin->can('tool'), 'Test plugin can tool' ); ok( $plugin->can('to_marc'), 'Test plugin can to_marc' ); ok( $plugin->can('intranet_catalog_biblio_enhancements'), 'Test plugin can intranet_catalog_biblio_enhancements'); -ok( $plugin->can('get_intranet_catalog_toolbar_button'), 'Test plugin can get_intranet_catalog_toolbar_button' ); +ok( $plugin->can('intranet_catalog_biblio_enhancements_toolbar_button'), 'Test plugin can intranet_catalog_biblio_enhancements_toolbar_button' ); ok( $plugin->can('opac_online_payment'), 'Test plugin can opac_online_payment' ); ok( $plugin->can('opac_online_payment_begin'), 'Test plugin can opac_online_payment_begin' ); ok( $plugin->can('opac_online_payment_end'), 'Test plugin can opac_online_payment_end' ); diff --git a/t/lib/Koha/Plugin/Test.pm b/t/lib/Koha/Plugin/Test.pm index ca78c78875..2cb749e7dd 100644 --- a/t/lib/Koha/Plugin/Test.pm +++ b/t/lib/Koha/Plugin/Test.pm @@ -45,9 +45,9 @@ sub to_marc { return "Koha::Plugin::Test::to_marc"; } -sub get_intranet_catalog_toolbar_button { +sub intranet_catalog_biblio_enhancements_toolbar_button { my ( $self, $args ) = @_; - return "Koha::Plugin::Test::get_intranet_catalog_toolbar_button"; + return "Koha::Plugin::Test::intranet_catalog_biblio_enhancements_toolbar_button"; } sub intranet_catalog_biblio_enhancements { -- 2.39.5