From dcf93633b386053073d897da28925c9750345e08 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 27 Apr 2021 14:10:27 +0100 Subject: [PATCH] Bug 25883: Replace 'holdingbranch' with 'transfer to' in returns This patch replaces the "Holding library" column in the returns table with a 'Transfer to' column that displays the destination for the item awaiting transfer if a transfer exists. Signed-off-by: Ben Daeuber Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- circ/returns.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index 045a30ee31..8ab9986d91 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -618,7 +618,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $ri{itemnumber} = $item->itemnumber; $ri{barcode} = $bar_code; $ri{homebranch} = $item->homebranch; - $ri{holdingbranch} = $item->holdingbranch; + $ri{transferbranch} = $item->get_transfer ? $item->get_transfer->tobranch : ''; $ri{damaged} = $item->damaged; $ri{location} = $item->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 27e5c305da..67a1a22109 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -869,7 +869,7 @@ Author Barcode Home library - Holding library + Transfer to Shelving location Call number Date acquired @@ -916,8 +916,8 @@ [% Branches.GetName( riloo.homebranch ) | html %] - - [% Branches.GetName( riloo.holdingbranch ) | html %] + + [% Branches.GetName( riloo.transferbranch ) | html %] [% riloo.location | html %] -- 2.39.5