NoZebra : fix on the last page in case there is more than 1 page

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-11-16 18:49:20 -06:00 committed by Joshua Ferraro
parent 8d429b851f
commit 9e7d6abee1

View file

@ -1559,7 +1559,7 @@ sub NZorder {
# for the requested page, replace biblionumber by the complete record # for the requested page, replace biblionumber by the complete record
# speed improvement : avoid reading too much things # speed improvement : avoid reading too much things
for (my $counter=$offset;$counter<=$offset+$results_per_page;$counter++) { 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=(); my $finalresult=();
$result_hash->{'hits'} = $numbers; $result_hash->{'hits'} = $numbers;