]> git.koha-community.org Git - koha.git/commit
Bug 37078: Damaged status not showing in detail.pl
authorPhil Ringnalda <phil@chetcolibrary.org>
Sat, 22 Jun 2024 18:58:41 +0000 (11:58 -0700)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 11 Jul 2024 19:30:18 +0000 (19:30 +0000)
commitc4a481a65addfd65b7ba2294ba92b5ef6b99a3e0
tree7310c7a2693de24a427f097bf185e6b48432f05a
parentad968a00d0dd8b7a030db37db55e10459ee340c5
Bug 37078: Damaged status not showing in detail.pl

The API returns the fact that an item is damaged in 'damaged_status' but the
code that builds the holdings table is looking for 'damaged' so it doesn't
find that an item is damaged.

Test plan:
1. Administration - Authorized values - DAMAGED row, click Add
2. Give it the Authorized value 2 and the Description Awful
3. On a record with more than one item, like Empress of the blues,
   edit one item to have Damaged status: Damaged and one to have
   Damaged status: Awful
4. On the bib detail view, note that the status column shows both
   as 'Available'
5. Apply patch, refresh
6. Note that now one shows as Damaged and one as Awful (verifying that
   the value is being read from the AV, not the fallback default which
   is also 'Damaged')

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 65e0ffa882ee1c1079723b21bf84c43c303a08e2)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc