From bcbc4ca3931a883077d09f09429db6c34d82c379 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 14 Mar 2008 16:39:45 -0500 Subject: [PATCH] another patch to display correct item type Signed-off-by: Joshua Ferraro --- circ/returns.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/circ/returns.pl b/circ/returns.pl index bb8ab0be03..262b009c75 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -121,6 +121,8 @@ if ( $query->param('resbarcode') ) { my $diffBranchReturned = $query->param('diffBranch'); # set to waiting.... my $iteminfo = GetBiblioFromItemNumber($item); + # fix up item type for display + $iteminfo->{'itemtype'} = C4::Context->preference('item-level_itypes') ? $iteminfo->{'itype'} : $iteminfo->{'itemtype'}; my $diffBranchSend; # addin in ModReserveAffect the possibility to check if the document is expected in this library or not, @@ -186,6 +188,9 @@ if ($barcode) { AddReturn( $barcode, C4::Context->userenv->{'branch'}, $exemptfine ); # get biblio description my $biblio = GetBiblioFromItemNumber($issueinformation->{'itemnumber'}); + # fix up item type for display + $biblio->{'itemtype'} = C4::Context->preference('item-level_itypes') ? $biblio->{'itype'} : $biblio->{'itemtype'}; + $template->param( title => $biblio->{'title'}, homebranch => $biblio->{'homebranch'}, @@ -544,6 +549,8 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { # my %ri; my $biblio = GetBiblioFromItemNumber(GetItemnumberFromBarcode($barcode)); + # fix up item type for display + $biblio->{'itemtype'} = C4::Context->preference('item-level_itypes') ? $biblio->{'itype'} : $biblio->{'itemtype'}; $ri{itembiblionumber} = $biblio->{'biblionumber'}; $ri{itemtitle} = $biblio->{'title'}; $ri{itemauthor} = $biblio->{'author'}; -- 2.39.5