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};
53 my $stocks = $pubref->{stocks};
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><br />";
65 my @loci = $pub->get_loci;
68 foreach my $locus(@loci) {
69 my $locus_id = $locus->get_locus_id();
70 my $locus_symbol= $locus->get_locus_symbol();
71 my $cname=$locus->get_common_name();
72 my $obsolete = $locus->get_obsolete;
73 if ($obsolete ne 't') {
74 $loci_link .= qq|<a href="/locus/$locus_id/view">$cname '$locus_symbol'</a><br />| ;
82 foreach my $stock(@$stocks) {
83 my $stock_id = $stock->stock_id();
84 my $stock_name= $stock->uniquename();
85 my $obsolete = $stock->is_obsolete;
87 $stocks_link .= qq|<a href="/stock/$stock_id/view">$stock_name</a><br /> |;
92 my $this_page = "/publication/$pub_id/view/";
93 if ($doi) { $this_page = "/doi/pub/$doi/"; }
94 my $pub_title = $pub->get_title;
100 <& /util/import_javascript.mas, classes => ["jquery","jqueryui", "CXGN.Phenome.Tools" ] &>
103 <& /page/page_title.mas, title=> $pub_title || 'New publication' &>
106 <&| /page/info_section.mas, title=>"Publication details" &>
110 object_type => 'publication',
111 object_id => "$pub_id",
112 form_name => 'pub_form',
113 server_side_script => '/jsforms/pub_ajax_form.pl',
114 form_div_name => 'pub_details',
115 js_object_name => 'pubForm',
116 page_url => "$this_page",
117 alternate_new_button => '<a class="btn btn-sm btn-default" href ="/publication/0/new">New</a>'
126 <&| /page/info_section.mas, title=>"External resources",
127 collapsible=>1, collapsed=>0
133 <&| /page/info_section.mas, title=>"Associated loci (" . $loci_count . ")", collapsible=>1, collapsed=>1 &>
138 <&| /page/info_section.mas, title=>"Associated stocks (" . $stocks_count . ")", collapsible=>1, collapsed=>1 &>
144 <& /page/comments.mas, object_type=>'publication', object_id=>$pub_id, referer=>$this_page &>