From fcecf1b73d91eac75773fb2aaf6cc9fab7cc2190 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Fri, 1 Jul 2022 12:43:12 +0100
Subject: [PATCH] Bug 28854: (follow-up) Remove fields from from bundle items

This patch removes the itemtype and collection code fields from the
bundle items table.

We will add the itemtype back in at a later date with a new bug as the
display code needs some careful consideration and we felt that doing
that work inline here would be an unrequired blocker.
---
 admin/columns_settings.yml                         |  4 ----
 .../prog/en/modules/catalogue/detail.tt            | 14 +-------------
 2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml
index 9cea3ad8e5..aa1fb9f8b5 100644
--- a/admin/columns_settings.yml
+++ b/admin/columns_settings.yml
@@ -528,10 +528,6 @@ modules:
               cannot_be_toggled: 1
             -
               columnname: author
-            -
-              columnname: collection_code
-            -
-              columnname: item_type
             -
               columnname: callnumber
             -
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 fe357210dc..3d481b1b46 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -1481,7 +1481,7 @@ Note that permanent location is a code, and location may be an authval.
                     ],
                     "order": [[ 1, "asc" ]],
                     "columnDefs": [ {
-                        "targets": [0,1,2,3,4,5],
+                        "targets": [0,1,2,3],
                         "render": function (data, type, row, meta) {
                             if ( data && type == 'display' ) {
                                 return data.escapeHtml();
@@ -1505,18 +1505,6 @@ Note that permanent location is a code, and location may be an authval.
                             "searchable": true,
                             "orderable": true,
                         },
-                        {
-                            "data": "collection_code",
-                            "title": _("Collection"),
-                            "searchable": true,
-                            "orderable": true,
-                        },
-                        {
-                            "data": "item_type",
-                            "title": _("Item type"),
-                            "searchable": false,
-                            "orderable": true,
-                        },
                         {
                             "data": "callnumber",
                             "title": _("Callnumber"),
-- 
2.20.1