Bug 41788: Add system preference UseHoldsQueueFilterOptions

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
This commit is contained in:
Lucas Gass 2026-02-06 15:22:30 +00:00 committed by Martin Renvoize
parent 78f7abc855
commit 00c9b4a86c
No known key found for this signature in database
GPG Key ID: 2D86E0EAEC83711B
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,20 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "41788",
description => "Add UseHoldsQueueFilterOptions system preference",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{
INSERT IGNORE INTO systempreferences (variable,value)
VALUES ('UseHoldsQueueFilterOptions','1')
}
);
say_success( $out, "UseHoldsQueueFilterOptions system preference added" );
},
};

View File

@ -880,6 +880,7 @@ INSERT INTO systempreferences ( `variable`, `value` ) VALUES
('useDaysMode','Calendar'),
('useDefaultReplacementCost', '0'),
('useDischarge','0'),
('UseHoldsQueueFilterOptions','1'),
('UseICUStyleQuotes','0'),
('UseLibraryFloatLimits', '0'),
('UseLocationAsAQInSIP', '0'),

View File

@ -803,6 +803,12 @@ Circulation:
actual: "the actual priority, which may be out of order"
virtual: "'virtual' priorities, where each group is numbered separately"
- .
-
- pref: UseHoldsQueueFilterOptions
choices:
1: Enable
0: Disable
- when running the holds queue.
-
- pref: RealTimeHoldsQueue
choices: