View | Details | Raw Unified | Return to bug 6796
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_6796_-_add_ConsiderLibraryHoursInCirculation_syspref.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "6796",
5
    description => "Overnight checkouts taking into account opening and closing hours",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            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' ) }
12
        );
13
14
        say $out "Added system preference 'ConsiderLibraryHoursInCirculation'";
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 167-172 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
167
('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
167
('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
168
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
168
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
169
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
169
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
170
('ConsiderLibraryHoursInCirculation', 'close', 'close|open|ignore', "Take library opening hours into consideration to calculate due date when circulating.", 'Choice'),
170
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
171
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
171
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
172
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
172
('CookieConsent', '0', NULL, 'Require cookie consent to be displayed', 'YesNo'),
173
('CookieConsent', '0', NULL, 'Require cookie consent to be displayed', 'YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +7 lines)
Lines 571-576 Circulation: Link Here
571
            - 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
571
            - 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
572
            - "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."
572
            - "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."
573
            - Each pair of values should be on a separate line.
573
            - Each pair of values should be on a separate line.
574
        -
575
            - When checking out an hourly loan that will be due after the library closes,
576
            - pref: ConsiderLibraryHoursInCirculation
577
              choices:
578
                  open: "extend the loan period and set the checkout to be due at the library's open time."
579
                  close: "shorten the loan period and set the checkout to be due at the library's close time."
580
                  ignore: "do not consider the library's opening hours."
574
    Checkin policy:
581
    Checkin policy:
575
        -
582
        -
576
            - pref: TrapHoldsOnOrder
583
            - pref: TrapHoldsOnOrder
577
- 

Return to bug 6796