To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / plugins / redmine_bibliography / app / views / publications / show.html.erb @ 1326:8516c3292901

History | View | Annotate | Download (2.28 KB)

1
<h2><%=l(:label_publication_show)%></h2>
2

    
3
<div class="box">
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">
12

    
13
<h4><%= l(:authors) %></h4>
14

    
15
<ul id="authorships">
16
  <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
17
    <%= content_tag_for :li, authorship do -%>
18
      <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
19
        <span class="handle">[drag to reorder]</span>
20
      <%- end -%>
21

    
22
      <%= link_to_authorship authorship %> <em><%= h(authorship.institution) %></em>
23

    
24
      <br />
25
    <%- end -%>
26
  <%- end -%>
27
</ul>
28

    
29
<%- if @publication.bibtex_entry != nil -%>
30
  <%= show_bibtex_fields(@publication.bibtex_entry).html_safe -%>
31
<%- end -%>
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 -%>
38

    
39
<% unless @publication.doi.blank? %>
40
  <p>
41
    <b><%= l(:field_doi)-%>:</b> <%= link_to h(@publication.doi), "http://dx.doi.org/#{@publication.doi}", {:target => "_blank"} -%>
42
  </p>
43
<% end %>
44

    
45
<br / >
46
  <% if User.current.allowed_to?(:add_publication, @project) %>
47
    <%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
48
    <%= link_to "Delete", {:controller => 'publications', :action => 'destroy', :id => @publication, :project_id => @project },
49
                                                     :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> |
50
  <% end %>
51
  <%= link_to l(:view_all_publications), {:controller => 'publications', :action => 'index', :project_id => @project } %>
52
</div>
53

    
54
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
55

    
56
<% content_for :sidebar do %>
57
  <h3><%=l(:label_publication_project_index)%></h3>
58

    
59
  <p id="list_projects">
60
    <%= render :partial => 'list_projects' %>
61
  </p>
62

    
63
  <%- if User.current.allowed_to?(:edit_publication, @project) -%>
64
    <%= render :partial => 'add_project_form' %>
65
  <%- end -%>
66
<% end %>