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

(-)a/installer/data/mysql/atomicupdate/bug_37661-EnableBooking_syspref.pl (+17 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(
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
        );
14
15
        say_success( $out, "Added new system preference 'EnableBooking'" );
16
    },
17
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 253-258 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
253
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
253
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
254
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
254
('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'),
255
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
255
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
256
('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo'),
256
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
257
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
257
('EnableExpiredPasswordReset', '0', NULL, 'Enable ability for patrons with expired password to reset their password directly', 'YesNo'),
258
('EnableExpiredPasswordReset', '0', NULL, 'Enable ability for patrons with expired password to reset their password directly', 'YesNo'),
258
('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'),
259
('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc (-1 / +1 lines)
Lines 43-49 Link Here
43
            [% END %]
43
            [% END %]
44
        </li>
44
        </li>
45
45
46
        [% IF ( CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
46
        [% IF ( Koha.Preference('EnableBooking') && CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
47
            <li [% IF bookingsview %]class="active"[% END %]>
47
            <li [% IF bookingsview %]class="active"[% END %]>
48
                <a href="/cgi-bin/koha/bookings/list.pl?biblionumber=[% biblio_object_id | url %]">Bookings (<span class="bookings_count">[% biblio.bookings.filter_by_active.count | html %]</span>)</a>
48
                <a href="/cgi-bin/koha/bookings/list.pl?biblionumber=[% biblio_object_id | url %]">Bookings (<span class="bookings_count">[% biblio.bookings.filter_by_active.count | html %]</span>)</a>
49
            </li>
49
            </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-2 / +1 lines)
Lines 283-290 Link Here
283
            [% END %]
283
            [% END %]
284
        [% END %]
284
        [% END %]
285
    [% END %]
285
    [% END %]
286
286
    [% IF ( Koha.Preference('EnableBooking') &&  CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
287
    [% IF ( CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
288
        <div class="btn-group"
287
        <div class="btn-group"
289
            ><button id="placbooking" class="btn btn-default" data-bs-toggle="modal" data-bs-target="#placeBookingModal" data-biblionumber="[% biblionumber | html %]"><i class="fa fa-calendar"></i> Place booking</button></div
288
            ><button id="placbooking" class="btn btn-default" data-bs-toggle="modal" data-bs-target="#placeBookingModal" data-biblionumber="[% biblionumber | html %]"><i class="fa fa-calendar"></i> Place booking</button></div
290
        >
289
        >
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc (-17 / +21 lines)
Lines 24-33 Link Here
24
            [% WRAPPER tab_item tabname= "holds" %]
24
            [% WRAPPER tab_item tabname= "holds" %]
25
                <span>Holds</span> ([% holds_count || 0 | html %])
25
                <span>Holds</span> ([% holds_count || 0 | html %])
26
            [% END %]
26
            [% END %]
27
            [% WRAPPER tab_item tabname="bookings" %]
27
            [% IF Koha.Preference('EnableBooking') %]
28
                [% SET bookings_count = patron.bookings.filter_by_active.count %]
28
                [% WRAPPER tab_item tabname="bookings" %]
29
                [% SET expired_bookings_count = patron.bookings.count - bookings_count %]
29
                    [% SET bookings_count = patron.bookings.filter_by_active.count %]
30
                <span class="bookings_count">Bookings ([% bookings_count || 0 | html %])</span>
30
                    [% SET expired_bookings_count = patron.bookings.count - bookings_count %]
31
                    <span class="bookings_count">Bookings ([% bookings_count || 0 | html %])</span>
32
                [% END %]
31
            [% END %]
33
            [% END %]
32
        [% END %]
34
        [% END %]
33
35
Lines 191-209 Link Here
191
                [% END %]
193
                [% END %]
192
            [% END # /tab_panel#holds %]
194
            [% END # /tab_panel#holds %]
193
195
194
            [% WRAPPER tab_panel tabname="bookings" %]
196
            [% IF Koha.Preference('EnableBooking') %]
195
                [% IF ( bookings_count ) %]
197
                [% WRAPPER tab_panel tabname="bookings" %]
196
                    <fieldset class="action filters" style="cursor:pointer;">
198
                    [% IF ( bookings_count ) %]
197
                        <a id="expired_filter" class="filtered"><i class="fa fa-bars"></i> Show expired</a>
199
                        <fieldset class="action filters" style="cursor:pointer;">
198
                    </fieldset>
200
                            <a id="expired_filter" class="filtered"><i class="fa fa-bars"></i> Show expired</a>
199
                    <table id="bookings_table" style="width: 100% !Important;"></table>
201
                        </fieldset>
200
                [% ELSIF ( expired_bookings_count ) %]
202
                        <table id="bookings_table" style="width: 100% !Important;"></table>
201
                    <fieldset class="action filters" style="cursor:pointer;">
203
                    [% ELSIF ( expired_bookings_count ) %]
202
                        <a id="expired_filter"><i class="fa fa-filter"></i> Hide expired</a>
204
                        <fieldset class="action filters" style="cursor:pointer;">
203
                    </fieldset>
205
                            <a id="expired_filter"><i class="fa fa-filter"></i> Hide expired</a>
204
                    <table id="bookings_table" style="width: 100% !Important;"></table>
206
                        </fieldset>
205
                [% ELSE %]
207
                        <table id="bookings_table" style="width: 100% !Important;"></table>
206
                    <p>Patron has nothing booked.</p>
208
                    [% ELSE %]
209
                        <p>Patron has nothing booked.</p>
210
                    [% END %]
207
                [% END %]
211
                [% END %]
208
            [% END %]
212
            [% END %]
209
        [% END %]
213
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +9 lines)
Lines 1540-1543 Circulation: Link Here
1540
              choices:
1540
              choices:
1541
                  1: Enable
1541
                  1: Enable
1542
                  0: Disable
1542
                  0: Disable
1543
            - "the curbside pickup module."
1543
            - "the curbside pickup module."
1544
1545
    Booking module:
1546
        -
1547
            - pref: EnableBooking
1548
              choices:
1549
                  1: Enable
1550
                  0: Disable
1551
            - "the booking module."
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt (-3 / +7 lines)
Lines 82-91 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
    [% INCLUDE 'calendar.inc' %]
86
    [% INCLUDE 'select2.inc' %]
87
    [% Asset.js("js/catalog.js") | $raw %]
85
    [% Asset.js("js/catalog.js") | $raw %]
88
    [% Asset.js("js/modals/place_booking.js") | $raw %]
86
87
    [% IF Koha.Preference('EnableBooking') %]
88
        [% INCLUDE 'calendar.inc' %]
89
        [% INCLUDE 'select2.inc' %]
90
        [% Asset.js("js/modals/place_booking.js") | $raw %]
91
    [% END %]
92
89
    [% Asset.js("js/browser.js") | $raw %]
93
    [% Asset.js("js/browser.js") | $raw %]
90
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
94
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
91
        <script>
95
        <script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt (-3 / +7 lines)
Lines 206-215 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
    [% INCLUDE 'calendar.inc' %]
210
    [% INCLUDE 'select2.inc' %]
211
    [% Asset.js("js/catalog.js") | $raw %]
209
    [% Asset.js("js/catalog.js") | $raw %]
212
    [% Asset.js("js/modals/place_booking.js") | $raw %]
210
211
    [% IF Koha.Preference('EnableBooking') %]
212
        [% INCLUDE 'calendar.inc' %]
213
        [% INCLUDE 'select2.inc' %]
214
        [% Asset.js("js/modals/place_booking.js") | $raw %]
215
    [% END %]
216
213
    [% Asset.js("js/browser.js") | $raw %]
217
    [% Asset.js("js/browser.js") | $raw %]
214
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
218
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
215
        <script>
219
        <script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +9 lines)
Lines 1254-1263 Link Here
1254
[% END %]
1254
[% END %]
1255
1255
1256
[% MACRO jsinclude BLOCK %]
1256
[% MACRO jsinclude BLOCK %]
1257
    [% INCLUDE 'calendar.inc' %]
1258
    [% INCLUDE 'catalog-strings.inc' %]
1257
    [% INCLUDE 'catalog-strings.inc' %]
1259
    [% INCLUDE 'select2.inc' %]
1258
    [% IF Koha.Preference('EnableBooking') %]
1260
    [% INCLUDE 'js-date-format.inc' %]
1259
        [% INCLUDE 'calendar.inc' %]
1260
        [% INCLUDE 'select2.inc' %]
1261
        [% INCLUDE 'js-date-format.inc' %]
1262
    [% END %]
1261
    [% Asset.js("js/catalog.js") | $raw %]
1263
    [% Asset.js("js/catalog.js") | $raw %]
1262
    [% Asset.js("js/recalls.js") | $raw %]
1264
    [% Asset.js("js/recalls.js") | $raw %]
1263
    [% Asset.js("js/coce.js") | $raw %]
1265
    [% Asset.js("js/coce.js") | $raw %]
Lines 1719-1725 Link Here
1719
    [% INCLUDE 'js-patron-format.inc' %]
1721
    [% INCLUDE 'js-patron-format.inc' %]
1720
    [% INCLUDE 'js-biblio-format.inc' %]
1722
    [% INCLUDE 'js-biblio-format.inc' %]
1721
    [% Asset.js("js/browser.js") | $raw %]
1723
    [% Asset.js("js/browser.js") | $raw %]
1722
    [% Asset.js("js/modals/place_booking.js") | $raw %]
1724
1725
    [% IF Koha.Preference('EnableBooking') %]
1726
        [% Asset.js("js/modals/place_booking.js") | $raw %]
1727
    [% END %]
1723
    <script>
1728
    <script>
1724
        var browser;
1729
        var browser;
1725
        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 (-3 / +7 lines)
Lines 136-145 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
    [% INCLUDE 'calendar.inc' %]
140
    [% INCLUDE 'select2.inc' %]
141
    [% Asset.js("js/catalog.js") | $raw %]
139
    [% Asset.js("js/catalog.js") | $raw %]
142
    [% Asset.js("js/modals/place_booking.js") | $raw %]
140
141
    [% IF Koha.Preference('EnableBooking') %]
142
        [% INCLUDE 'calendar.inc' %]
143
        [% INCLUDE 'select2.inc' %]
144
        [% Asset.js("js/modals/place_booking.js") | $raw %]
145
    [% END %]
146
143
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
147
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
144
        <script>
148
        <script>
145
            /* Set a variable needed by add_catalog_concern.js */
149
            /* Set a variable needed by add_catalog_concern.js */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt (-3 / +7 lines)
Lines 95-105 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
    [% INCLUDE 'calendar.inc' %]
99
    [% INCLUDE 'select2.inc' %]
100
    [% Asset.js("js/catalog.js") | $raw %]
98
    [% Asset.js("js/catalog.js") | $raw %]
101
    [% Asset.js("js/modals/place_booking.js") | $raw %]
102
    [% Asset.js("js/browser.js") | $raw %]
99
    [% Asset.js("js/browser.js") | $raw %]
100
101
    [% IF Koha.Preference('EnableBooking') %]
102
        [% INCLUDE 'calendar.inc' %]
103
        [% INCLUDE 'select2.inc' %]
104
        [% Asset.js("js/modals/place_booking.js") | $raw %]
105
    [% END %]
106
103
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
107
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
104
        <script>
108
        <script>
105
            /* Set a variable needed by add_catalog_concern.js */
109
            /* Set a variable needed by add_catalog_concern.js */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-34 / +40 lines)
Lines 396-432 Link Here
396
                                        <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
396
                                        <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
397
                                    </form>
397
                                    </form>
398
                                </li>
398
                                </li>
399
                                <li class="bookable">
399
                                [% IF Koha.Preference('EnableBooking') %]
400
                                    <span class="label"> Bookable: </span>
400
                                    <li class="bookable">
401
                                    [% IF ( CAN_user_circulate ) %]
401
                                        <span class="label"> Bookable: </span>
402
                                        <form action="updateitem.pl" method="post">
402
                                        [% IF ( CAN_user_circulate ) %]
403
                                            [% INCLUDE 'csrf-token.inc' %]
403
                                            <form action="updateitem.pl" method="post">
404
                                            <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
404
                                                [% INCLUDE 'csrf-token.inc' %]
405
                                            <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
405
                                                <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
406
                                            <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
406
                                                <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
407
                                            <select name="bookable">
407
                                                <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
408
                                                [% IF ITEM_DAT.bookable == 1 %]
408
                                                <select name="bookable">
409
                                                    <option value="">Follow item type</option>
409
                                                    [% IF ITEM_DAT.bookable == 1 %]
410
                                                    <option value="1" selected="selected">Yes</option>
410
                                                        <option value="">Follow item type</option>
411
                                                    <option value="0">No</option>
411
                                                        <option value="1" selected="selected">Yes</option>
412
                                                [% ELSIF ITEM_DAT.bookable == 0 %]
412
                                                        <option value="0">No</option>
413
                                                    <option value="">Follow item type</option>
413
                                                    [% ELSIF ITEM_DAT.bookable == 0 %]
414
                                                    <option value="1">Yes</option>
414
                                                        <option value="">Follow item type</option>
415
                                                    <option value="0" selected="selected">No</option>
415
                                                        <option value="1">Yes</option>
416
                                                [% ELSE %]
416
                                                        <option value="0" selected="selected">No</option>
417
                                                    <option value="" selected="selected">Follow item type</option>
417
                                                    [% ELSE %]
418
                                                    <option value="1">Yes</option>
418
                                                        <option value="" selected="selected">Follow item type</option>
419
                                                    <option value="0">No</option>
419
                                                        <option value="1">Yes</option>
420
                                                [% END %]
420
                                                        <option value="0">No</option>
421
                                            </select>
421
                                                    [% END %]
422
                                            <input type="hidden" name="op" value="cud-set_bookable" />
422
                                                </select>
423
                                            <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
423
                                                <input type="hidden" name="op" value="cud-set_bookable" />
424
                                        </form>
424
                                                <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
425
                                    [% ELSE %]
425
                                            </form>
426
                                        [% IF ITEM_DAT.bookable == 1 %]Yes[% ELSIF ITEM_DAT.bookable == 0 %]No[% ELSE %]Follow item type[% END %]
426
                                        [% ELSE %]
427
                                    [% END %]
427
                                            [% IF ITEM_DAT.bookable == 1 %]Yes[% ELSIF ITEM_DAT.bookable == 0 %]No[% ELSE %]Follow item type[% END %]
428
                                    <span class="hint"> Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]</span>
428
                                        [% END %]
429
                                </li>
429
                                        <span class="hint"> Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]</span>
430
                                    </li>
431
                                [% END %]
430
                            </ol>
432
                            </ol>
431
                            <!-- /.bibliodetails -->
433
                            <!-- /.bibliodetails -->
432
                        </div>
434
                        </div>
Lines 584-595 Link Here
584
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
586
        dayjs.extend(window.dayjs_plugin_isSameOrBefore);
585
    </script>
587
    </script>
586
    [% INCLUDE 'js-patron-format.inc' %]
588
    [% INCLUDE 'js-patron-format.inc' %]
587
    [% INCLUDE 'calendar.inc' %]
588
    [% INCLUDE 'select2.inc' %]
589
    [% Asset.js("js/catalog.js") | $raw %]
589
    [% Asset.js("js/catalog.js") | $raw %]
590
    [% Asset.js("js/modals/place_booking.js") | $raw %]
591
    [% Asset.js("js/browser.js") | $raw %]
590
    [% Asset.js("js/browser.js") | $raw %]
592
    [% Asset.js("js/checkout_renewals_modal.js") | $raw %]
591
    [% Asset.js("js/checkout_renewals_modal.js") | $raw %]
592
593
    [% IF Koha.Preference('EnableBooking') %]
594
        [% INCLUDE 'calendar.inc' %]
595
        [% INCLUDE 'select2.inc' %]
596
        [% Asset.js("js/modals/place_booking.js") | $raw %]
597
    [% END %]
598
593
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
599
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
594
        <script>
600
        <script>
595
            /* 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 (-4 / +6 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 and bookings</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>
Lines 96-104 Link Here
96
                    <li>
96
                    <li>
97
                        <a class="circ-button holds-ratio" href="/cgi-bin/koha/circ/reserveratios.pl"><i class="fa-solid fa-chart-line"></i> Hold ratios</a>
97
                        <a class="circ-button holds-ratio" href="/cgi-bin/koha/circ/reserveratios.pl"><i class="fa-solid fa-chart-line"></i> Hold ratios</a>
98
                    </li>
98
                    </li>
99
                    <li>
99
                    [% IF Koha.Preference('EnableBooking') %]
100
                        <a class="circ-button bookings-to-collect" href="/cgi-bin/koha/circ/pendingbookings.pl"><i class="fa-solid fa-calendar-days"></i> Bookings to collect</a>
100
                        <li>
101
                    </li>
101
                            <a class="circ-button bookings-to-collect" href="/cgi-bin/koha/circ/pendingbookings.pl"><i class="fa-solid fa-calendar-days"></i> Bookings to collect</a>
102
                        </li>
103
                    [% END %]
102
                </ul>
104
                </ul>
103
            </div>
105
            </div>
104
106
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-4 / +7 lines)
Lines 756-763 Link Here
756
    [% INCLUDE 'modals/resolve_return_claim.inc' %]
756
    [% INCLUDE 'modals/resolve_return_claim.inc' %]
757
[% END %]
757
[% END %]
758
758
759
[% INCLUDE modals/cancel_booking.inc %]
760
[% INCLUDE 'hold-group-modal.inc' %]
759
[% INCLUDE 'hold-group-modal.inc' %]
760
[% IF Koha.Preference('EnableBooking') %]
761
    [% INCLUDE modals/cancel_booking.inc %]
762
[% END %]
761
763
762
[% MACRO jsinclude BLOCK %]
764
[% MACRO jsinclude BLOCK %]
763
    [% INCLUDE 'datatables.inc' %]
765
    [% INCLUDE 'datatables.inc' %]
Lines 791-797 Link Here
791
    [% END %]
793
    [% END %]
792
    [% Asset.js("js/holds.js") | $raw %]
794
    [% Asset.js("js/holds.js") | $raw %]
793
    [% INCLUDE 'calendar.inc' %]
795
    [% INCLUDE 'calendar.inc' %]
794
    [% Asset.js("js/cancel_booking_modal.js") | $raw %]
796
    [% IF Koha.Preference('EnableBooking') %]
797
        [% Asset.js("js/cancel_booking_modal.js") | $raw %]
798
        [% Asset.js("js/tables/bookings.js") | $raw %]
799
    [% END %]
795
    [% Asset.js("js/combobox.js") | $raw %]
800
    [% Asset.js("js/combobox.js") | $raw %]
796
    [% INCLUDE 'js-biblio-format.inc' %]
801
    [% INCLUDE 'js-biblio-format.inc' %]
797
    [% INCLUDE 'str/members-menu.inc' %]
802
    [% INCLUDE 'str/members-menu.inc' %]
Lines 861-867 Link Here
861
        });
866
        });
862
    </script>
867
    </script>
863
    [% Asset.js("js/checkouts.js") | $raw %]
868
    [% Asset.js("js/checkouts.js") | $raw %]
864
    [% Asset.js("js/tables/bookings.js") | $raw %]
865
[% END %]
869
[% END %]
866
870
867
[% INCLUDE 'intranet-bottom.inc' %]
871
[% INCLUDE 'intranet-bottom.inc' %]
868
- 

Return to bug 37661