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 @ 1364:4d5d25039a5f

History | View | Annotate | Download (2.37 KB)

1 1364:4d5d25039a5f luis
<%= javascript_include_tag 'order_authorships', :plugin => 'redmine_bibliography' %>
2
3 545:a2c2b9f8380b luis
<h2><%=l(:label_publication_show)%></h2>
4 464:fbdfec975bfa luis
5 615:c4ddb9531f4c chris
<div class="box">
6 946:a0c9cc95bcf3 luis
  <h3>Publication Info</h3>
7 1068:e11d8d13ebc5 luis
  <p><%= print_ieee_format(@publication)%></p>
8 1059:5617e630bf26 luis
9 1037:d937100c4b4a chris
  <h3>B<small>IB</small>T<sub>E</sub>X Format</h3>
10 1068:e11d8d13ebc5 luis
  <pre><%=h print_bibtex_format(@publication) %></pre>
11 946:a0c9cc95bcf3 luis
</div>
12 945:75351d69e2ba luis
13 946:a0c9cc95bcf3 luis
<div class="box">
14 329:4575b631f6ce luis
15 471:49fb7a9ef79c luis
<h4><%= l(:authors) %></h4>
16 1317:2805873c0147 luis
17 471:49fb7a9ef79c luis
<ul id="authorships">
18 556:ca9e8e562ea7 luis
  <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
19 1325:4ef7df804bab luis
    <%= content_tag_for :li, authorship do -%>
20 1059:5617e630bf26 luis
      <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
21 629:f9470a59e5da luis
        <span class="handle">[drag to reorder]</span>
22
      <%- end -%>
23 1325:4ef7df804bab luis
24 1317:2805873c0147 luis
      <%= link_to_authorship authorship %> <em><%= h(authorship.institution) %></em>
25 1325:4ef7df804bab luis
26 1317:2805873c0147 luis
      <br />
27 629:f9470a59e5da luis
    <%- end -%>
28
  <%- end -%>
29 471:49fb7a9ef79c luis
</ul>
30 945:75351d69e2ba luis
31 445:77f88379115a luis
<%- if @publication.bibtex_entry != nil -%>
32 1323:e1899e896dbc luis
  <%= show_bibtex_fields(@publication.bibtex_entry).html_safe -%>
33 445:77f88379115a luis
<%- end -%>
34 425:4ecbc22579e2 luis
35 1059:5617e630bf26 luis
<%- unless @publication.external_url.blank? -%>
36 658:65749e700af0 luis
  <p>
37 1059:5617e630bf26 luis
    <b><%= l(:field_external_url) %>:</b> <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} -%>
38
  </p>
39
<%- end -%>
40
41
<% unless @publication.doi.blank? %>
42
  <p>
43
    <b><%= l(:field_doi)-%>:</b> <%= link_to h(@publication.doi), "http://dx.doi.org/#{@publication.doi}", {:target => "_blank"} -%>
44 658:65749e700af0 luis
  </p>
45
<% end %>
46
47 629:f9470a59e5da luis
<br / >
48 1059:5617e630bf26 luis
  <% if User.current.allowed_to?(:add_publication, @project) %>
49 626:e2663e0bd5a6 luis
    <%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
50
    <%= link_to "Delete", {:controller => 'publications', :action => 'destroy', :id => @publication, :project_id => @project },
51 560:735388da579a luis
                                                     :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> |
52 626:e2663e0bd5a6 luis
  <% end %>
53 639:cbad7075a60f luis
  <%= link_to l(:view_all_publications), {:controller => 'publications', :action => 'index', :project_id => @project } %>
54 464:fbdfec975bfa luis
</div>
55 452:34a6cf259682 luis
56 464:fbdfec975bfa luis
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
57 1059:5617e630bf26 luis
58 615:c4ddb9531f4c chris
<% content_for :sidebar do %>
59
  <h3><%=l(:label_publication_project_index)%></h3>
60 629:f9470a59e5da luis
61 464:fbdfec975bfa luis
  <p id="list_projects">
62
    <%= render :partial => 'list_projects' %>
63
  </p>
64 1059:5617e630bf26 luis
65 629:f9470a59e5da luis
  <%- if User.current.allowed_to?(:edit_publication, @project) -%>
66 1059:5617e630bf26 luis
    <%= render :partial => 'add_project_form' %>
67 629:f9470a59e5da luis
  <%- end -%>
68 615:c4ddb9531f4c chris
<% end %>