package SGN::View::Mason::Commands;
use strict;
use vars qw($m $c);
HTML::Mason::Component::FileBased->new(
'code' => sub {
use utf8; local $SGN::View::Mason::Commands::m = $HTML::Mason::Commands::m;
HTML::Mason::Exception::Params->throw
    ( error =>
      "Odd number of parameters passed to component expecting name/value pairs"
    ) if @_ % 2;
my ( $marker );
{
    my %pos;
    for ( my $x = 0; $x < @_; $x += 2 )
    {
        $pos{ $_[$x] } = $x + 1;
    }

    foreach my $arg ( qw( marker ) )
    {
        HTML::Mason::Exception::Params->throw
            ( error => "no value sent for required parameter '$arg'" )
                unless exists $pos{$arg};
    }
#line 27 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
    $marker = $_[ $pos{'marker'} ];
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 1 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
$m->print( '
' );
#line 25 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
$m->print( '
' );
#line 29 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
$m->print( '
' );
#line 30 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"


use CXGN::Tools::Text;
use CXGN::Marker::Tools;

my @marker_names = $marker->name_that_marker();
my $dbh = $marker->{dbh};
my $marker_id = $marker->marker_id();

my ($marker_name, @other_names) = @marker_names;

my $collections_string='';
my $collections_description='';
my $collections = $marker->collections();

if($collections and @{$collections}) {
    $collections_string=CXGN::Tools::Text::list_to_string(@{$collections})." ";
    for my $collection(@{$collections}) {
        $collections_description.="$collection markers are ".CXGN::Marker::Tools::collection_name_to_description($dbh,$collection)."<br />";
    }
}

#line 53 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
$m->print( '<div class="center">SGN-M' );
#line 53 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
$m->print(  $marker_id  );
#line 53 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
$m->print( '<br />' );
#line 53 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
$m->print(  $collections_description  );
#line 53 "/home/production/cxgn/sgn/mason/markers/basic_marker_info.mas"
$m->print( '
<br />
</div>
' );
;return;
},
'declared_args' => {
  '$marker' => { default => undef }
},
'load_time' => 1763079527,

)
;