Lines 544-550
for (my $i=0;$i<@servers;$i++) {
Link Here
|
544 |
my $server = $servers[$i]; |
544 |
my $server = $servers[$i]; |
545 |
if ($server =~/biblioserver/) { # this is the local bibliographic server |
545 |
if ($server =~/biblioserver/) { # this is the local bibliographic server |
546 |
$hits = $results_hashref->{$server}->{"hits"}; |
546 |
$hits = $results_hashref->{$server}->{"hits"}; |
547 |
$results_per_page = $hits if $results_per_page == 'all'; |
|
|
548 |
my $page = $cgi->param('page') || 0; |
547 |
my $page = $cgi->param('page') || 0; |
549 |
my @newresults = searchResults('intranet', $query_desc, $hits, $results_per_page, $offset, $scan, |
548 |
my @newresults = searchResults('intranet', $query_desc, $hits, $results_per_page, $offset, $scan, |
550 |
$results_hashref->{$server}->{"RECORDS"}); |
549 |
$results_hashref->{$server}->{"RECORDS"}); |
Lines 608-614
for (my $i=0;$i<@servers;$i++) {
Link Here
|
608 |
if ($query_desc || $limit_desc) { |
607 |
if ($query_desc || $limit_desc) { |
609 |
$template->param(searchdesc => 1); |
608 |
$template->param(searchdesc => 1); |
610 |
} |
609 |
} |
611 |
$template->param(results_per_page => $results_per_page == $hits ? 'all' : $results_per_page); |
610 |
$template->param(results_per_page => $results_per_page); |
612 |
# must define a value for size if not present in DB |
611 |
# must define a value for size if not present in DB |
613 |
# in order to avoid problems generated by the default size value in TT |
612 |
# in order to avoid problems generated by the default size value in TT |
614 |
foreach my $line (@newresults) { |
613 |
foreach my $line (@newresults) { |