From a8018d568cd9757ba245c94477d2c9d410bee56c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 20 Oct 2023 14:53:13 +0200 Subject: [PATCH] Bug 34913: Move item groups table to kohaTable Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize (cherry picked from commit f9687f28c018075758364ffb3d859d2477defdae) Signed-off-by: Fridolin Somers --- .../prog/en/modules/catalogue/detail.tt | 38 +++++++++---------- 1 file changed, 17 insertions(+), 21 deletions(-) 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 472e335fbf..2a4f04b958 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -2221,22 +2221,24 @@ [% IF Koha.Preference('EnableItemGroups') %] // Load item groups table - var itemGroupsTable = KohaTable("items-group-table", { - "autoWidth": false, - "dom": '<"top pager"ilp>t<"bottom pager"ip>r', - "columns": [ + var itemGroupsTable = $("#items-group-table").kohaTable({ + autoWidth: false, + dom: '<"top pager"ilp>t<"bottom pager"ip>r', + columns: [ { - "data": function( oObj ) { - return oObj.display_order; - }, + data: "display_order", + title: _("Display order"), + searchable: true, + orderable: true, }, { - "data": function( oObj ) { - return oObj.description; - }, + data: "description", + title: _("Description"), + searchable: true, + orderable: true, }, { - "data": function( oObj ) { + data: function( oObj ) { [% IF CAN_user_editcatalogue_manage_item_groups %] return `