Bug 7326: longoverdue.pl hardcoded to 366 days maximum
[koha.git] / opac / opac-search.pl
index 716b164..42eb0ec 100755 (executable)
@@ -506,7 +506,8 @@ for (my $i=0;$i<@servers;$i++) {
                }
                 if (C4::Context->preference('COinSinOPACResults')) {
                    foreach (@newresults) {
-                     $_->{coins} = GetCOinSBiblio($_->{'biblionumber'});
+                      my $record = GetMarcBiblio($_->{'biblionumber'});
+                     $_->{coins} = GetCOinSBiblio($record);
                    }
                 }