From a2a0842892f52db627afed5796911d86ee1ce530 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 Signed-off-by: Katrin Fischer --- .../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 9d300688a3..c308b2b159 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 `