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:
parent
08333dc996
commit
5434465a35
|
|
@ -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'";
|
||||
},
|
||||
};
|
||||
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue