AcePerl
view release on metacpan or search on metacpan
README.ACEBROWSER view on Meta::CPAN
);
As described in EXTENDING ACEBROWSER, the %DISPLAYS hash declares a
set of pages, or "displays", to be used for displaying certain Ace
object types.
%CLASSES = (
Default => [ qw/tree pic/ ],
);
As described in EXTENDING ACEBROWSER, the %CLASSES hash describes how
Acedb classes correspond to displays.
sub URL_MAPPER {
my ($display,$name,$class) = @_;
...
}
As described in EXTENDING ACEBROWSER, the URL_MAPPER subroutine allows
you to tinker with the way in which Acedb classes are turned into
links.
$BANNER = <<END;
<center><span class=banner><font size=+3>Default Database</font></span></center><p>
END
The $BANNER variable contains HTML text that will be displayed at the
top of each generated page. You will probably want to change this.
$FOOTER = '';
The $FOOTER variable contains HTML text that is displayed at the
bottom of each generated page. You will probably want to change this.
$PRINT_PRIVACY_STATEMENT = 1;
If this variable is set to true, then AceBrowser will generate a link
in the footer that displays a privacy statement explaining
AceBrowser's use of cookies.
@FEEDBACK_RECIPIENTS = (
[ " $ENV{SERVER_ADMIN}", 'general complaints and suggestions', 1 ]
);
This array contains a list of recipient e-mail addresses for the
"feedback" page. Each recipient is an array reference containing
least two elements, the e-mail address and a comment. A third,
optional, element, if true, indicates that this recipient should be
selected by default. The default is the webmaster's e-mail address.
Comment out the entire section of you do not want the feedback link to
appear.
# configuration for the "basic" search script
@BASIC_OBJECTS =
('Any' => '<i>Anything</i>',
'Locus' => 'Confirmed Gene',
'Predicted_gene' => 'Predicted Gene',
'Sequence' => 'Sequence (any)',
'Genome_sequence', => 'Sequence (genomic)',
'Author' => 'Author',
'Genetic_map' => 'Genetic Map',
'Sequence_map' => 'Sequence Map',
'Strain' => 'Worm Strain',
'Clone' => 'Clone'
);
The @BASIC_OBJECTS array is used by the "basic" search script. It
indicates the Acedb classes to offer to the user to search on, and the
labels to use for each class. For example, the default configuration
will present the user with a radio button labeled "Confirmed Gene" for
use in searching the Acedb class "Locus".
USING ACEBROWSER WITH MOD-PERL
Acebrowser is designed to work well with modperl
(http://perl.apache.org). In fact, using it with a modperl-enabled
Apache server will increase its performance dramatically.
To use Acebrowser with modperl, install the CGI scripts into a
directory that is under the control of Apache::Registry. The
<Location> section in httpd.conf should look like this:
Alias /acedb/ /usr/local/apache/cgi-bin/ace/
<Location /acedb>
SetHandler Perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI +Indexes
</Location>
Change the paths as appropriate. The Acebrowser scripts located in
/usr/local/apache/cgi-bin/ace can now be accessed under modperl at the
URL /acedb, as in:
http://your.site/acedb/searches/text
When running under modperl, you can force all the CGI scripts in a
directory to use a particular configuration file by defining the
AceBrowserConf configuration variable . For example, to create a
virtual directory named /movies and force all the scripts within it to
use the moviedb configuration file:
Alias /movies/ /usr/local/apache/cgi-bin/ace/
<Location /movies>
SetHandler Perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI +Indexes
PerlSetVar AceBrowserConf /usr/local/apache/conf/acebrowser/moviedb.pm
</Location>
Be sure also to edit moviedb.pm $ROOT variable to indicate the correct
location of scripts in URL space:
$ROOT = '/movies';
EXTENDING ACEBROWSER
Acedb is fundamentally object based. In addition to having a name,
( run in 0.566 second using v1.01-cache-2.11-cpan-140bd7fdf52 )