ok here is the code hack, first in links.html put this
<%num_list%> >
before the font and the url is called.
Then in site_html_templates.pl in the sub site_html_search_results
add
num_list => $num_list,
to the list of template codes. Then in search.cgi
find these codes
Code:
# Go through each category of links returned, and build the HTML. Store in hash %link_output.
SETOFLINKS: foreach $setoflinks (sort keys %link_results) {
my $hits = ($#{$link_results{$setoflinks}} + 1) / ($#db_cols+1);
LINK: for ($i = 0; $i < $hits; $i++) {
$link_hits++;
if (($link_hits <= $highrange) && ($link_hits >= $lowrange)) {
%tmp = &array_to_hash ($i, @{$link_results{$setoflinks}});
$link_output{$setoflinks} .= &site_html_link (%tmp) . "\n";
}
}
}
and replace it with
Code:
if ($nh) {$addme = $maxhits * $nh;
}
$base = $addme;
$num_list = $base - $maxhits;
# Go through each category of links returned, and build the HTML. Store in hash %link_output.
SETOFLINKS: foreach $setoflinks (sort keys %link_results) {
my $hits = ($#{$link_results{$setoflinks}} + 1) / ($#db_cols+1);
LINK: for ($i = 0; $i < $hits; $i++) {
$link_hits++;
$tmp{'num_list'} = $num_list + 1;
if (($link_hits <= $highrange) && ($link_hits >= $lowrange)) {
%tmp = &array_to_hash ($i, @{$link_results{$setoflinks}});
$num_list= $num_list+1;
$tmp{'num_list'}= $num_list;
$link_output{$setoflinks} .= &site_html_link (%tmp) . "\n";
}
}
}
reply if any errors or any comments you have.