From 2fea7f0137d200aaaf36caa48e4d56b8a984bbf9 Mon Sep 17 00:00:00 2001 From: Adrien Saurat Date: Thu, 19 Jul 2012 15:39:41 +0200 Subject: [PATCH] Bug 8477: Displays home/holding branches on return page Signed-off-by: Mirko Tietgen <5p4m@gmx.de> Signed-off-by: Paul Poulain --- circ/returns.pl | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index 1fbdcaf6ad..743bf180ba 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -573,6 +573,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { # my %ri; my $biblio = GetBiblioFromItemNumber(GetItemnumberFromBarcode($bar_code)); + my $item = GetItem( GetItemnumberFromBarcode($bar_code) ); # fix up item type for display $biblio->{'itemtype'} = C4::Context->preference('item-level_itypes') ? $biblio->{'itype'} : $biblio->{'itemtype'}; $ri{itembiblionumber} = $biblio->{'biblionumber'}; @@ -584,6 +585,8 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $ri{ccode} = $biblio->{'ccode'}; $ri{itemnumber} = $biblio->{'itemnumber'}; $ri{barcode} = $bar_code; + $ri{homebranch} = $item->{'homebranch'}; + $ri{holdingbranch} = $item->{'holdingbranch'}; $ri{location} = $biblio->{'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 1ed01f07e3..725df77956 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -429,7 +429,7 @@ $(document).ready(function () { [% IF ( riloop ) %]

Checked-in items

- + [% FOREACH riloo IN riloop %] @@ -445,6 +445,8 @@ $(document).ready(function () { [% riloo.itemtitle |html %] + + -- 2.39.5
Due dateTitle Author BarcodeShelving locationCall numberType PatronNote
Due dateTitle Author BarcodeHome BranchHolding BranchShelving locationCall numberType PatronNote
[% riloo.itemauthor %] [% riloo.barcode %][% riloo.homebranch %][% riloo.holdingbranch %] [% riloo.location %] [% riloo.itemcallnumber %] [% riloo.itemtype %] [% riloo.ccode %]