From 402c7f756707eb3205b1ddc4a2d1f2df54a32daf Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 25 Aug 2017 06:26:21 -0400 Subject: [PATCH] Bug 19173: Add opac payment and marc conversion plugins to the pulldown filter list Edit: fixed tab-for-space errors (tcohen). Signed-off-by: Magnus Enger New categories are added to the pulldown and work as expected. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/plugins/plugins-home.tt | 6 ++++++ opac/opac-account.pl | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt index e5116536df..29b9d752b7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt @@ -39,6 +39,8 @@
  • View all plugins
  • View report plugins
  • View tool plugins
  • +
  • View MARC conversion plugins
  • +
  • View online payment plugins
  • @@ -53,6 +55,10 @@
    No plugins that can be used as a tool are installed
    [% ELSIF method == 'report' %]
    No plugins that can create a report are installed
    + [% ELSIF method == 'to_marc' %] +
    No plugins that can convert files to MARC records are installed
    + [% ELSIF method == 'opac_online_payment' %] +
    No plugins that can process online payments via the public catalog are installed
    [% ELSE %]
    Unknown plugin type [% method %]
    [% END %] diff --git a/opac/opac-account.pl b/opac/opac-account.pl index 29d73a8057..c93b5b74da 100755 --- a/opac/opac-account.pl +++ b/opac/opac-account.pl @@ -80,12 +80,12 @@ $template->param( my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins"); if ( $plugins_enabled ) { - my @plugins = Koha::Plugins->new()->GetPlugins({ - method => 'opac_online_payment', - }); + my @plugins = Koha::Plugins->new()->GetPlugins({ + method => 'opac_online_payment', + }); # Only pass in plugins where opac online payment is enabled @plugins = grep { $_->opac_online_payment } @plugins; - $template->param( plugins => \@plugins ); + $template->param( plugins => \@plugins ); } output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 }; -- 2.39.5