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

(-)a/installer/data/mysql/atomicupdate/bug_27834.pl (+21 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 => "Add CircControlCheckoutLimitScope system preference with explicit scope options",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Add new system preference
12
        $dbh->do(
13
            q{
14
            INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES
15
            ('CircControlCheckoutLimitScope', 'all', 'all|item|checkout', 'Determines how checkout limits are calculated. "all" counts all patron checkouts across all libraries. "item" counts only checkouts of items from the same library as the item being checked out (uses HomeOrHoldingBranch preference). "checkout" counts only checkouts made at the same library as the current checkout.', 'Choice')
16
        }
17
        );
18
19
        say_success( $out, "Added CircControlCheckoutLimitScope system preference" );
20
    },
21
};
(-)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
('CircControlCheckoutLimitScope', 'all', 'all|item|checkout', 'Determines how checkout limits are calculated. "all" counts all patron checkouts across all libraries. "item" counts only checkouts of items from the same library as the item being checked out (uses HomeOrHoldingBranch preference). "checkout" counts only checkouts made at the same library as the current checkout.', '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