From c160d4e0e8d4b26477610439c93e572b2f1b4f1a 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. --- 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 94e4b5e287..3ed8be6488 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -608,7 +608,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 0fdb3fd6c6..d4eed0133d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -868,7 +868,7 @@ Author Barcode Home library - Holding library + Transfer to Shelving location Call number Date acquired @@ -915,8 +915,8 @@ [% Branches.GetName( riloo.homebranch ) | html %] - - [% Branches.GetName( riloo.holdingbranch ) | html %] + + [% Branches.GetName( riloo.transferbranch ) | html %] [% riloo.location | html %] -- 2.20.1