From 0f4838253853b5d4b9df0d823b3a0a2c5734e371 Mon Sep 17 00:00:00 2001 From: Adrien Saurat Date: Thu, 19 Jul 2012 15:39:41 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 8477: Displays home/holding branches on return page Content-Type: text/plain; charset="utf-8" Signed-off-by: Mirko Tietgen <5p4m@gmx.de> --- circ/returns.pl | 3 +++ .../intranet-tmpl/prog/en/modules/circ/returns.tt | 4 +++- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index b9127da..c72a132 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -579,6 +579,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'}; @@ -590,6 +591,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 1ed01f0..725df77 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 %] + + -- 1.7.2.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 %]