The last position getting the COinS of a record wasn't possible in all cases.
This patch just get the COinS earlier in the loop.
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
}
}
foreach (@newresults) {
+ $_->{'coins'} = GetCOinSBiblio($_->{'biblionumber'});
my $clean = $_->{isbn} or next;
unless (
$clean =~ /\b(\d{13})\b/ or
next;
}
$_ ->{'clean_isbn'} = $1;
- $_->{'coins'} = GetCOinSBiblio($_->{'biblionumber'});
}
$total = $total + $results_hashref->{$server}->{"hits"};
## If there's just one result, redirect to the detail page