| 2 |
2 |
|
| 3 |
3 |
<div class="box">
|
| 4 |
4 |
<h3>Publication Info</h3>
|
| 5 |
|
<p><%= show_cite_proc_entry(@publication)%></p>
|
| 6 |
|
|
|
5 |
<p><%= print_ieee_format(@publication)%></p>
|
|
6 |
|
| 7 |
7 |
<h3>B<small>IB</small>T<sub>E</sub>X Format</h3>
|
| 8 |
|
<pre><%=h print_bibtex_entry(@publication) %></pre>
|
|
8 |
<pre><%=h print_bibtex_format(@publication) %></pre>
|
| 9 |
9 |
</div>
|
| 10 |
10 |
|
| 11 |
11 |
<div class="box">
|
| ... | ... | |
| 14 |
14 |
<ul id="authorships">
|
| 15 |
15 |
<% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
|
| 16 |
16 |
<% content_tag_for :li, authorship do %>
|
| 17 |
|
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
|
|
17 |
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
|
| 18 |
18 |
<span class="handle">[drag to reorder]</span>
|
| 19 |
19 |
<%- end -%>
|
| 20 |
20 |
<%= link_to_authorship authorship %> <em><%= h authorship.institution %></em> <br />
|
| ... | ... | |
| 30 |
30 |
<%= show_bibtex_fields(@publication.bibtex_entry) %>
|
| 31 |
31 |
<%- end -%>
|
| 32 |
32 |
|
| 33 |
|
<% unless @publication.external_url.blank? %>
|
| 34 |
|
<h4>
|
| 35 |
|
<%= l(:field_external_url) %>
|
| 36 |
|
</h4>
|
|
33 |
<%- unless @publication.external_url.blank? -%>
|
| 37 |
34 |
<p>
|
| 38 |
|
<%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} %>
|
|
35 |
<b><%= l(:field_external_url) %>:</b> <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} -%>
|
|
36 |
</p>
|
|
37 |
<%- end -%>
|
|
38 |
|
|
39 |
|
|
40 |
<% unless @publication.doi.blank? %>
|
|
41 |
<p>
|
|
42 |
<b><%= l(:field_doi)-%>:</b> <%= link_to h(@publication.doi), "http://dx.doi.org/#{@publication.doi}", {:target => "_blank"} -%>
|
| 39 |
43 |
</p>
|
| 40 |
44 |
<% end %>
|
| 41 |
45 |
|
| 42 |
46 |
<br / >
|
| 43 |
|
<% if User.current.allowed_to?(:add_publication, @project) %>
|
|
47 |
<% if User.current.allowed_to?(:add_publication, @project) %>
|
| 44 |
48 |
<%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
|
| 45 |
49 |
<%= link_to "Delete", {:controller => 'publications', :action => 'destroy', :id => @publication, :project_id => @project },
|
| 46 |
50 |
:confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> |
|
| ... | ... | |
| 49 |
53 |
</div>
|
| 50 |
54 |
|
| 51 |
55 |
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
|
| 52 |
|
|
|
56 |
|
| 53 |
57 |
<% content_for :sidebar do %>
|
| 54 |
58 |
<h3><%=l(:label_publication_project_index)%></h3>
|
| 55 |
59 |
|
| 56 |
60 |
<p id="list_projects">
|
| 57 |
61 |
<%= render :partial => 'list_projects' %>
|
| 58 |
62 |
</p>
|
| 59 |
|
|
|
63 |
|
| 60 |
64 |
<%- if User.current.allowed_to?(:edit_publication, @project) -%>
|
| 61 |
|
<%= render :partial => 'add_project_form' %>
|
|
65 |
<%= render :partial => 'add_project_form' %>
|
| 62 |
66 |
<%- end -%>
|
| 63 |
67 |
<% end %>
|