Bug 6796: ConsiderLibraryHoursInCirculation system preference

Sponsored-by: Catalyst IT
Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Aleisha Amohia 2021-09-08 03:58:46 +12:00 committed by Katrin Fischer
parent 7dac9eb7b5
commit 2216fa9b68
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,16 @@
use Modern::Perl;
return {
bug_number => "6796",
description => "Overnight checkouts taking into account opening and closing hours",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{ INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type ) VALUES ( 'ConsiderLibraryHoursInCirculation', 'ignore', 'close|open|ignore', "Take library opening hours into consideration to calculate due date when circulating.", 'Choice' ) }
);
say $out "Added system preference 'ConsiderLibraryHoursInCirculation'";
},
};

View file

@ -167,6 +167,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
('ConsiderLibraryHoursInCirculation', 'close', 'close|open|ignore', "Take library opening hours into consideration to calculate due date when circulating.", 'Choice'),
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
('CookieConsent', '0', NULL, 'Require cookie consent to be displayed', 'YesNo'),

View file

@ -577,6 +577,13 @@ Circulation:
- This is a list of value pairs. When an item is checked out, if the not for loan value on the left matches the items not for loan value
- "it will be updated to the right-hand value. For example, '-1: 0' will cause an item that was set to 'Ordered' to now be available for loan."
- Each pair of values should be on a separate line.
-
- When checking out an hourly loan that will be due after the library closes,
- pref: ConsiderLibraryHoursInCirculation
choices:
open: "extend the loan period and set the checkout to be due at the library's open time."
close: "shorten the loan period and set the checkout to be due at the library's close time."
ignore: "do not consider the library's opening hours."
Checkin policy:
-
- pref: TrapHoldsOnOrder