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

(-)a/installer/data/mysql/atomicupdate/bug_37661-EnableBooking_syspref.pl (+15 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "37661",
6
    description => "Add a way to enable/disable bookings",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo')});
12
13
        say_success( $out, "Added new system preference 'EnableBooking'" );
14
    },
15
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 246-251 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
246
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
246
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
247
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
247
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
248
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
248
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
249
('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo'),
249
('EnableExpiredPasswordReset', '0', NULL, 'Enable ability for patrons with expired password to reset their password directly', 'YesNo'),
250
('EnableExpiredPasswordReset', '0', NULL, 'Enable ability for patrons with expired password to reset their password directly', 'YesNo'),
250
('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'),
251
('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'),
251
('EnableItemGroups','0','','Enable the item groups feature','YesNo'),
252
('EnableItemGroups','0','','Enable the item groups feature','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +9 lines)
Lines 1515-1517 Circulation: Link Here
1515
                  1: Enable
1515
                  1: Enable
1516
                  0: Disable
1516
                  0: Disable
1517
            - "the curbside pickup module."
1517
            - "the curbside pickup module."
1518
- 
1518
1519
    Booking module:
1520
        -
1521
            - pref: EnableBooking
1522
              choices:
1523
                  1: Enable
1524
                  0: Disable
1525
            - "the booking module."
1526

Return to bug 37661