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 / vendor / plugins / redmine_bibliography / app / views / publications / show.html.erb @ 724:b96d3005ee79

History | View | Annotate | Download (2.25 KB)

1 558:c94e23a6eff1 luis
<%= stylesheet_link_tag 'bibliography', :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
<h3>
7 629:f9470a59e5da luis
  <%= h @publication.title %>
8 615:c4ddb9531f4c chris
</h3>
9 329:4575b631f6ce luis
10 471:49fb7a9ef79c luis
<h4><%= l(:authors) %></h4>
11
<ul id="authorships">
12 556:ca9e8e562ea7 luis
  <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
13 471:49fb7a9ef79c luis
    <% content_tag_for :li, authorship do %>
14 633:d0fec261c169 luis
      <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
15 629:f9470a59e5da luis
        <span class="handle">[drag to reorder]</span>
16
      <%- end -%>
17 702:3eb64cb3c7ac chris
      <%= link_to_authorship authorship %> <em><%= h authorship.institution %></em> <br />
18 629:f9470a59e5da luis
    <%- end -%>
19
  <%- end -%>
20 471:49fb7a9ef79c luis
</ul>
21 633:d0fec261c169 luis
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
22 629:f9470a59e5da luis
  <%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }, :handle => "handle") %>
23
<%- end -%>
24 471:49fb7a9ef79c luis
25 445:77f88379115a luis
<%- if @publication.bibtex_entry != nil -%>
26 544:f05f3a9ef569 luis
  <%= show_bibtex_fields(@publication.bibtex_entry) %>
27 445:77f88379115a luis
<%- end -%>
28 425:4ecbc22579e2 luis
29 658:65749e700af0 luis
30
<% unless @publication.external_url.blank? %>
31
  <h4>
32
    <%= l(:field_external_url) %>
33
  </h4>
34
  <p>
35
    <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} %>
36
  </p>
37
<% end %>
38
39 629:f9470a59e5da luis
<br / >
40 626:e2663e0bd5a6 luis
  <% if User.current.allowed_to?(:add_publication, @project) %>
41
    <%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
42
    <%= link_to "Delete", {:controller => 'publications', :action => 'destroy', :id => @publication, :project_id => @project },
43 560:735388da579a luis
                                                     :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> |
44 626:e2663e0bd5a6 luis
  <% end %>
45 639:cbad7075a60f luis
  <%= link_to l(:view_all_publications), {:controller => 'publications', :action => 'index', :project_id => @project } %>
46 464:fbdfec975bfa luis
</div>
47 452:34a6cf259682 luis
48 464:fbdfec975bfa luis
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
49
50 615:c4ddb9531f4c chris
<% content_for :sidebar do %>
51
  <h3><%=l(:label_publication_project_index)%></h3>
52 629:f9470a59e5da luis
53 464:fbdfec975bfa luis
  <p id="list_projects">
54
    <%= render :partial => 'list_projects' %>
55
  </p>
56 629:f9470a59e5da luis
57
  <%- if User.current.allowed_to?(:edit_publication, @project) -%>
58 547:56ad0c490f5e luis
    <%= render :partial => 'add_project_form' %>
59 629:f9470a59e5da luis
  <%- end -%>
60 615:c4ddb9531f4c chris
<% end %>