From 43d908610e0c61271a1bbba8e58bb8866175f2da 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 dddc869ba9..87e31917e8 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -611,6 +611,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 882407dbaf..beb2d9da81 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.20.1