Bugzilla – Attachment 190850 Details for
Bug 41513
Add a system preference to control which staff main page notifications appear
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41513: Add StaffMainPageNotifications sys pref
Bug-41513-Add-StaffMainPageNotifications-sys-pref.patch (text/plain), 5.05 KB, created by
Lucas Gass (lukeg)
on 2026-01-02 20:26:00 UTC
(
hide
)
Description:
Bug 41513: Add StaffMainPageNotifications sys pref
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2026-01-02 20:26:00 UTC
Size:
5.05 KB
patch
obsolete
>From 53eb04c3e93896a3ab907dd558e9caf8e1867812 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 2 Jan 2026 20:20:27 +0000 >Subject: [PATCH] Bug 41513: Add StaffMainPageNotifications sys pref > >--- > .../data/mysql/atomicupdate/bug_41513.pl | 24 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../admin/preferences/staff_interface.pref | 20 ++++++++++++++++ > 3 files changed, 45 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_41513.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_41513.pl b/installer/data/mysql/atomicupdate/bug_41513.pl >new file mode 100755 >index 00000000000..414cebfd56b >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_41513.pl >@@ -0,0 +1,24 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "41513", >+ description => "Add StaffMainPageNotifications system preference", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) >+ VALUES ( >+ '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' >+ ) >+ } >+ ); >+ say_success( $out, "Added system preference StaffMainPageNotifications" ); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 734150ba931..5cdb4826525 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -775,6 +775,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('StaffLangSelectorMode','footer','top|both|footer','Select the location to display the language selector in staff interface','Choice'), > ('StaffLoginLibraryBasedOnIP', '1','', 'Set the logged in library for the user based on their current IP','YesNo'), > ('StaffLoginRestrictLibraryByIP','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff interface from unauthorized IP addresses based on branch','YesNo'), >+('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'), > ('StaffSearchResultsDisplayBranch','holdingbranch','holdingbranch|homebranch','Controls the display of the home or holding branch for staff search results','Choice'), > ('StaffSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the staff interface','Integer'), > ('staffShibOnly','0','','If ON enables shibboleth only authentication for the staff client','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >index 611015ad718..fd53fbef32d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >@@ -120,6 +120,26 @@ Staff interface: > 1: Highlight > 0: Don't highlight > - words searched for in the staff interface search results pages. >+ - >+ - "Select which notifications to display on the staff main page" >+ - pref: StaffMainPageNotifications >+ multiple: >+ ArticleRequests: "Article requests" >+ Suggestions: "Suggestions" >+ Comments: "Comments" >+ Tags: "Tags" >+ PatronModifications: "Patron modifications" >+ DischargeRequests: "Discharge requests" >+ BiblioTickets: "Biblio tickets" >+ CheckoutNotes: "Checkout notes" >+ ProblemReports: "Problem reports" >+ HoldsToPull: "Holds to pull" >+ HoldsQueue: "Holds queue" >+ Jobs: "Background jobs" >+ CurbsidePickups: "Curbside pickups" >+ HoldCancellations: "Hold cancellations" >+ SelfRegistrations: "Self registrations" >+ - . > - > - pref: ReportsExportFormatODS > choices: >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41513
: 190850 |
190851