#!/DOCUMENT_ROOT/OCEAN_PLANET/SUPPORT_PROGRAMS/perl # Get the document root from the path to perl. ($dr) = $^X =~ m@^(.*)/OCEAN_PLANET/@; require "$dr/OCEAN_PLANET/SUPPORT_PROGRAMS/cgi-lib.pl"; print <<"--"; Content-type: text/html
\n"; # Split captions file on this pattern
@captions = \n$// && 0, @captions); # Remove "\n \n" from all captions
close CAPTIONS;
$prefix = "/OCEAN_PLANET/IMAGES/";
print " \n";
s/$id//;
foreach $keyword (split(' ', $keywords)){
if($case) { s@($keyword)@$1@gi; }
else { s@($keyword)@$1@g; }
}
while($markup = shift(@markups)){ # Restore the markup tags
s/$;/$markup/; # before printing out the caption.
}
print;
print " \n";
}
}
}
if($img_id eq ''){
print "";
print "You have deselected all of the image classes. ";
print "You must leave at least one of them selected.";
print "
";
if($andor eq "&&") {
print "
\n";
}
else {
print "
\n";
}
if($case eq "i") {print "
\n";}
else {print "
\n";}
print <<"--";
--
while($_ = shift(@captions)){
@markups = /<[^>]*>/g; # Save any hypertext markup tags.
s/<[^>]*>/$;/g; # Hide the markup tags.
if(eval($pattern)){
if(eval($img_id)){
$found_one = 1;
$gif = $prefix . $id . ".gif";
$thumbnail = $prefix . $id . ".thumbnail.gif";
print " $id\n
";
}
elsif(!defined($found_one)){
print "Nothing found
";
}
print <<"--";
Ocean Planet Exhibition Floorplan
Gene Carl Feldman (gene@seawifs.gsfc.nasa.gov) &
Judith Gradwohl (Curator/Ocean Planet)
--