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 252-257 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
252
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
252
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
253
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
253
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
254
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
254
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
255
('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo'),
255
('EnableExpiredPasswordReset', '0', NULL, 'Enable ability for patrons with expired password to reset their password directly', 'YesNo'),
256
('EnableExpiredPasswordReset', '0', NULL, 'Enable ability for patrons with expired password to reset their password directly', 'YesNo'),
256
('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'),
257
('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'),
257
('EnableItemGroups','0','','Enable the item groups feature','YesNo'),
258
('EnableItemGroups','0','','Enable the item groups feature','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-2 / +9 lines)
Lines 1534-1537 Circulation: Link Here
1534
              choices:
1534
              choices:
1535
                  1: Enable
1535
                  1: Enable
1536
                  0: Disable
1536
                  0: Disable
1537
            - "the curbside pickup module."
1537
            - "the curbside pickup module."
1538
1539
    Booking module:
1540
        -
1541
            - pref: EnableBooking
1542
              choices:
1543
                  1: Enable
1544
                  0: Disable
1545
            - "the booking module."
1538
- 

Return to bug 37661