labels item search: build item list correctly

Do not merge in a field mapped from the MARC biblio
if it already has been brought in from the item.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2008-01-03 12:36:31 -06:00 committed by Joshua Ferraro
parent 97e705079b
commit 139635bf3b
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ use C4::Search;
use C4::Auth;
use C4::Output;
use C4::Biblio;
use C4::Items;
use C4::Acquisition;
use C4::Search;
use C4::Dates qw( DHTMLcalendar );
@ -104,7 +105,7 @@ if ( $op eq "do_search" ) {
for my $bibdata (keys %{$results[$i]}) {
#warn Dumper($bibdata);
#warn Dumper($results[$i]->{$bibdata});
$item_results->{$item}{$bibdata} = $results[$i]->{$bibdata};
$item_results->{$item}{$bibdata} = $results[$i]->{$bibdata} unless exists $item_results->{$item}{$bibdata};
}
push @results2, $item_results->{$item};
}