From 9b29e073e9f60c6ea693b00028835774e13363d5 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 24 Sep 2020 21:29:10 +0000 Subject: [PATCH] Bug 18170: Show damaged status in table of checkins This copies the display of the damaged status from the holds and checkouts pages in staff. To test: - Apply patch - Check out some items, some damaged, others not - Verify the damaged status is displayed below the due date in the table of checkouts - Check the items in from the checkin page - Verify the damaged status displays in the table of checkins Signed-off-by: Lisette Scheer Signed-off-by: Martin Renvoize --- circ/returns.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/circ/returns.pl b/circ/returns.pl index d3bd81d7bc..12f4cac470 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -602,6 +602,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $ri{barcode} = $bar_code; $ri{homebranch} = $item->homebranch; $ri{holdingbranch} = $item->holdingbranch; + $ri{damaged} = $item->damaged; $ri{location} = $item->location; my $shelfcode = $ri{'location'}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 31c03fa898..26ac7e6eb9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -846,6 +846,9 @@ [% ELSE %] Not checked out [% END %] + [% IF ( riloo.damaged ) %] + [% AuthorisedValues.GetByCode( 'DAMAGED', riloo.damaged ) | html %] + [% END %] -- 2.11.0