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 @ 1320:75f258d6f747

History | View | Annotate | Download (2.28 KB)

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