From c2c806cdcd62270ea5de33ff3d8b7063780508ad Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 6 Jun 2025 12:18:33 +0000 Subject: [PATCH] Bug 38863: Show bookings options on itemtypes.pl This patch adds a column to the table of item types in item types administration to show if the item type is bookable by default. The column is hidden by default. To test, apply the patch and restart services. - Go to Administration -> Item types - If necessary, edit an item type and check the "Bookable" checkbox. - In the table of item types, the "Bookbable" column should be hidden by default. - Click the "Columns" button and check the "Bookable" menu item to show it. It should now appear. - Click the "Configure" button and try making changes to the default configuration. Your changes should be reflected on the item types pages. Sponsored-by: Athens County Public Libraries Signed-off-by: Paul Derscheid --- admin/columns_settings.yml | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 368bd08b113..eed02211b79 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -456,6 +456,9 @@ modules: - columnname: automatic_checkin is_hidden: 1 + - + columnname: bookable + is_hidden: 1 - columnname: actions cannot_be_toggled: 1 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index 5892f6c73d1..53e0757b5dc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -437,6 +437,7 @@ Checkin message Library limitations Automatic check-in + Bookable Actions [% FOREACH itemtype IN itemtypes %] @@ -534,6 +535,7 @@ [% END %] [% IF ( itemtype.automatic_checkin ) %]Yes[% ELSE %] [% END %] + [% IF ( itemtype.bookable ) %]Yes[% ELSE %] [% END %] Edit Delete -- 2.39.5