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 458-463 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
458
('NoticeBcc','',NULL,'Email address to bcc outgoing notices sent by email','Free'),
458
('NoticeBcc','',NULL,'Email address to bcc outgoing notices sent by email','Free'),
459
('NoticeCSS','',NULL,'Notices CSS url.','Free'),
459
('NoticeCSS','',NULL,'Notices CSS url.','Free'),
460
('NoticesLog','0',NULL,'If enabled, log changes to notice templates','YesNo'),
460
('NoticesLog','0',NULL,'If enabled, log changes to notice templates','YesNo'),
461
('NoticesManagement','0',NULL,'Enable the interface to view and print generated notices','YesNo'),
461
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
462
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
462
('NotifyPasswordChange','1',NULL,'Notify patrons whenever their password is changed.','YesNo'),
463
('NotifyPasswordChange','1',NULL,'Notify patrons whenever their password is changed.','YesNo'),
463
('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content.  Requires Novelist Profile and Password','YesNo'),
464
('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 (-2 / +7 lines)
Lines 280-285 Patrons: Link Here
280
               never: never
280
               never: never
281
               preferences: according to patron messaging preferences
281
               preferences: according to patron messaging preferences
282
               cron: (Deprecated) according to --send-notices cron switch
282
               cron: (Deprecated) according to --send-notices cron switch
283
     -
284
        - pref: NoticesManagement
285
          choices:
286
              1: Enable
287
              0: Disable
288
        - the interface to view and print generated notices.
283
    Patron forms:
289
    Patron forms:
284
     -
290
     -
285
         - "The following <a href='https://schema.koha-community.org/__VERSION__/tables/borrowers.html' target='_blank'>database columns</a> must be filled in on the patron entry screen:"
291
         - "The following <a href='https://schema.koha-community.org/__VERSION__/tables/borrowers.html' target='_blank'>database columns</a> must be filled in on the patron entry screen:"
Lines 533-536 Patrons: Link Here
533
             homebranch: "Home library"
539
             homebranch: "Home library"
534
             location: "Location"
540
             location: "Location"
535
             itemcallnumber: "Item's callnumber"
541
             itemcallnumber: "Item's callnumber"
536
             ccode: "Collection"
542
             ccode: "Collection"
537
- 

Return to bug 33260