[Bio] / WebApplication / WebComponent / DataFinder.pm Repository:
ViewVC logotype

Diff of /WebApplication/WebComponent/DataFinder.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2, Fri Oct 29 12:26:56 2010 UTC revision 1.3, Tue Nov 9 15:12:35 2010 UTC
# Line 16  Line 16 
16    $self->{max_elements} = 10;    $self->{max_elements} = 10;
17    $self->{tag_order} = [];    $self->{tag_order} = [];
18    $self->{tag_expansion} = {};    $self->{tag_expansion} = {};
19    $self->{width} = 275;    $self->{width} = 672;
20      $self->{height} = 125;
21    $self->{taget_function} = '';    $self->{taget_function} = '';
22      $self->{visible} = 1;
23    
24    return $self;    return $self;
25  }  }
# Line 45  Line 47 
47      }      }
48    }    }
49    
50      my $visible = " display: none;";
51      if ($self->visible) {
52        $visible = "";
53      }
54    $content .= "<input type='hidden' id='data_finder_target_function' value='" . $self->target_function ."'>";    $content .= "<input type='hidden' id='data_finder_target_function' value='" . $self->target_function ."'>";
55    $content .= "<input type='hidden' id='data_finder_tag_expansion' value='" . join("||", @$tag_expansion). "'>";    $content .= "<input type='hidden' id='data_finder_tag_expansion' value='" . join("||", @$tag_expansion). "'>";
56    $content .= "<input type='hidden' id='data_finder_tag_order' value='".join("||", @{$self->tag_order})."'>";    $content .= "<input type='hidden' id='data_finder_tag_order' value='".join("||", @{$self->tag_order})."'>";
57    $content .= "<input type='hidden' id='data_finder_data' value='$dstring'>";    $content .= "<input type='hidden' id='data_finder_data' value='$dstring'>";
58      $content .= "<input type='hidden' id='data_finder_visible' value='".$self->visible."'>";
59    $content .= "<input type='hidden' id='data_finder_max_elements' value='".$self->max_elements."'>";    $content .= "<input type='hidden' id='data_finder_max_elements' value='".$self->max_elements."'>";
60    $content .= "<div id='data_finder_main' class='data_finder_main' style='width: ".$self->width."px;'></div>";    $content .= "<div id='data_finder_main' class='data_finder_main' style='margin-top: 15px; height: ".$self->height."; width: ".$self->width."px;$visible'></div>";
61    my $crumbs = "";    my $crumbs = "";
62    $content .= qq~<img src='$FIG_Config::cgi_url/Html/clear.gif' onload='initialize_data_finder();'>~;    $content .= qq~<img src='$FIG_Config::cgi_url/Html/clear.gif' onload='initialize_data_finder();'>~;
63    
# Line 115  Line 122 
122    return $self->{width};    return $self->{width};
123  }  }
124    
125    sub height {
126      my ($self, $height) = @_;
127    
128      if (defined($height)) {
129        $self->{height} = $height;
130      }
131    
132      return $self->{height};
133    }
134    
135  sub target_function {  sub target_function {
136    my ($self, $function) = @_;    my ($self, $function) = @_;
137    
# Line 124  Line 141 
141    
142    return $self->{target_function};    return $self->{target_function};
143  }  }
144    
145    sub visible {
146      my ($self, $visible) = @_;
147    
148      if (defined($visible)) {
149        $self->{visible} = $visible;
150      }
151    
152      return $self->{visible};
153    }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3