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

(-)a/installer/data/mysql/atomicupdate/bug_37661-EnableBooking_syspref.pl (-1 / +3 lines)
Lines 8-14 return { Link Here
8
        my ($args) = @_;
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
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')});
11
        $dbh->do(
12
            q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EnableBooking','1',NULL,'If enabled, activate every functionalities related with Bookings module','YesNo')}
13
        );
12
14
13
        say_success( $out, "Added new system preference 'EnableBooking'" );
15
        say_success( $out, "Added new system preference 'EnableBooking'" );
14
    },
16
    },
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 251-258 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
251
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
251
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
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'),
255
('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo'),
254
('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo'),
255
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
256
('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'),
257
('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'),
257
('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'),
258
('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/catalogue/ISBDdetail.tt (-2 / +6 lines)
Lines 82-89 Link Here
82
    <script>
82
    <script>
83
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
83
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
84
    </script>
84
    </script>
85
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
85
    <script>
86
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
86
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
87
    </script>
88
    <script>
89
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
90
    </script>
87
    [% Asset.js("js/catalog.js") | $raw %]
91
    [% Asset.js("js/catalog.js") | $raw %]
88
92
89
    [% IF Koha.Preference('EnableBooking') %]
93
    [% IF Koha.Preference('EnableBooking') %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt (-2 / +6 lines)
Lines 206-213 Link Here
206
    <script>
206
    <script>
207
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
207
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
208
    </script>
208
    </script>
209
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
209
    <script>
210
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
210
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
211
    </script>
212
    <script>
213
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
214
    </script>
211
    [% Asset.js("js/catalog.js") | $raw %]
215
    [% Asset.js("js/catalog.js") | $raw %]
212
216
213
    [% IF Koha.Preference('EnableBooking') %]
217
    [% IF Koha.Preference('EnableBooking') %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 lines)
Lines 1725-1731 Link Here
1725
    [% IF Koha.Preference('EnableBooking') %]
1725
    [% IF Koha.Preference('EnableBooking') %]
1726
        [% Asset.js("js/modals/place_booking.js") | $raw %]
1726
        [% Asset.js("js/modals/place_booking.js") | $raw %]
1727
    [% END %]
1727
    [% END %]
1728
1729
    <script>
1728
    <script>
1730
        var browser;
1729
        var browser;
1731
        browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10));
1730
        browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt (-2 / +6 lines)
Lines 136-143 Link Here
136
    <script>
136
    <script>
137
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
137
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
138
    </script>
138
    </script>
139
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
139
    <script>
140
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
140
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
141
    </script>
142
    <script>
143
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
144
    </script>
141
    [% Asset.js("js/catalog.js") | $raw %]
145
    [% Asset.js("js/catalog.js") | $raw %]
142
146
143
    [% IF Koha.Preference('EnableBooking') %]
147
    [% IF Koha.Preference('EnableBooking') %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt (-3 / +7 lines)
Lines 95-109 Link Here
95
    <script>
95
    <script>
96
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
96
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
97
    </script>
97
    </script>
98
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
98
    <script>
99
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
99
        dayjs.extend(window.dayjs_plugin_isSameOrAfter);
100
    </script>
101
    <script>
102
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
103
    </script>
100
    [% Asset.js("js/catalog.js") | $raw %]
104
    [% Asset.js("js/catalog.js") | $raw %]
101
    [% Asset.js("js/browser.js") | $raw %]
105
    [% Asset.js("js/browser.js") | $raw %]
102
106
103
    [% IF Koha.Preference('EnableBooking') %]
107
    [% IF Koha.Preference('EnableBooking') %]
104
        [% INCLUDE 'calendar.inc' %]
108
        [% INCLUDE 'calendar.inc' %]
105
        [% INCLUDE 'select2.inc' %]
109
        [% INCLUDE 'select2.inc' %]
106
    [% Asset.js("js/modals/place_booking.js") | $raw %]
110
        [% Asset.js("js/modals/place_booking.js") | $raw %]
107
    [% END %]
111
    [% END %]
108
112
109
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
113
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-1 lines)
Lines 596-602 Link Here
596
        [% Asset.js("js/modals/place_booking.js") | $raw %]
596
        [% Asset.js("js/modals/place_booking.js") | $raw %]
597
    [% END %]
597
    [% END %]
598
598
599
600
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
599
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
601
        <script>
600
        <script>
602
            /* Set a variable needed by add_catalog_concern.js */
601
            /* Set a variable needed by add_catalog_concern.js */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt (-2 / +1 lines)
Lines 76-82 Link Here
76
76
77
        <div class="col-12 col-sm-4">
77
        <div class="col-12 col-sm-4">
78
            <div class="holds-bookings">
78
            <div class="holds-bookings">
79
                <h3>Holds [% IF Koha.Preference('EnableBooking') %] and bookings [% END %]</h3>
79
                <h3>Holds [% IF Koha.Preference('EnableBooking') %]and bookings[% END %]</h3>
80
80
81
                <ul class="buttons-list">
81
                <ul class="buttons-list">
82
                    <li>
82
                    <li>
83
- 

Return to bug 37661