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 @ 952:12f729c9f47d

History | View | Annotate | Download (2.36 KB)

1
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
2

    
3
<h2><%=l(:label_publication_show)%></h2>
4

    
5
<div class="box">
6
  <h3>Publication Info</h3>
7
  <%=h show_cite_proc_entry(@publication)%>
8

    
9
  <br />  
10
  <br />
11
  <h4>Bibtex Code</h4>
12
  <%= text_area_tag :bibtex_code, h(print_bibtex_entry(@publication)), :readonly => true, :rows => 6, :style => 'width:90%' %>
13

    
14
</div>
15

    
16
<div class="box">
17

    
18
<h4><%= l(:authors) %></h4>
19
<ul id="authorships">
20
  <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
21
    <% content_tag_for :li, authorship do %>
22
      <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>    
23
        <span class="handle">[drag to reorder]</span>
24
      <%- end -%>
25
      <%= link_to_authorship authorship %> <em><%= h authorship.institution %></em> <br />
26
    <%- end -%>
27
  <%- end -%>
28
</ul>
29

    
30
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
31
  <%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }, :handle => "handle") %>
32
<%- end -%>
33

    
34
<% unless @publication.external_url.blank? %>
35
  <h4>
36
    <%= l(:field_external_url) %>
37
  </h4>
38
  <p>
39
    <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} %>
40
  </p>
41
<% end %>
42

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

    
52
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
53
  
54
<% content_for :sidebar do %>
55
  <h3><%=l(:label_publication_project_index)%></h3>
56

    
57
  <p id="list_projects">
58
    <%= render :partial => 'list_projects' %>
59
  </p>
60
  
61
  <%- if User.current.allowed_to?(:edit_publication, @project) -%>
62
    <%= render :partial => 'add_project_form' %>    
63
  <%- end -%>
64
<% end %>