From 4c1218af6445c384483f543c3291e0dc508665b6 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 Signed-off-by: Jonathan Druart --- 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 88d20d3c3f..bd59f6c357 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -605,6 +605,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 ca00fa150a..5b5fb96c98 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -849,6 +849,9 @@ [% ELSE %] Not checked out [% END %] + [% IF ( riloo.damaged ) %] + [% AuthorisedValues.GetByCode( 'DAMAGED', riloo.damaged ) | html %] + [% END %] -- 2.39.5