bug 7894 [SIGNED-OFF]: crude fix: convert results array into an arrayref
Signed-off-by: Magnus Enger <magnus@enger.priv.no> This patch fixes the problem with the first record on the second page, but there is still a problem with the next/previous links, as described in comments 3 and 4 in the bug report. I'm signing off since it's unclear wether that problem is directly linked to the "first record on the second page" problem, and a partial fix seems better than no fix at all. Signed-off-by: Magnus Enger <magnus@enger.priv.no> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
08cee791a7
commit
d13f5780df
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ if ($session->param('busc')) {
|
|||
for (my $i=0;$i<@servers;$i++) {
|
||||
my $server = $servers[$i];
|
||||
$hits = $results_hashref->{$server}->{"hits"};
|
||||
@newresults = searchResults('opac', '', $hits, $results_per_page, $offset, $arrParamsBusc->{'scan'}, @{$results_hashref->{$server}->{"RECORDS"}},, C4::Context->preference('hidelostitems'));
|
||||
my @records = $results_hashref->{$server}->{"RECORDS"};
|
||||
@newresults = searchResults('opac', '', $hits, $results_per_page, $offset, $arrParamsBusc->{'scan'}, \@records,, C4::Context->preference('hidelostitems'));
|
||||
}
|
||||
return \@newresults;
|
||||
}#searchAgain
|
||||
|
|
Loading…
Reference in a new issue