From 4a27a63a2521e4af9ecc92b3c0189afc63b20b74 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Thu, 5 Feb 2009 14:04:46 +0100 Subject: [PATCH] (bug #1758) change the position of GetCOinSBiblio() 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 --- opac/opac-search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index fd3d782b7a..fa26b57cb0 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -432,6 +432,7 @@ for (my $i=0;$i<=@servers;$i++) { } } foreach (@newresults) { + $_->{'coins'} = GetCOinSBiblio($_->{'biblionumber'}); my $clean = $_->{isbn} or next; unless ( $clean =~ /\b(\d{13})\b/ or @@ -441,7 +442,6 @@ for (my $i=0;$i<=@servers;$i++) { next; } $_ ->{'clean_isbn'} = $1; - $_->{'coins'} = GetCOinSBiblio($_->{'biblionumber'}); } $total = $total + $results_hashref->{$server}->{"hits"}; ## If there's just one result, redirect to the detail page -- 2.39.5