cataloging search results from catalog don't show on later pages
In the cataloging search results from the catalog, the result set would decrease by one per page. Past page 19 there was an empty table. The reason is that SimpleSearch gives the result set ( 20 records here ), and searchResults expects to trim the result set to just the 20 records we want. This changes the call to searchResults() to have a 0 offset to the result set. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
ac0ac59a5a
commit
81b1c692df
|
|
@ -79,8 +79,9 @@ if ($query) {
|
|||
}
|
||||
|
||||
# format output
|
||||
# SimpleSearch() give the results per page we want, so 0 offet here
|
||||
my $total = scalar @$marcresults;
|
||||
my @newresults = searchResults( $query, $total, $results_per_page, $page-1, 0, @$marcresults );
|
||||
my @newresults = searchResults( $query, $total, $results_per_page, 0, 0, @$marcresults );
|
||||
$template->param(
|
||||
total => $total_hits,
|
||||
query => $query,
|
||||
|
|
|
|||
Loading…
Reference in New Issue