From e6418092a8ed5c6f63a49f5ad4f0ae8d55c2d9fa Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Wed, 21 Feb 2024 20:03:42 +0100 Subject: [PATCH] Bug 35149: Change CircAutoPrintQuickSlip syspref explanation Signed-off-by: Laura Escamilla Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer (cherry picked from commit 42d95f362a89c9c2236220f6b961b1748792087f) Signed-off-by: Fridolin Somers --- ...o-nothing-to-CircAutoPrintQuickSlip-syspref.pl | 15 +++++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 installer/data/mysql/atomicupdate/bug_35149-add-do-nothing-to-CircAutoPrintQuickSlip-syspref.pl diff --git a/installer/data/mysql/atomicupdate/bug_35149-add-do-nothing-to-CircAutoPrintQuickSlip-syspref.pl b/installer/data/mysql/atomicupdate/bug_35149-add-do-nothing-to-CircAutoPrintQuickSlip-syspref.pl new file mode 100755 index 0000000000..6b31aad8eb --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_35149-add-do-nothing-to-CircAutoPrintQuickSlip-syspref.pl @@ -0,0 +1,15 @@ +use Modern::Perl; + +return { + bug_number => "35149", + description => "Add 'do nothing' option to CircAutoPrintQuickSlip syspref explanation", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + # Do you stuffs here + $dbh->do(q{UPDATE `systempreferences` SET `explanation` = 'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window, Do nothing, or Clear the screen.' WHERE `variable` = 'CircAutoPrintQuickSlip'}); + + say $out "Updated system preference 'CircAutoPrintQuickSlip'"; + }, +}; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index 79f25930e8..f7e845e3bd 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -148,7 +148,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'), ('CheckPrevCheckoutDelay','0', NULL,'Maximum number of days that will trigger a warning if the patron has borrowed that item in the past when CheckPrevCheckout is enabled.','free'), ('ChildNeedsGuarantor', 0, 'If ON, a child patron must have a guarantor when adding the patron.', '', 'YesNo'), -('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'), +('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window, Do nothing, or Clear the screen.','Choice'), ('CircConfirmItemParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'Yes/No'), ('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'), ('CircControlReturnsBranch','ItemHomeLibrary','ItemHomeLibrary|ItemHoldingLibrary|CheckInLibrary','Specify the agency that controls the return policy','Choice'), -- 2.39.5