Bugzilla – Attachment 185728 Details for
Bug 37661
Disable/Enable Bookings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37661: Add a new syspref EnableBooking
Bug-37661-Add-a-new-syspref-EnableBooking.patch (text/plain), 25.05 KB, created by
Baptiste Wojtkowski (bwoj)
on 2025-08-25 08:06:55 UTC
(
hide
)
Description:
Bug 37661: Add a new syspref EnableBooking
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2025-08-25 08:06:55 UTC
Size:
25.05 KB
patch
obsolete
>From 539f2873439c8051d1c8b133c55773662787a202 Mon Sep 17 00:00:00 2001 >From: Baptiste <baptiste.wojtkowski@biblibre.com> >Date: Wed, 23 Jul 2025 15:39:03 +0200 >Subject: [PATCH] Bug 37661: Add a new syspref EnableBooking > >This patch makes the Booking module dependant of a new YesNo syspref: EnableBooking > >To do this, I tried and get all changes using the graph of Bug 29002 and >got interrested in every tt change to make changes on this depend on the >new syspref. File inside the booking module should not be amended. > >Here are the files I found relevant for each patch >Bug 37737: >- koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >Bug 37736: >- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >Bug 29002: >- koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt >- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt >- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt >- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt > >TEST PLAN: >1 - Set "Bookable = 1" on a given item >2 - Make sure you know where are located > - The field bookable on exemplaries > - The button "Place booking" in item toolbae > - The link "Bookings (0)" in item menu >3 - Apply patch and update database >4 - Check that every field listed in 2 - is still present >5 - Set the syspref "EnableBooking" to "Disable" >6 - Check that every field listed in 2 - is still present >7 - Browse Norme, ISBD, Marc, Items tabs + pages imageviewer.pl, labeledMARCdetail.pl and check that nothing is broken >--- > .../bug_37661-EnableBooking_syspref.pl | 17 +++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../prog/en/includes/biblio-view-menu.inc | 2 +- > .../prog/en/includes/cat-toolbar.inc | 3 +- > .../prog/en/includes/patron-detail-tabs.inc | 38 +++++----- > .../admin/preferences/circulation.pref | 10 ++- > .../prog/en/modules/catalogue/ISBDdetail.tt | 10 ++- > .../prog/en/modules/catalogue/MARCdetail.tt | 10 ++- > .../prog/en/modules/catalogue/detail.tt | 13 +++- > .../prog/en/modules/catalogue/imageviewer.tt | 10 ++- > .../en/modules/catalogue/labeledMARCdetail.tt | 10 ++- > .../prog/en/modules/catalogue/moredetail.tt | 74 ++++++++++--------- > .../prog/en/modules/circ/circulation-home.tt | 10 ++- > .../prog/en/modules/members/moremember.tt | 10 ++- > 14 files changed, 140 insertions(+), 78 deletions(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_37661-EnableBooking_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_37661-EnableBooking_syspref.pl b/installer/data/mysql/atomicupdate/bug_37661-EnableBooking_syspref.pl >new file mode 100755 >index 0000000000..1fd8bb1796 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_37661-EnableBooking_syspref.pl >@@ -0,0 +1,17 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "37661", >+ description => "Add a way to enable/disable bookings", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EnableBooking','1',NULL,'If enabled, activate every functionalities related with Bookings module','YesNo')} >+ ); >+ >+ say_success( $out, "Added new system preference 'EnableBooking'" ); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 76954d2022..6d1ce60218 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -251,6 +251,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'), > ('EmailSMSSendDriverFromAddress', '', '', 'Email SMS send driver from address override', 'Free'), > ('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'), >+('EnableBooking','1',NULL,'If enabled, activate every functionnalities related with Bookings module','YesNo'), > ('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'), > ('EnableExpiredPasswordReset', '0', NULL, 'Enable ability for patrons with expired password to reset their password directly', 'YesNo'), > ('EnableItemGroupHolds','0','','Enable item groups holds feature','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc >index 7d304bceaf..dd32ca07a2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-view-menu.inc >@@ -43,7 +43,7 @@ > [% END %] > </li> > >- [% IF ( CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %] >+ [% IF ( Koha.Preference('EnableBooking') && CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %] > <li [% IF bookingsview %]class="active"[% END %]> > <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> > </li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index f760ebc811..454dd266c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -283,8 +283,7 @@ > [% END %] > [% END %] > [% END %] >- >- [% IF ( CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %] >+ [% IF ( Koha.Preference('EnableBooking') && CAN_user_circulate_manage_bookings && biblio.items.filter_by_bookable.count ) %] > <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 > > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >index 24e01ea9b3..8b12124883 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc >@@ -23,10 +23,12 @@ > [% WRAPPER tab_item tabname= "holds" %] > <span>Holds</span> ([% holds_count || 0 | html %]) > [% END %] >- [% WRAPPER tab_item tabname="bookings" %] >- [% SET bookings_count = patron.bookings.filter_by_active.count %] >- [% SET expired_bookings_count = patron.bookings.count - bookings_count %] >- <span class="bookings_count">Bookings ([% bookings_count || 0 | html %])</span> >+ [% IF Koha.Preference('EnableBooking') %] >+ [% WRAPPER tab_item tabname="bookings" %] >+ [% SET bookings_count = patron.bookings.filter_by_active.count %] >+ [% SET expired_bookings_count = patron.bookings.count - bookings_count %] >+ <span class="bookings_count">Bookings ([% bookings_count || 0 | html %])</span> >+ [% END %] > [% END %] > [% END %] > >@@ -214,19 +216,21 @@ > [% END %] > [% END # /tab_panel#holds %] > >- [% WRAPPER tab_panel tabname="bookings" %] >- [% IF ( bookings_count ) %] >- <fieldset class="action filters" style="cursor:pointer;"> >- <a id="expired_filter" class="filtered"><i class="fa fa-bars"></i> Show expired</a> >- </fieldset> >- <table id="bookings_table" style="width: 100% !Important;"></table> >- [% ELSIF ( expired_bookings_count ) %] >- <fieldset class="action filters" style="cursor:pointer;"> >- <a id="expired_filter"><i class="fa fa-filter"></i> Hide expired</a> >- </fieldset> >- <table id="bookings_table" style="width: 100% !Important;"></table> >- [% ELSE %] >- <p>Patron has nothing booked.</p> >+ [% IF Koha.Preference('EnableBooking') %] >+ [% WRAPPER tab_panel tabname="bookings" %] >+ [% IF ( bookings_count ) %] >+ <fieldset class="action filters" style="cursor:pointer;"> >+ <a id="expired_filter" class="filtered"><i class="fa fa-bars"></i> Show expired</a> >+ </fieldset> >+ <table id="bookings_table" style="width: 100% !Important;"></table> >+ [% ELSIF ( expired_bookings_count ) %] >+ <fieldset class="action filters" style="cursor:pointer;"> >+ <a id="expired_filter"><i class="fa fa-filter"></i> Hide expired</a> >+ </fieldset> >+ <table id="bookings_table" style="width: 100% !Important;"></table> >+ [% ELSE %] >+ <p>Patron has nothing booked.</p> >+ [% END %] > [% END %] > [% END %] > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >index 9cd73cfe85..1210472b72 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >@@ -1534,4 +1534,12 @@ Circulation: > choices: > 1: Enable > 0: Disable >- - "the curbside pickup module." >\ No newline at end of file >+ - "the curbside pickup module." >+ >+ Booking module: >+ - >+ - pref: EnableBooking >+ choices: >+ 1: Enable >+ 0: Disable >+ - "the booking module." >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt >index 8fdd39fb2c..85c511aa8a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt >@@ -82,10 +82,14 @@ > <script> > dayjs.extend(window.dayjs_plugin_isSameOrBefore); > </script> >- [% INCLUDE 'calendar.inc' %] >- [% INCLUDE 'select2.inc' %] > [% Asset.js("js/catalog.js") | $raw %] >- [% Asset.js("js/modals/place_booking.js") | $raw %] >+ >+ [% IF Koha.Preference('EnableBooking') %] >+ [% INCLUDE 'calendar.inc' %] >+ [% INCLUDE 'select2.inc' %] >+ [% Asset.js("js/modals/place_booking.js") | $raw %] >+ [% END %] >+ > [% Asset.js("js/browser.js") | $raw %] > [% IF ( Koha.Preference('CatalogConcerns') ) %] > <script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >index 0b7138a255..66a5774709 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >@@ -206,10 +206,14 @@ > <script> > dayjs.extend(window.dayjs_plugin_isSameOrBefore); > </script> >- [% INCLUDE 'calendar.inc' %] >- [% INCLUDE 'select2.inc' %] > [% Asset.js("js/catalog.js") | $raw %] >- [% Asset.js("js/modals/place_booking.js") | $raw %] >+ >+ [% IF Koha.Preference('EnableBooking') %] >+ [% INCLUDE 'calendar.inc' %] >+ [% INCLUDE 'select2.inc' %] >+ [% Asset.js("js/modals/place_booking.js") | $raw %] >+ [% END %] >+ > [% Asset.js("js/browser.js") | $raw %] > [% IF ( Koha.Preference('CatalogConcerns') ) %] > <script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 0fc818512a..291b8ebd45 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -1254,10 +1254,12 @@ > [% END %] > > [% MACRO jsinclude BLOCK %] >- [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'catalog-strings.inc' %] >- [% INCLUDE 'select2.inc' %] >- [% INCLUDE 'js-date-format.inc' %] >+ [% IF Koha.Preference('EnableBooking') %] >+ [% INCLUDE 'calendar.inc' %] >+ [% INCLUDE 'select2.inc' %] >+ [% INCLUDE 'js-date-format.inc' %] >+ [% END %] > [% Asset.js("js/catalog.js") | $raw %] > [% Asset.js("js/recalls.js") | $raw %] > [% Asset.js("js/coce.js") | $raw %] >@@ -1719,7 +1721,10 @@ > [% INCLUDE 'js-patron-format.inc' %] > [% INCLUDE 'js-biblio-format.inc' %] > [% Asset.js("js/browser.js") | $raw %] >- [% Asset.js("js/modals/place_booking.js") | $raw %] >+ >+ [% IF Koha.Preference('EnableBooking') %] >+ [% Asset.js("js/modals/place_booking.js") | $raw %] >+ [% END %] > <script> > var browser; > browser = KOHA.browser("[% searchid | html %]", parseInt(biblionumber, 10)); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt >index 0bb0a483a0..ef094d2288 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt >@@ -136,10 +136,14 @@ > <script> > dayjs.extend(window.dayjs_plugin_isSameOrBefore); > </script> >- [% INCLUDE 'calendar.inc' %] >- [% INCLUDE 'select2.inc' %] > [% Asset.js("js/catalog.js") | $raw %] >- [% Asset.js("js/modals/place_booking.js") | $raw %] >+ >+ [% IF Koha.Preference('EnableBooking') %] >+ [% INCLUDE 'calendar.inc' %] >+ [% INCLUDE 'select2.inc' %] >+ [% Asset.js("js/modals/place_booking.js") | $raw %] >+ [% END %] >+ > [% IF ( Koha.Preference('CatalogConcerns') ) %] > <script> > /* Set a variable needed by add_catalog_concern.js */ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt >index 3e83f4e01c..aff14ecbb7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt >@@ -95,11 +95,15 @@ > <script> > dayjs.extend(window.dayjs_plugin_isSameOrBefore); > </script> >- [% INCLUDE 'calendar.inc' %] >- [% INCLUDE 'select2.inc' %] > [% Asset.js("js/catalog.js") | $raw %] >- [% Asset.js("js/modals/place_booking.js") | $raw %] > [% Asset.js("js/browser.js") | $raw %] >+ >+ [% IF Koha.Preference('EnableBooking') %] >+ [% INCLUDE 'calendar.inc' %] >+ [% INCLUDE 'select2.inc' %] >+ [% Asset.js("js/modals/place_booking.js") | $raw %] >+ [% END %] >+ > [% IF ( Koha.Preference('CatalogConcerns') ) %] > <script> > /* Set a variable needed by add_catalog_concern.js */ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >index 84526221a9..6619b86b4e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -396,37 +396,39 @@ > <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" /> > </form> > </li> >- <li class="bookable"> >- <span class="label"> Bookable: </span> >- [% IF ( CAN_user_circulate ) %] >- <form action="updateitem.pl" method="post"> >- [% INCLUDE 'csrf-token.inc' %] >- <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" /> >- <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /> >- <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" /> >- <select name="bookable"> >- [% IF ITEM_DAT.bookable == 1 %] >- <option value="">Follow item type</option> >- <option value="1" selected="selected">Yes</option> >- <option value="0">No</option> >- [% ELSIF ITEM_DAT.bookable == 0 %] >- <option value="">Follow item type</option> >- <option value="1">Yes</option> >- <option value="0" selected="selected">No</option> >- [% ELSE %] >- <option value="" selected="selected">Follow item type</option> >- <option value="1">Yes</option> >- <option value="0">No</option> >- [% END %] >- </select> >- <input type="hidden" name="op" value="cud-set_bookable" /> >- <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" /> >- </form> >- [% ELSE %] >- [% IF ITEM_DAT.bookable == 1 %]Yes[% ELSIF ITEM_DAT.bookable == 0 %]No[% ELSE %]Follow item type[% END %] >- [% END %] >- <span class="hint"> Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]</span> >- </li> >+ [% IF Koha.Preference('EnableBooking') %] >+ <li class="bookable"> >+ <span class="label"> Bookable: </span> >+ [% IF ( CAN_user_circulate ) %] >+ <form action="updateitem.pl" method="post"> >+ [% INCLUDE 'csrf-token.inc' %] >+ <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" /> >+ <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" /> >+ <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" /> >+ <select name="bookable"> >+ [% IF ITEM_DAT.bookable == 1 %] >+ <option value="">Follow item type</option> >+ <option value="1" selected="selected">Yes</option> >+ <option value="0">No</option> >+ [% ELSIF ITEM_DAT.bookable == 0 %] >+ <option value="">Follow item type</option> >+ <option value="1">Yes</option> >+ <option value="0" selected="selected">No</option> >+ [% ELSE %] >+ <option value="" selected="selected">Follow item type</option> >+ <option value="1">Yes</option> >+ <option value="0">No</option> >+ [% END %] >+ </select> >+ <input type="hidden" name="op" value="cud-set_bookable" /> >+ <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Update" /> >+ </form> >+ [% ELSE %] >+ [% IF ITEM_DAT.bookable == 1 %]Yes[% ELSIF ITEM_DAT.bookable == 0 %]No[% ELSE %]Follow item type[% END %] >+ [% END %] >+ <span class="hint"> Item type bookable: [% IF ITEM_DAT.effective_itemtype.bookable == 1 %]Yes[% ELSE %]No[% END %]</span> >+ </li> >+ [% END %] > </ol> > <!-- /.bibliodetails --> > </div> >@@ -584,12 +586,16 @@ > dayjs.extend(window.dayjs_plugin_isSameOrBefore); > </script> > [% INCLUDE 'js-patron-format.inc' %] >- [% INCLUDE 'calendar.inc' %] >- [% INCLUDE 'select2.inc' %] > [% Asset.js("js/catalog.js") | $raw %] >- [% Asset.js("js/modals/place_booking.js") | $raw %] > [% Asset.js("js/browser.js") | $raw %] > [% Asset.js("js/checkout_renewals_modal.js") | $raw %] >+ >+ [% IF Koha.Preference('EnableBooking') %] >+ [% INCLUDE 'calendar.inc' %] >+ [% INCLUDE 'select2.inc' %] >+ [% Asset.js("js/modals/place_booking.js") | $raw %] >+ [% END %] >+ > [% IF ( Koha.Preference('CatalogConcerns') ) %] > <script> > /* Set a variable needed by add_catalog_concern.js */ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >index ee5dbc7c76..b35f081876 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt >@@ -76,7 +76,7 @@ > > <div class="col-12 col-sm-4"> > <div class="holds-bookings"> >- <h3>Holds and bookings</h3> >+ <h3>Holds [% IF Koha.Preference('EnableBooking') %]and bookings[% END %]</h3> > > <ul class="buttons-list"> > <li> >@@ -96,9 +96,11 @@ > <li> > <a class="circ-button holds-ratio" href="/cgi-bin/koha/circ/reserveratios.pl"><i class="fa-solid fa-chart-line"></i> Hold ratios</a> > </li> >- <li> >- <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> >- </li> >+ [% IF Koha.Preference('EnableBooking') %] >+ <li> >+ <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> >+ </li> >+ [% END %] > </ul> > </div> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 83f4b8893b..05a25c7199 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -752,7 +752,9 @@ > [% INCLUDE 'modals/resolve_return_claim.inc' %] > [% END %] > >-[% INCLUDE modals/cancel_booking.inc %] >+[% IF Koha.Preference('EnableBooking') %] >+ [% INCLUDE modals/cancel_booking.inc %] >+[% END %] > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >@@ -786,7 +788,10 @@ > [% END %] > [% Asset.js("js/holds.js") | $raw %] > [% INCLUDE 'calendar.inc' %] >- [% Asset.js("js/cancel_booking_modal.js") | $raw %] >+ [% IF Koha.Preference('EnableBooking') %] >+ [% Asset.js("js/cancel_booking_modal.js") | $raw %] >+ [% Asset.js("js/tables/bookings.js") | $raw %] >+ [% END %] > [% Asset.js("js/combobox.js") | $raw %] > [% INCLUDE 'js-biblio-format.inc' %] > [% INCLUDE 'str/members-menu.inc' %] >@@ -855,7 +860,6 @@ > }); > </script> > [% Asset.js("js/checkouts.js") | $raw %] >- [% Asset.js("js/tables/bookings.js") | $raw %] > [% END %] > > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.43.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37661
:
184558
|
184559
|
184560
|
184561
|
184565
|
184566
|
184578
|
184579
|
184580
|
184581
|
184582
|
185150
|
185151
|
185152
|
185153
|
185154
|
185325
|
185326
|
185327
|
185329
|
185331
|
185333
|
185710
|
185711
|
185712
|
185713
|
185714
|
185715
|
185716
|
185728
|
185881
|
186137
|
186257