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

(-)a/installer/data/mysql/atomicupdate/bug_41513.pl (+24 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "41513",
6
    description => "Add StaffMainPageNotifications system preference",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
        $dbh->do(
11
            q{
12
            INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type)
13
            VALUES (
14
                'StaffMainPageNotifications',
15
                'ArticleRequests,Suggestions,Comments,Tags,PatronModifications,DischargeRequests,BiblioTickets,CheckoutNotes,ProblemReports,Jobs,CurbsidePickups,HoldCancellations,SelfRegistrations',
16
                'ArticleRequests,Suggestions,Comments,Tags,PatronModifications,DischargeRequests,BiblioTickets,CheckoutNotes,ProblemReports,HoldsToPull,HoldsQueue,Jobs,CurbsidePickups,HoldCancellations,SelfRegistrations',
17
                'Select which notifications to display on the staff main page',
18
                'multiple'
19
            )
20
        }
21
        );
22
        say_success( $out, "Added system preference StaffMainPageNotifications" );
23
    },
24
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 775-780 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
775
('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'),
775
('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'),
776
('StaffLoginLibraryBasedOnIP', '1','', 'Set the logged in library for the user based on their current IP','YesNo'),
776
('StaffLoginLibraryBasedOnIP', '1','', 'Set the logged in library for the user based on their current IP','YesNo'),
777
('StaffLoginRestrictLibraryByIP','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff interface from unauthorized IP addresses based on branch','YesNo'),
777
('StaffLoginRestrictLibraryByIP','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff interface from unauthorized IP addresses based on branch','YesNo'),
778
('StaffMainPageNotifications','ArticleRequests,Suggestions,Comments,Tags,PatronModifications,DischargeRequests,BiblioTickets,CheckoutNotes,ProblemReports,Jobs,CurbsidePickups,HoldCancellations,SelfRegistrations','ArticleRequests,Suggestions,Comments,Tags,PatronModifications,DischargeRequests,BiblioTickets,CheckoutNotes,ProblemReports,HoldsToPull,HoldsQueue,Jobs,CurbsidePickups,HoldCancellations,SelfRegistrations','Select which notifications to display on the staff main page','multiple'),
778
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
779
('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'),
779
('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the staff interface','Integer'),
780
('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the staff interface','Integer'),
780
('staffShibOnly','0','','If ON enables shibboleth only authentication for the staff client','YesNo'),
781
('staffShibOnly','0','','If ON enables shibboleth only authentication for the staff client','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-1 / +20 lines)
Lines 120-125 Staff interface: Link Here
120
                  1: Highlight
120
                  1: Highlight
121
                  0: Don't highlight
121
                  0: Don't highlight
122
            - words searched for in the staff interface search results pages.
122
            - words searched for in the staff interface search results pages.
123
        -
124
            - "Select which notifications to display on the staff main page"
125
            - pref: StaffMainPageNotifications
126
              multiple:
127
                ArticleRequests: "Article requests"
128
                Suggestions: "Suggestions"
129
                Comments: "Comments"
130
                Tags: "Tags"
131
                PatronModifications: "Patron modifications"
132
                DischargeRequests: "Discharge requests"
133
                BiblioTickets: "Biblio tickets"
134
                CheckoutNotes: "Checkout notes"
135
                ProblemReports: "Problem reports"
136
                HoldsToPull: "Holds to pull"
137
                HoldsQueue: "Holds queue"
138
                Jobs: "Background jobs"
139
                CurbsidePickups: "Curbside pickups"
140
                HoldCancellations: "Hold cancellations"
141
                SelfRegistrations: "Self registrations"
142
            - .
123
        -
143
        -
124
            - pref: ReportsExportFormatODS
144
            - pref: ReportsExportFormatODS
125
              choices:
145
              choices:
126
- 

Return to bug 41513