Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / chado / publication.mas
blobfb5341091d4ce0d95080d4b26ece2c92cdb11004
3 <%doc>
5 =head1 NAME
7 /chado/publications.mas - a component for printing publication info
9 =head1 DESCRIPTION
11 Parameters:
13 =over 4
15 =item pub
17 CXGN::Chado::Publication object
19 =item db
21 db name for linking the publication to an xref (usually PubMed)
23 =item accession
25 the accession of the dbxref
27 =item doi
29 the DOI of the publication, if one exists
31 =back
33 =head1 AUTHOR
35 Naama Menda <nm249@cornell.edu>
37 =cut 
39 </%doc>
40 <%args>
41   $pub
42   $doi => undef
43   $db => undef
44   $accession => undef
45 </%args>
47 <& /util/import_javascript.mas, classes => 'CXGN.Phenome.Publication' &>
48 <div class="publication_embedded">
49   <span class="title"> <% $doi %> <% $pub->get_title |h%> </span>  <a href="/publication/<% $pub->get_pub_id |h%>/view">
50     <% $pub->get_series_name |h%> (<% $pub->get_pyear |h%>) </a>
51   <br />
52   <a class="toggle_abstract" href="#">Show / hide abstract</a>
53   <div class="detail">
54     <div class="abstract">
55        <% $pub->get_abstract |h%>
56     </div>
57      <div class="citation">
58        <% $pub->get_authors_as_string |h%>.
59        <% $pub->get_series_name |h%>.
60        <% $pub->get_pyear |h%>.
61         <% $pub->get_volume |h%>(<% $pub->get_issue |h%>).
62        <% $pub->get_pages |h%>.
63       </div>
64   </div>
65 </div>