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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (+6 lines)
Lines 39-44 Link Here
39
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">View all plugins</a></li>
39
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">View all plugins</a></li>
40
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">View report plugins</a></li>
40
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">View report plugins</a></li>
41
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">View tool plugins</a></li>
41
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">View tool plugins</a></li>
42
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=to_marc">View MARC conversion plugins</a></li>
43
                                    <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=opac_online_payment">View online payment plugins</a></li>
42
                                </ul>
44
                                </ul>
43
                            </div>
45
                            </div>
44
                        </div>
46
                        </div>
Lines 53-58 Link Here
53
                                <div class="dialog message">No plugins that can be used as a tool are installed</div>
55
                                <div class="dialog message">No plugins that can be used as a tool are installed</div>
54
                            [% ELSIF method == 'report' %]
56
                            [% ELSIF method == 'report' %]
55
                                <div class="dialog message">No plugins that can create a report are installed</div>
57
                                <div class="dialog message">No plugins that can create a report are installed</div>
58
                            [% ELSIF method == 'to_marc' %]
59
                                <div class="dialog message">No plugins that can convert files to MARC records are installed</div>
60
                            [% ELSIF method == 'opac_online_payment' %]
61
                                <div class="dialog message">No plugins that can process online payments via the public catalog are installed</div>
56
                            [% ELSE %]
62
                            [% ELSE %]
57
                                <div class="dialog message">Unknown plugin type <i>[% method %]</i></div>
63
                                <div class="dialog message">Unknown plugin type <i>[% method %]</i></div>
58
                            [% END %]
64
                            [% END %]
(-)a/opac/opac-account.pl (-5 / +4 lines)
Lines 80-91 $template->param( Link Here
80
80
81
my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins");
81
my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins");
82
if ( $plugins_enabled ) {
82
if ( $plugins_enabled ) {
83
	my @plugins = Koha::Plugins->new()->GetPlugins({
83
    my @plugins = Koha::Plugins->new()->GetPlugins({
84
		method => 'opac_online_payment',
84
        method => 'opac_online_payment',
85
	});
85
    });
86
    # Only pass in plugins where opac online payment is enabled
86
    # Only pass in plugins where opac online payment is enabled
87
    @plugins = grep { $_->opac_online_payment } @plugins;
87
    @plugins = grep { $_->opac_online_payment } @plugins;
88
	$template->param( plugins => \@plugins );
88
    $template->param( plugins => \@plugins );
89
}
89
}
90
90
91
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
91
output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };
92
- 

Return to bug 19173