#!/usr/bin/perl require "cgi-lib.cgi"; require "homer-lib.cgi"; $lda = &ora_login($system_id, $netid, $pwd) || &oracle_error($ora_errstr); print "Content-type: text/html\n\n"; print "
\n$sql
"; $csr = &ora_open($lda,$sql) || &oracle_error($ora_errstr); print '
';
while (($abrv,$work_id,$level1_id,$book,$line,$tradloc) = &ora_fetch($csr))
{
if($prev_loc eq $tradloc) {next;} else {$prev_loc = $tradloc;}
# Check if this is a Hesiod work
if($level1_id == 3)
{
$address = "$abrv.$line";
$loc = $line;
} else
{
$address = "$abrv.$book.$line";
$loc = "$book.$line";
}
## $url = "show_rep_text.cgi?work=$work&loc=$loc&browse_width=$state_array{'browse_width'}&";
$url = "javascript:window.parent.parent.page_browse($work_id,$book,$line)";
## if($address eq $target_loc) { $tradloc = "$tradloc";}
if($count)
{
print "$tradloc "; } else { print "$tradloc "; } $count++; } print ' |