Library Journal "Digital Libraries" Columns 1997-2007, Roy Tennant
Please note: these columns are an archive of my Library Journal column from 1997-2007. They have not been altered in content, so please keep in mind some of this content will be out of date.
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'}; &print_preface; @temp = `xsltproc column.xslt $recordpath`; foreach(@temp) { print; } &print_footer; exit; } sub print_data_summary { $line = `grep "files indexed" report`; ($something, $nothing) = split(/\s/, $line); print <