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