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

(-)a/installer/data/mysql/atomicupdate/bug_27834.pl (+22 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "27834",
6
    description =>
7
        "Add CheckoutLimitScope system preference to separate circulation rule selection from checkout counting",
8
    up => sub {
9
        my ($args) = @_;
10
        my ( $dbh, $out ) = @$args{qw(dbh out)};
11
12
        # Add new system preference
13
        $dbh->do(
14
            q{
15
            INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES
16
            ('CheckoutLimitScope', 'branch_specific', 'all|branch_specific', 'Determines how checkout limits are calculated when CircControl is set to PickupLibrary or ItemHomeLibrary. "all" counts all patron checkouts regardless of branch (PatronLibrary behavior). "branch_specific" counts only checkouts matching the circulation rule context (traditional PickupLibrary/ItemHomeLibrary behavior).', 'Choice')
17
        }
18
        );
19
20
        say_success( $out, "Added CheckoutLimitScope system preference" );
21
    },
22
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 155-160 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
155
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
155
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
156
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
156
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
157
('ChargeFinesOnClosedDays','0',NULL,'Charge fines on days the library is closed.','YesNo'),
157
('ChargeFinesOnClosedDays','0',NULL,'Charge fines on days the library is closed.','YesNo'),
158
('CheckoutLimitScope', 'branch_specific', 'all|branch_specific', 'Determines how checkout limits are calculated when CircControl is set to PickupLibrary or ItemHomeLibrary. "all" counts all patron checkouts regardless of branch (PatronLibrary behavior). "branch_specific" counts only checkouts matching the circulation rule context (traditional PickupLibrary/ItemHomeLibrary behavior).', 'Choice'),
158
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
159
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
159
('CheckPrevCheckoutDelay','0', NULL,'Maximum number of days that will trigger a warning if the patron has borrowed that item in the past when CheckPrevCheckout is enabled.','free'),
160
('CheckPrevCheckoutDelay','0', NULL,'Maximum number of days that will trigger a warning if the patron has borrowed that item in the past when CheckPrevCheckout is enabled.','free'),
160
('ChildNeedsGuarantor', 0, 'If ON, a child patron must have a guarantor when adding the patron.', '', 'YesNo'),
161
('ChildNeedsGuarantor', 0, 'If ON, a child patron must have a guarantor when adding the patron.', '', 'YesNo'),
161
- 

Return to bug 27834