Bug 42490: Add system preference LocalHoldsPriorityScope

Sponsored-by: The Main Library Alliance <https://www.mainlib.org/>
Signed-off-by: Trevor Diamond <trevor.diamond@mainlib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Andrew Fuerste Henry 2026-05-01 14:51:15 +00:00 committed by Pedro Amorim
parent 08333dc996
commit 5434465a35
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,28 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "42490",
description => "Add system preferene LocalHoldsPriorityScope",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type)
VALUES (
'LocalHoldsPriorityScope',
'checkin_and_queue',
NULL,
'Define whether these settings are used when building the holds queue or only when checking items in',
'Choice'
)
}
);
# sysprefs
say $out "Added new system preference 'LocalHoldsPriorityScope'";
},
};

View File

@ -426,6 +426,7 @@ INSERT INTO systempreferences ( `variable`, `value` ) VALUES
('LocalHoldsPriority', 'None'),
('LocalHoldsPriorityItemControl', 'holdingbranch'),
('LocalHoldsPriorityPatronControl', 'PickupLibrary'),
('LocalHoldsPriorityScope', 'checkin_and_queue'),
('LockExpiredDelay',''),
('LostChargesControl','ItemHomeLibrary'),
('makePreviousSerialAvailable','0'),

View File

@ -1115,6 +1115,11 @@ Circulation:
choices:
homebranch: "home library"
holdingbranch: "holding library"
- when
- pref: LocalHoldsPriorityScope
choices:
checkin_and_queue: "checking items in and building the holds queue"
checkin_only: "checking items in"
- <br/><strong>Note:</strong> If a group option is selected, LocalHoldsPriorityPatronControl and LocalHoldsPriorityItemControl will use the <a href="/cgi-bin/koha/admin/library_groups.pl">library hold group</a> of the selected libraries.
-
- For