Bugzilla – Attachment 134831 Details for
Bug 30728
Allow real-time holds queue opt-out
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30728: Add RealTimeHoldsQueue syspref
Bug-30728-Add-RealTimeHoldsQueue-syspref.patch (text/plain), 3.32 KB, created by
David Nind
on 2022-05-10 20:24:39 UTC
(
hide
)
Description:
Bug 30728: Add RealTimeHoldsQueue syspref
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-05-10 20:24:39 UTC
Size:
3.32 KB
patch
obsolete
>From 7558849d2d48e5be3ffd78e8400b6df0e7c17212 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 10 May 2022 14:17:17 -0300 >Subject: [PATCH] Bug 30728: Add RealTimeHoldsQueue syspref > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: David Nind <david@davidnind.com> >--- > installer/data/mysql/atomicupdate/bug_30728.pl | 15 +++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/circulation.pref | 6 ++++++ > 3 files changed, 22 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..320d670377 >--- /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', '0', NULL, 'Enable updating the holds queue in real time.', 'YesNo') >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 11f03ec24d..8383693661 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -555,6 +555,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('QueryWeightFields','1',NULL,'If ON, enables field weighting','YesNo'), > ('QuoteOfTheDay','','intranet,opac','Enable or disable display of Quote of the Day on the OPAC and staff interface home page','multiple'), > ('RandomizeHoldsQueueWeight','0',NULL,'if ON, the holds queue in circulation will be randomized, either based on all location codes, or by the location codes specified in StaticHoldsQueueWeight','YesNo'), >+('RealTimeHoldsQueue', '1', NULL, 'Enable updating the holds queue in real', 'YesNo') > ('RecallsLog','1',NULL,'If ON, log create/cancel/expire/fulfill actions on recalls','YesNo'), > ('RecallsMaxPickUpDelay','7',NULL,'Define the maximum time a recall can be awaiting pickup','Integer'), > ('RecordLocalUseOnReturn','0',NULL,'If ON, statistically record returns of unissued items as local use, instead of return','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.30.2
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 30728
:
134823
|
134824
|
134825
|
134826
|
134827
|
134828
|
134829
|
134831
|
134832
|
134833
|
134834
|
134857
|
134858
|
134859
|
134860
|
134967