From 9526d1718173bd61c664bffaa0a8375ce74c734d 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 --- 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 6c5624bee9..d7ed696779 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -2701,6 +2701,8 @@ modules: cannot_be_modified: 1 - 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 ba68b0eb97..8114b594c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -312,6 +312,7 @@ Barcode Call number Library + Location Collection Title Not for loan @@ -335,8 +336,9 @@ [% result.itemcallnumber | html %] + [% Branches.GetName( result.homebranch ) | html %] + - [% Branches.GetName( result.homebranch ) | html %] [% result.location | html %] -- 2.39.5