From 3ea9f60ed4129c6c4d47708dc886a00010cb29ae 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 --- 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 a7556c7b07..00df6dcc64 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -601,6 +601,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 1e1ca7d2ff..f5752da31f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -809,6 +809,9 @@ [% ELSE %] Not checked out [% END %] + [% IF ( riloo.damaged ) %] + [% AuthorisedValues.GetByCode( 'DAMAGED', riloo.damaged ) | html %] + [% END %] -- 2.11.0