[ Prototype Server Home | ONIX Records for Libraries Home ]
ONIX Records for Libraries: Search
END } sub print_results { $segments = $numhits/$maxnum; print "Your search for $FORM{'query'} found $numhits items. You may also search again.
\n- \n";
$starthits = 1;
$hitscount = 1;
if ($numhits > $maxnum) {
while ($hitscount <= $segments) {
print "[ $starthits - $next ] - \n";
++$hitscount;
$starthits = $next;
$next = $next + $maxnum;
}
print "[ $starthits - $numhits ]\n
\n"; } foreach $hit (@results) { print $hit; } } sub print_footer { print <
$error_message
\n"; &print_form; &print_footer; exit; } sub fetch_record { $recordpath = $basepath.$FORM{'fetch'}; open (INFILE, $recordpath); &print_preface; while ("; } &print_footer; exit; } sub print_data_summary { $line = `grep "files indexed" report`; ($something, $nothing) = split(/\s/, $line); print <