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 <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2025-10-28 17:30:10 +00:00 committed by Lucas Gass
parent b53496e069
commit 713cae3a49
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 5 additions and 1 deletions

View File

@ -2830,6 +2830,8 @@ modules:
columnname: enumchron
-
columnname: library
-
columnname: location
-
columnname: collection
-

View File

@ -313,6 +313,7 @@
<th id="call_number" data-colname="call_number">Call number</th>
<th id="enumchron" data-colname="enumchron">Serial enumeration / chronology</th>
<th id="library" data-colname="library">Library</th>
<th id="location" data-colname="location">Location</th>
<th id="collection" data-colname="collection">Collection</th>
<th id="title" data-colname="title" class="anti-the">Title</th>
<th id="notforloan" data-colname="notforloan">Not for loan</th>
@ -340,8 +341,9 @@
<span class="enumchron">[% result.enumchron | html %]</span>
</td>
<td> [% Branches.GetName( result.homebranch ) | html %] </td>
<td>
[% Branches.GetName( result.homebranch ) | html %]
<span class="shelvingloc">[% result.location | html %]</span>
</td>