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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-1 / +1 lines)
Lines 272-278 Link Here
272
    [% END %]
272
    [% END %]
273
[% END %]
273
[% END %]
274
274
275
[% IF ( CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
275
[% IF ( Koha.Preference('EnableBooking') && CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %]
276
<div class="btn-group"><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>
276
<div class="btn-group"><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>
277
[% END %]
277
[% END %]
278
278
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt (-3 / +7 lines)
Lines 91-100 Link Here
91
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
91
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
92
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
92
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
93
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
93
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
94
    [% INCLUDE 'calendar.inc' %]
95
    [% INCLUDE 'select2.inc' %]
96
    [% Asset.js("js/catalog.js") | $raw %]
94
    [% Asset.js("js/catalog.js") | $raw %]
97
    [% Asset.js("js/modals/place_booking.js") | $raw %]
95
96
    [% IF Koha.Preference('EnableBooking') %]
97
        [% INCLUDE 'calendar.inc' %]
98
        [% INCLUDE 'select2.inc' %]
99
        [% Asset.js("js/modals/place_booking.js") | $raw %]
100
    [% END %]
101
98
    [% Asset.js("js/browser.js") | $raw %]
102
    [% Asset.js("js/browser.js") | $raw %]
99
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
103
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
100
        <script>
104
        <script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt (-3 / +7 lines)
Lines 217-226 Link Here
217
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
217
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
218
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
218
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
219
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
219
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
220
    [% INCLUDE 'calendar.inc' %]
221
    [% INCLUDE 'select2.inc' %]
222
    [% Asset.js("js/catalog.js") | $raw %]
220
    [% Asset.js("js/catalog.js") | $raw %]
223
    [% Asset.js("js/modals/place_booking.js") | $raw %]
221
222
    [% IF Koha.Preference('EnableBooking') %]
223
        [% INCLUDE 'calendar.inc' %]
224
        [% INCLUDE 'select2.inc' %]
225
        [% Asset.js("js/modals/place_booking.js") | $raw %]
226
    [% END %]
227
224
    [% Asset.js("js/browser.js") | $raw %]
228
    [% Asset.js("js/browser.js") | $raw %]
225
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
229
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
226
        <script>
230
        <script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +10 lines)
Lines 1204-1213 Link Here
1204
    [% END %]
1204
    [% END %]
1205
1205
1206
[% MACRO jsinclude BLOCK %]
1206
[% MACRO jsinclude BLOCK %]
1207
    [% INCLUDE 'calendar.inc' %]
1208
    [% INCLUDE 'catalog-strings.inc' %]
1207
    [% INCLUDE 'catalog-strings.inc' %]
1209
    [% INCLUDE 'select2.inc' %]
1208
    [% IF Koha.Preference('EnableBooking') %]
1210
    [% INCLUDE 'js-date-format.inc' %]
1209
        [% INCLUDE 'calendar.inc' %]
1210
        [% INCLUDE 'select2.inc' %]
1211
        [% INCLUDE 'js-date-format.inc' %]
1212
    [% END %]
1211
    [% Asset.js("js/catalog.js") | $raw %]
1213
    [% Asset.js("js/catalog.js") | $raw %]
1212
    [% Asset.js("js/recalls.js") | $raw %]
1214
    [% Asset.js("js/recalls.js") | $raw %]
1213
    [% Asset.js("js/coce.js") | $raw %]
1215
    [% Asset.js("js/coce.js") | $raw %]
Lines 1660-1666 Link Here
1660
    [% INCLUDE 'js-patron-format.inc' %]
1662
    [% INCLUDE 'js-patron-format.inc' %]
1661
    [% INCLUDE 'js-biblio-format.inc' %]
1663
    [% INCLUDE 'js-biblio-format.inc' %]
1662
    [% Asset.js("js/browser.js") | $raw %]
1664
    [% Asset.js("js/browser.js") | $raw %]
1663
    [% Asset.js("js/modals/place_booking.js") | $raw %]
1665
1666
    [% IF Koha.Preference('EnableBooking') %]
1667
        [% Asset.js("js/modals/place_booking.js") | $raw %]
1668
    [% END %]
1669
1664
    <script>
1670
    <script>
1665
        var browser;
1671
        var browser;
1666
        browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10));
1672
        browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt (-3 / +7 lines)
Lines 145-154 Link Here
145
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
145
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
146
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
146
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
147
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
147
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
148
    [% INCLUDE 'calendar.inc' %]
149
    [% INCLUDE 'select2.inc' %]
150
    [% Asset.js("js/catalog.js") | $raw %]
148
    [% Asset.js("js/catalog.js") | $raw %]
151
    [% Asset.js("js/modals/place_booking.js") | $raw %]
149
150
    [% IF Koha.Preference('EnableBooking') %]
151
        [% INCLUDE 'calendar.inc' %]
152
        [% INCLUDE 'select2.inc' %]
153
        [% Asset.js("js/modals/place_booking.js") | $raw %]
154
    [% END %]
155
152
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
156
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
153
        <script>
157
        <script>
154
            /* Set a variable needed by add_catalog_concern.js */
158
            /* Set a variable needed by add_catalog_concern.js */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt (-3 / +7 lines)
Lines 105-115 Link Here
105
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
105
    [% Asset.js("lib/dayjs/plugin/isSameOrBefore.js") | $raw %]
106
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
106
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
107
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
107
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
108
    [% INCLUDE 'calendar.inc' %]
109
    [% INCLUDE 'select2.inc' %]
110
    [% Asset.js("js/catalog.js") | $raw %]
108
    [% Asset.js("js/catalog.js") | $raw %]
111
    [% Asset.js("js/modals/place_booking.js") | $raw %]
112
    [% Asset.js("js/browser.js") | $raw %]
109
    [% Asset.js("js/browser.js") | $raw %]
110
111
    [% IF Koha.Preference('EnableBooking') %]
112
        [% INCLUDE 'calendar.inc' %]
113
        [% INCLUDE 'select2.inc' %]
114
    [% Asset.js("js/modals/place_booking.js") | $raw %]
115
    [% END %]
116
113
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
117
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
114
        <script>
118
        <script>
115
            /* Set a variable needed by add_catalog_concern.js */
119
            /* Set a variable needed by add_catalog_concern.js */
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-4 / +9 lines)
Lines 342-347 Link Here
342
                                                <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
342
                                                <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" />
343
                                            </form>
343
                                            </form>
344
                                        </li>
344
                                        </li>
345
                                        [% IF Koha.Preference('EnableBooking') %]
345
                                        <li>
346
                                        <li>
346
                                            <span class="label">
347
                                            <span class="label">
347
                                                Bookable:
348
                                                Bookable:
Lines 375-380 Link Here
375
                                            [% END %]
376
                                            [% END %]
376
                                            <span class="hint"> Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]</span>
377
                                            <span class="hint"> Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]</span>
377
                                        </li>
378
                                        </li>
379
                                        [% END %]
378
380
379
                                    </ol> <!-- /.bibliodetails -->
381
                                    </ol> <!-- /.bibliodetails -->
380
                                    </div> <!-- /.rows -->
382
                                    </div> <!-- /.rows -->
Lines 525-536 Link Here
525
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
527
    <script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script>
526
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
528
    <script>dayjs.extend(window.dayjs_plugin_isSameOrBefore)</script>
527
    [% INCLUDE 'js-patron-format.inc' %]
529
    [% INCLUDE 'js-patron-format.inc' %]
528
    [% INCLUDE 'calendar.inc' %]
529
    [% INCLUDE 'select2.inc' %]
530
    [% Asset.js("js/catalog.js") | $raw %]
530
    [% Asset.js("js/catalog.js") | $raw %]
531
    [% Asset.js("js/modals/place_booking.js") | $raw %]
532
    [% Asset.js("js/browser.js") | $raw %]
531
    [% Asset.js("js/browser.js") | $raw %]
533
    [% Asset.js("js/checkout_renewals_modal.js") | $raw %]
532
    [% Asset.js("js/checkout_renewals_modal.js") | $raw %]
533
534
    [% IF Koha.Preference('EnableBooking') %]
535
        [% INCLUDE 'calendar.inc' %]
536
        [% INCLUDE 'select2.inc' %]
537
        [% Asset.js("js/modals/place_booking.js") | $raw %]
538
    [% END %]
539
534
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
540
    [% IF ( Koha.Preference('CatalogConcerns') ) %]
535
        <script>
541
        <script>
536
            /* Set a variable needed by add_catalog_concern.js */
542
            /* Set a variable needed by add_catalog_concern.js */
537
- 

Return to bug 37661