3 SGN::Feature::FeaturePages - site feature for genomic feature pages
4 (SGN::Controller::Feature, SGN::View::Feature, mason/features)
8 Subclass of L<SGN::Feature>, just does all the things expected of a
13 package SGN
::Feature
::FeaturePages
;
18 extends
'SGN::Feature';
20 has
'+description' => (
21 default => 'Genomic details',
25 my ( $self, $query ) = @_;
30 my $feats = $self->context->dbic_schema('Bio::Chado::Schema','sgn_chado')
31 ->resultset('Sequence::Feature')
32 ->search({},{ prefetch
=> 'type' });
35 map { $self->_make_xref( $_ ) }
37 -or => [ { 'lower(me.uniquename)' => $query },
38 { 'lower(me.name)' => $query },
42 { 'lower(synonym.name)' => $query },
43 { join => { feature_synonyms
=> 'synonym' } },
51 my ( $self, $feature ) = @_;
53 return SGN
::SiteFeatures
::CrossReference
->new({
56 text
=> $feature->name.' '.$feature->type->name.' feature details',
58 url
=> URI
->new('/feature/'.$feature->feature_id.'/details'),
63 __PACKAGE__
->meta->make_immutable;