From 2f9d05b23213cb5d1679af66edfa09bdd1fb8f77 Mon Sep 17 00:00:00 2001 From: danyonsewell Date: Mon, 29 Jul 2024 04:35:32 +0000 Subject: [PATCH] Bug 37463: Adding system preference. --- ...bug_37463-add_SCOCoverImagesCategories_syspref.pl | 12 ++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 1 + .../en/modules/admin/preferences/circulation.pref | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_37463-add_SCOCoverImagesCategories_syspref.pl diff --git a/installer/data/mysql/atomicupdate/bug_37463-add_SCOCoverImagesCategories_syspref.pl b/installer/data/mysql/atomicupdate/bug_37463-add_SCOCoverImagesCategories_syspref.pl new file mode 100644 index 00000000000..1f78795ff4e --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_37463-add_SCOCoverImagesCategories_syspref.pl @@ -0,0 +1,12 @@ +use Modern::Perl; + +return { + bug_number => "37463", + description => "Add new system preference SCOCoverImagesCategories", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + $dbh->do(q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('SCOCoverImagesCategories', '1', NULL, 'Cover images will show for checked out items in the self checkout module for selected patron categories:', 'YesNo')}); + }, +}; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 1a7cd033e90..66e9632c999 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -685,6 +685,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('SavedSearchFilters', '0', NULL, 'Allow staff with permission to create/edit custom search filters', 'YesNo'), ('SCOAllowCheckin','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'), ('SCOBatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch while logged into Self Checkout','Free'), +('SCOCoverImagesCategories', '1', NULL, 'Cover images will show for checked out items in the self checkout module for selected patron categories:', 'YesNo'), ('SCOLoadCheckoutsByDefault','1','','If enabled, load the list of a patrons checkouts when they log in to the Self Checkout','YesNo'), ('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded