From 06ef2eccd401b30aa4ea608b37f2231106134059 Mon Sep 17 00:00:00 2001 From: Bouzid Fergani Date: Mon, 21 Dec 2015 09:33:33 -0500 Subject: [PATCH] Bug 12528 - Enable staff to deny message setting access to patrons on the OPAC Change the preference Enhancedmessagingpreference description. Enable default EnhancedMessagingPreferences and OPACEnhancedMessagingPreferences. not sent e-mail it's necessary, when user call opac-messaging.pl directly. --- installer/data/mysql/atomicupdate/sysprefs_Bug12528.sql | 5 +++-- .../intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/data/mysql/atomicupdate/sysprefs_Bug12528.sql b/installer/data/mysql/atomicupdate/sysprefs_Bug12528.sql index be3169a..b711e47 100644 --- a/installer/data/mysql/atomicupdate/sysprefs_Bug12528.sql +++ b/installer/data/mysql/atomicupdate/sysprefs_Bug12528.sql @@ -1,3 +1,4 @@ INSERT INTO systempreferences ( variable, value, options, explanation,type ) VALUES -('OPACEnhancedMessagingPreferences', '1', NULL, 'If ON, show patrons messaging setting on the OPAC.', 'YesNo') -; +('OPACEnhancedMessagingPreferences', '1', NULL, 'If ON, show patrons messaging setting on the OPAC.', 'YesNo') ON DUPLICATE KEY UPDATE value ='1'; +INSERT INTO systempreferences ( variable, value, options, explanation,type ) VALUES +('EnhancedMessagingPreferences', '1', NULL, 'If ON, allows patrons to select to receive additional messages about items due or nearly due.', 'YesNo') ON DUPLICATE KEY UPDATE value ='1'; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref index 0636039..01a30cc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref @@ -54,7 +54,7 @@ Patrons: choices: yes: Allow no: "Don't allow" - - patrons to choose which notices they receive and when they receive them. Note that this only applies to certain kinds of notices. + - "Staff to manage which notices patrons will receive and when they will receive them. Note: this only applies to courtesy notices. To manage if patrons have also access to these settings, use OPACEnhancedMessagingPreferences." - - pref: ExtendedPatronAttributes choices: diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt index 4cc84c1..aac5065 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt @@ -132,7 +132,6 @@ [% ELSE %]

You are not allowed to call this page directly

- To report this problem, you can email the Koha Administrator. [% END %] -- 1.9.1