Bug 30500: Add OPACInTransitHoldPickupLocationChange syspref

Sponsored-by: Montgomery County Public Libraries

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2022-06-08 17:22:51 -03:00
parent 2353893c1a
commit 1ae7b9055a
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,18 @@
use Modern::Perl;
return {
bug_number => "30500",
description => "Add option to allow user to change the pickup location while a hold is in transit",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
VALUES
('OPACInTransitHoldPickupLocationChange','0',NULL,'Allow user to change the pickup location while a hold is in transit','YesNo')
});
say $out "Added new system preference 'OPACInTransitHoldPickupLocationChange'";
},
}

File diff suppressed because one or more lines are too long

View File

@ -714,6 +714,12 @@ Circulation:
1: Allow
0: "Don't allow"
- a patron to renew an item with unfilled holds if other available items can fill that hold.
-
- pref: OPACInTransitHoldPickupLocationChange
choices:
1: Allow
0: "Don't allow"
- patrons to change their in transit holds pickup location.
-
- pref: AllowHoldPolicyOverride
choices: