40 |
my ($class, $shelp) = @_; |
my ($class, $shelp) = @_; |
41 |
# Create and bless the helper object. |
# Create and bless the helper object. |
42 |
my $retVal = ResultHelper::new($class, $shelp); |
my $retVal = ResultHelper::new($class, $shelp); |
43 |
# Return it. |
# Bless and return it. |
44 |
|
bless $retVal, $class; |
45 |
return $retVal; |
return $retVal; |
46 |
} |
} |
47 |
|
|
117 |
# Extract the ID and name. |
# Extract the ID and name. |
118 |
my ($id, $name) = $record->Values(['Ligand(id)', 'Ligand(name)']); |
my ($id, $name) = $record->Values(['Ligand(id)', 'Ligand(name)']); |
119 |
# Get the CGI object. |
# Get the CGI object. |
120 |
my $cgi = $rhelp->Q(); |
my $cgi = $rhelp->Parent()->Q(); |
121 |
# Create a tooltip for the ligand name. |
# Create a tooltip for the ligand name. |
122 |
$retVal = $cgi->a({ href => "http://blaster.docking.org/zinc/srchdbk.pl?zinc=$id;go=Query", |
$retVal = $cgi->a({ href => "http://blaster.docking.org/zinc/srchdbk.pl?zinc=$id;go=Query", |
123 |
title => $name }, $id); |
title => $name }, $id); |