To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_bibliography / app / views / publications / show.html.erb @ 1072:872db7098cb9
History | View | Annotate | Download (2.51 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 | <ul id="authorships"> |
||
| 15 | 556:ca9e8e562ea7 | luis | <% for authorship in @publication.authorships.find(:all, :order => :auth_order) %>
|
| 16 | 471:49fb7a9ef79c | luis | <% content_tag_for :li, authorship do %>
|
| 17 | 1059:5617e630bf26 | luis | <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
|
| 18 | 629:f9470a59e5da | luis | <span class="handle">[drag to reorder]</span> |
| 19 | <%- end -%>
|
||
| 20 | 702:3eb64cb3c7ac | chris | <%= link_to_authorship authorship %> <em><%= h authorship.institution %></em> <br /> |
| 21 | 629:f9470a59e5da | luis | <%- end -%>
|
| 22 | <%- end -%>
|
||
| 23 | 471:49fb7a9ef79c | luis | </ul>
|
| 24 | 945:75351d69e2ba | luis | |
| 25 | 633:d0fec261c169 | luis | <%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%>
|
| 26 | 629:f9470a59e5da | luis | <%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }, :handle => "handle") %>
|
| 27 | <%- end -%>
|
||
| 28 | 471:49fb7a9ef79c | 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 | |||
| 40 | <% unless @publication.doi.blank? %>
|
||
| 41 | <p>
|
||
| 42 | <b><%= l(:field_doi)-%>:</b> <%= link_to h(@publication.doi), "http://dx.doi.org/#{@publication.doi}", {:target => "_blank"} -%> |
||
| 43 | 658:65749e700af0 | luis | </p>
|
| 44 | <% end %>
|
||
| 45 | |||
| 46 | 629:f9470a59e5da | luis | <br / > |
| 47 | 1059:5617e630bf26 | luis | <% if User.current.allowed_to?(:add_publication, @project) %>
|
| 48 | 626:e2663e0bd5a6 | luis | <%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
|
| 49 | <%= link_to "Delete", {:controller => 'publications', :action => 'destroy', :id => @publication, :project_id => @project },
|
||
| 50 | 560:735388da579a | luis | :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> |
|
| 51 | 626:e2663e0bd5a6 | luis | <% end %>
|
| 52 | 639:cbad7075a60f | luis | <%= link_to l(:view_all_publications), {:controller => 'publications', :action => 'index', :project_id => @project } %>
|
| 53 | 464:fbdfec975bfa | luis | </div>
|
| 54 | 452:34a6cf259682 | luis | |
| 55 | 464:fbdfec975bfa | luis | <% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
|
| 56 | 1059:5617e630bf26 | luis | |
| 57 | 615:c4ddb9531f4c | chris | <% content_for :sidebar do %>
|
| 58 | <h3><%=l(:label_publication_project_index)%></h3> |
||
| 59 | 629:f9470a59e5da | luis | |
| 60 | 464:fbdfec975bfa | luis | <p id="list_projects"> |
| 61 | <%= render :partial => 'list_projects' %>
|
||
| 62 | </p>
|
||
| 63 | 1059:5617e630bf26 | luis | |
| 64 | 629:f9470a59e5da | luis | <%- if User.current.allowed_to?(:edit_publication, @project) -%>
|
| 65 | 1059:5617e630bf26 | luis | <%= render :partial => 'add_project_form' %>
|
| 66 | 629:f9470a59e5da | luis | <%- end -%>
|
| 67 | 615:c4ddb9531f4c | chris | <% end %> |