From 413c241d6b089cbbb782ce712200a86d2a3ceac3 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 (cherry picked from commit a8018d568cd9757ba245c94477d2c9d410bee56c) Signed-off-by: Lucas Gass --- .../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 725ca167c4..e9f91e5375 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -2208,22 +2208,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 `