Bugzilla – Attachment 183070 Details for
Bug 38863
Show bookings options on itemtypes.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38863: Show bookings options on itemtypes.pl
Bug-38863-Show-bookings-options-on-itemtypespl.patch (text/plain), 3.17 KB, created by
Owen Leonard
on 2025-06-06 12:59:55 UTC
(
hide
)
Description:
Bug 38863: Show bookings options on itemtypes.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-06-06 12:59:55 UTC
Size:
3.17 KB
patch
obsolete
>From c02f417d0e45d3cb068303726345dd652001bcfc Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 >--- > admin/columns_settings.yml | 5 ++++- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index f4820008150..35ea2a8ee79 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -408,6 +408,9 @@ modules: > - > columnname: automatic_checkin > is_hidden: 1 >+ - >+ columnname: bookable >+ is_hidden: 1 > - > columnname: actions > cannot_be_toggled: 1 >@@ -2580,4 +2583,4 @@ modules: > - > columnname: actions > cannot_be_toggled: 1 >- cannot_be_modified: 1 >\ No newline at end of file >+ cannot_be_modified: 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 0f7915e3657..cefa3633a80 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -419,6 +419,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 %] >@@ -516,6 +517,7 @@ > [% END %] > </td> > <td>[% IF ( itemtype.automatic_checkin ) %]Yes[% ELSE %] [% END %]</td> >+ <td>[% IF ( itemtype.bookable ) %]Yes[% ELSE %] [% END %]</td> > <td class="actions"> > <a href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form&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&itemtype=[% itemtype.itemtype | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash-can"></i> Delete</a> >-- >2.39.5
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 38863
: 183070