5 /genefamily/manual/index.mas - a component for displaying manually curated gene families
16 hashref with all the parameters needed for printing the curated gene family page
19 uri for adding a locus to the gene family
25 Naama Menda <nm249@cornell.edu>
35 $locus_add_uri => '/ajax/locus/associate_locus'
36 $members_div => 'locusgroup_members'
42 my $genefamily = $hashref->{genefamily};
43 my $locusgroup_id = $genefamily->get_locusgroup_id;
44 my $this_page = "/genefamily/manual/$locusgroup_id/view/";
46 my $curator = $hashref->{curator};
47 my $submitter = $hashref->{submitter};
48 my $sequencer = $hashref->{sequencer};
51 my $add_locus_link = $curator || $submitter || $sequencer ?
52 '<a href="javascript:Tools.toggleContent(\'associateLocusForm\', \'locus_network\');Tools.getOrganisms()">[Associate new locus]</a> ' :
53 '<span class="ghosted">[Associate new locus]</span>' ;
60 <& /util/import_javascript.mas, classes => ["CXGN.Page.FormattingHelpers", "CXGN.Phenome.Locus", "CXGN.Phenome.Tools", "CXGN.Sunshine.NetworkBrowser"] &>
63 <script language="javascript">
67 <& /page/page_title.mas, title=> "Gene family ". $genefamily->get_locusgroup_name &>
69 <&| /page/info_section.mas, title=>"Gene family details" &>
73 object_type => 'locusgroup',
74 object_id => "$locusgroup_id",
75 form_name => 'genefamily_form',
76 server_side_script => '/jsforms/locusgroup_ajax_form.pl',
77 form_div_name => 'genefamily_details',
78 js_object_name => 'locusgroupForm',
79 page_url => "/genefamily/$locusgroup_id/view/",
80 alternate_new_button => ''
85 <&| /page/info_section.mas,
86 title => "Gene family members",
87 subtitle => "$add_locus_link",
88 id => "locus_network",
93 <& /genefamily/manual/add_locus.mas, locusgroup_id=>$locusgroup_id &>
94 <& /genefamily/manual/members.mas , locusgroup_id => $locusgroup_id, members_div => $members_div &>
98 <& /page/comments.mas, object_type=>'locusgroup', object_id=>$locusgroup_id, referer=>$this_page &>