From 139635bf3bc370e958072ac99932ccd802bb0ac9 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 3 Jan 2008 12:36:31 -0600 Subject: [PATCH] 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 Signed-off-by: Joshua Ferraro --- labels/label-item-search.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/labels/label-item-search.pl b/labels/label-item-search.pl index 6f11e69255..4abc480dbc 100755 --- a/labels/label-item-search.pl +++ b/labels/label-item-search.pl @@ -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}; } -- 2.39.5