From 9e7d6abee17d2b5126721d60d6990b823b72ed76 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Fri, 16 Nov 2007 18:49:20 -0600 Subject: [PATCH] NoZebra : fix on the last page in case there is more than 1 page Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 9d345d4a22..c82a1483d0 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1559,7 +1559,7 @@ sub NZorder { # for the requested page, replace biblionumber by the complete record # speed improvement : avoid reading too much things for (my $counter=$offset;$counter<=$offset+$results_per_page;$counter++) { - $result_hash->{'RECORDS'}[$counter] = GetMarcBiblio($result_hash->{'RECORDS'}[$counter])->as_usmarc; + $result_hash->{'RECORDS'}[$counter] = GetMarcBiblio($result_hash->{'RECORDS'}[$counter])->as_usmarc if $result_hash->{'RECORDS'}[$counter]; } my $finalresult=(); $result_hash->{'hits'} = $numbers; -- 2.39.5