5 /publication/index.mas - a page for displaying SGN publication details
15 a hashref with all the parameters needed for printing the publication page!
21 $pubref->{curator} (boolean)
22 $pubref->{submitter} (boolean)
23 $pubref->{is_owner} (boolean)
30 Naama Menda <nm249@cornell.edu>
45 my $pub = $pubref->{pub};
46 my $pub_id = $pubref->{pub_id};
47 my $action = $pubref->{action} || 'view';
48 my $person_id = $pubref->{person_id};
49 my $curator = $pubref->{curator};
50 my $submitter = $pubref->{submitter};
51 my $sequencer = $pubref->{sequencer};
52 my $doi = $pubref->{doi};
54 my $dbh = $pubref->{dbh};
55 my @xrefs = $pub->get_dbxrefs;
57 foreach my $d(@xrefs) {
58 my $db = $d->get_db_name();
59 if ($db ne 'SGN_ref') {
60 my $url = $d->get_urlprefix() . $d->get_url() . $d->get_accession();
61 $dbxrefs_html .= qq| <a href= "$url" >| . "$db:" . $d->get_accession() . "</a>";
65 my @loci = $pub->get_loci;
67 foreach my $locus(@loci) {
68 my $locus_id = $locus->get_locus_id();
69 my $locus_symbol= $locus->get_locus_symbol();
70 my $cname=$locus->get_common_name();
71 $loci_link .= qq|<a href="/locus/$locus_id/view">$cname '$locus_symbol'</a><br />| if $locus->get_obsolete() eq 'f';
74 my $this_page = "/publication/$pub_id/view/";
75 if ($doi) { $this_page = "/doi/pub/$doi/"; }
76 my $pub_title = $pub->get_title;
82 <& /util/import_javascript.mas, classes => ["jquery","jqueryui", "CXGN.Phenome.Tools" ] &>
85 <& /page/page_title.mas, title=> $pub_title || 'New publication' &>
88 <&| /page/info_section.mas, title=>"Publication details" &>
92 object_type => 'publication',
93 object_id => "$pub_id",
94 form_name => 'pub_form',
95 server_side_script => '/jsforms/pub_ajax_form.pl',
96 form_div_name => 'pub_details',
97 js_object_name => 'pubForm',
98 page_url => "$this_page",
99 alternate_new_button => '<a href ="/publication/0/new">[New]</a>'
108 <&| /page/info_section.mas, title=>"External resources",
109 collapsible=>1, collapsed=>1
115 <&| /page/info_section.mas, title=>"Associated loci (" . scalar(@loci) . ")", collapsible=>1, collapsed=>1 &>
123 <& /page/comments.mas, object_type=>'publication', object_id=>$pub_id, referer=>$this_page &>