From b5841f9a4330418173ef9562777aec0e74a89359 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 28 Oct 2025 17:30:10 +0000 Subject: [PATCH] Bug 41126: Move shelving location into a separate column in inventory This patch updates the inventory template so that items' shelving location is showin in its own column in the table of results. This makes it consisten with other displays like the bibliographic detail holdings table and the holds queue report. To test, apply the patch and restart services. - If necessary, modify a few items to add a shelving location. - Go to Cataloging -> Inventory - To narrow down the results, I used the item call number fields under "Item location filters." - Submit the form. - In the list of results, confirm that there is a separate column for shelving location and that the correct information is displayed. - Confirm that the column visibility menu works to show and hide the column. - Go to Administration -> Table settings -> Tools (sic) -> Inventory - Confirm that there is a checkbox for the shelving location column and that your changes to the column's configuration are reflected in the inventory results. - Because of DataTables state saving feature you might have to clear your browser's local storage in order to see the new column configuration. Sponsored-by: Athens County Public Libraries Signed-off-by: Laura_Escamilla Signed-off-by: Katrin Fischer --- admin/columns_settings.yml | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 75f73437fee..be7b676d2f3 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -2804,6 +2804,8 @@ modules: columnname: enumchron - columnname: library + - + columnname: location - columnname: collection - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt index f65cf10fe71..9b44325f91f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -313,6 +313,7 @@ Call number Serial enumeration / chronology Library + Location Collection Title Not for loan @@ -340,8 +341,9 @@ [% result.enumchron | html %] + [% Branches.GetName( result.homebranch ) | html %] + - [% Branches.GetName( result.homebranch ) | html %] [% result.location | html %] -- 2.39.5