From a59fe6505407ed1704cc7b162a19adfe2ae6261c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 17 Nov 2020 14:48:39 -0300 Subject: [PATCH] Bug 27044: Mark the PayPal integration as deprecated on the user interface Signed-off-by: Tomas Cohen Arazi Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Jonathan Druart --- about.pl | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 9 ++++++++- .../prog/en/modules/admin/preferences/opac.pref | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/about.pl b/about.pl index bade1ea0ae..005835d5b2 100755 --- a/about.pl +++ b/about.pl @@ -407,6 +407,10 @@ if ( C4::Context->preference('WebBasedSelfCheck') ); } +if ( C4::Context->preference('EnablePayPalOpacPayments') ) { + $template->param( paypal_enabled => 1 ); +} + # Test YAML system preferences # FIXME: This is list of current YAML formatted prefs, should by type of preference my @yaml_prefs = ( diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index da675b086d..8b3af8ae57 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -279,7 +279,7 @@ Contact your system administrator. [% END %] - [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnNoActiveCurrency || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size %] + [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnNoActiveCurrency || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || paypal_enabled %]

Warnings regarding the system configuration

@@ -375,6 +375,13 @@ [% END %] [% END %] + [% IF paypal_enabled %] + + [% END %]
Preferences and parameters
Warning + You are using the PayPal functionality, which is now deprecated and replaced in favor of using payment plugins that can implement + different payment services. Please install the plugin and follow the migration instructions in order to keep enjoying the PayPal + integration. This feature will be removed from Koha in a short term. +
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref index ccbd533b19..3654080c02 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref @@ -901,6 +901,7 @@ OPAC: yes: "sandbox" no: "production" - "mode." + - "
Warning: this functionality has been deprecated in favor of using payment plugins that can implement different payment services." - - "The email address to receive PayPal payments is " - pref: PayPalUser -- 2.39.5