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

(-)a/installer/data/mysql/atomicupdate/bug_33260_-_add_NoticesManagement_syspref.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "33260",
5
    description => "Show message queue on staff interface and make notices printable",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('NoticesManagement', '0', NULL, 'Enable the interface to view and print generated notices', 'YesNo') }
12
        );
13
14
        say $out "Added system preference 'NoticesManagement'";
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 425-430 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
425
('NoticeBcc','','','Email address to bcc outgoing notices sent by email','free'),
425
('NoticeBcc','','','Email address to bcc outgoing notices sent by email','free'),
426
('NoticeCSS','',NULL,'Notices CSS url.','free'),
426
('NoticeCSS','',NULL,'Notices CSS url.','free'),
427
('NoticesLog','0',NULL,'If enabled, log changes to notice templates','YesNo'),
427
('NoticesLog','0',NULL,'If enabled, log changes to notice templates','YesNo'),
428
('NoticesManagement','0',NULL,'Enable the interface to view and print generated notices','YesNo'),
428
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
429
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
429
('NotifyPasswordChange','1',NULL,'Notify patrons whenever their password is changed.','YesNo'),
430
('NotifyPasswordChange','1',NULL,'Notify patrons whenever their password is changed.','YesNo'),
430
('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content.  Requires Novelist Profile and Password','YesNo'),
431
('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content.  Requires Novelist Profile and Password','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +6 lines)
Lines 269-274 Patrons: Link Here
269
               never: never
269
               never: never
270
               preferences: according to patron messaging preferences
270
               preferences: according to patron messaging preferences
271
               cron: (Deprecated) according to --send-notices cron switch
271
               cron: (Deprecated) according to --send-notices cron switch
272
     -
273
        - pref: NoticesManagement
274
          choices:
275
              1: Enable
276
              0: Disable
277
        - the interface to view and print generated notices.
272
    Patron forms:
278
    Patron forms:
273
     -
279
     -
274
         - "The following <a href='http://schema.koha-community.org/__VERSION__/tables/borrowers.html' target='blank'>database columns</a> must be filled in on the patron entry screen:"
280
         - "The following <a href='http://schema.koha-community.org/__VERSION__/tables/borrowers.html' target='blank'>database columns</a> must be filled in on the patron entry screen:"
275
- 

Return to bug 33260