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.
---
 opac/opac-search.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opac/opac-search.pl b/opac/opac-search.pl
index 459d018..f3082dc 100755
--- a/opac/opac-search.pl
+++ b/opac/opac-search.pl
@@ -427,6 +427,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
@@ -436,7 +437,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
-- 
1.5.6.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to