5 description => "Allow patrons to change pickup location for non-waiting holds",
8 my ($dbh, $out) = @$args{qw(dbh out)};
11 INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type)
12 VALUES ('OPACAllowUserToChangeBranch','','Pending, In-Transit, Suspended','Allow users to change the library to pick up a hold for these statuses:','multiple');
16 UPDATE systempreferences SET value = (SELECT CASE WHEN value = 1 THEN 'intransit' ELSE '' END
17 FROM systempreferences
18 WHERE variable = 'OPACInTransitHoldPickupLocationChange')
21 say $out "Added new system preference 'OPACAllowUserToChangeBranch'";
24 DELETE FROM systempreferences
25 WHERE variable = 'OPACInTransitHoldPickupLocationChange'
28 say $out "Removed system preference 'OPACInTransitHoldPickupLocationChange'";