if ( $total_hits < $from + $resultsperpage ) {
$to = $total_hits;
}else{
$to = $startfrom * $resultsperpage + $resultsperpage ;
$to = $from * $resultsperpage ;
}
my $defaultview =
'BiblioDefaultView' . C4::Context->preference('BiblioDefaultView');
-