From f0f3cf8fa963bca25744b4d0b4c15e7d5b99f95f Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 10 May 2022 14:17:17 -0300 Subject: [PATCH] Bug 30728: Add RealTimeHoldsQueue syspref Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/atomicupdate/bug_30728.pl | 15 +++++++++++++++ .../en/modules/admin/preferences/circulation.pref | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_30728.pl diff --git a/installer/data/mysql/atomicupdate/bug_30728.pl b/installer/data/mysql/atomicupdate/bug_30728.pl new file mode 100755 index 0000000000..4a1472cfb2 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_30728.pl @@ -0,0 +1,15 @@ +use Modern::Perl; + +return { + bug_number => "30728", + description => "Allow opting out of real-time holds queue updating possible", + up => sub { + my ($args) = @_; + my ($dbh) = @$args{qw(dbh)}; + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('RealTimeHoldsQueue', '1', NULL, 'Enable updating the holds queue in real time.', 'YesNo') + }); + }, +}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref index 750e731832..6810f251c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -681,6 +681,12 @@ Circulation: actual: "the actual priority, which may be out of order" virtual: "'virtual' priorities, where each group is numbered separately" - "." + - + - pref: RealTimeHoldsQueue + choices: + 1: Enable + 0: Disable + - updating the holds queue in real time. - - pref: AllowHoldItemTypeSelection choices: -- 2.34.1