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 <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2025-06-06 12:18:33 +00:00 committed by Lucas Gass
parent d212eea842
commit c543c54971
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 5 additions and 0 deletions

View File

@ -456,6 +456,9 @@ modules:
-
columnname: automatic_checkin
is_hidden: 1
-
columnname: bookable
is_hidden: 1
-
columnname: actions
cannot_be_toggled: 1

View File

@ -437,6 +437,7 @@
<th>Checkin message</th>
<th>Library limitations</th>
<th>Automatic check-in</th>
<th>Bookable</th>
<th class="no-export no-sort">Actions</th>
</thead>
[% FOREACH itemtype IN itemtypes %]
@ -534,6 +535,7 @@
[% END %]
</td>
<td>[% IF ( itemtype.automatic_checkin ) %]Yes[% ELSE %]&nbsp;[% END %]</td>
<td>[% IF ( itemtype.bookable ) %]Yes[% ELSE %]&nbsp;[% END %]</td>
<td class="actions">
<a href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&amp;itemtype=[% itemtype.itemtype | uri %]" class="btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
<a href="/cgi-bin/koha/admin/itemtypes.pl?op=delete_confirm&amp;itemtype=[% itemtype.itemtype | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash-can"></i> Delete</a>