Bugzilla – Attachment 67048 Details for
Bug 19173
Make OPAC online payments pluggable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19173: Add opac payment and marc conversion plugins to the pulldown filter list
Bug-19173-Add-opac-payment-and-marc-conversion-plu.patch (text/plain), 3.46 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-09-11 16:05:19 UTC
(
hide
)
Description:
Bug 19173: Add opac payment and marc conversion plugins to the pulldown filter list
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-09-11 16:05:19 UTC
Size:
3.46 KB
patch
obsolete
>From 03d67f500cffbe3f9c1ce607bd57f070085c18c8 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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 <magnus@libriotech.no> >New categories are added to the pulldown and work as expected. >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/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 e511653..29b9d75 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 @@ > <li><a href="/cgi-bin/koha/plugins/plugins-home.pl">View all plugins</a></li> > <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">View report plugins</a></li> > <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=tool">View tool plugins</a></li> >+ <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=to_marc">View MARC conversion plugins</a></li> >+ <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=opac_online_payment">View online payment plugins</a></li> > </ul> > </div> > </div> >@@ -53,6 +55,10 @@ > <div class="dialog message">No plugins that can be used as a tool are installed</div> > [% ELSIF method == 'report' %] > <div class="dialog message">No plugins that can create a report are installed</div> >+ [% ELSIF method == 'to_marc' %] >+ <div class="dialog message">No plugins that can convert files to MARC records are installed</div> >+ [% ELSIF method == 'opac_online_payment' %] >+ <div class="dialog message">No plugins that can process online payments via the public catalog are installed</div> > [% ELSE %] > <div class="dialog message">Unknown plugin type <i>[% method %]</i></div> > [% END %] >diff --git a/opac/opac-account.pl b/opac/opac-account.pl >index 29d73a8..c93b5b7 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.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19173
:
66414
|
66464
|
66472
|
66473
|
66474
|
66839
|
66840
|
66841
|
66842
|
67047
| 67048