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 @ 1061:01076ed49ffc
History | View | Annotate | Download (2.34 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 | 1037:d937100c4b4a | chris | <p><%= show_cite_proc_entry(@publication)%></p> |
| 6 | 946:a0c9cc95bcf3 | luis | |
| 7 | 1037:d937100c4b4a | chris | <h3>B<small>IB</small>T<sub>E</sub>X Format</h3> |
| 8 | <pre><%=h print_bibtex_entry(@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 | 633:d0fec261c169 | 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 | 658:65749e700af0 | luis | <% unless @publication.external_url.blank? %>
|
| 34 | <h4>
|
||
| 35 | <%= l(:field_external_url) %>
|
||
| 36 | </h4>
|
||
| 37 | <p>
|
||
| 38 | <%= link_to h(@publication.external_url), @publication.external_url, {:target => "_blank"} %>
|
||
| 39 | </p>
|
||
| 40 | <% end %>
|
||
| 41 | |||
| 42 | 629:f9470a59e5da | luis | <br / > |
| 43 | 626:e2663e0bd5a6 | luis | <% if User.current.allowed_to?(:add_publication, @project) %>
|
| 44 | <%= link_to l(:label_publication_edit), { :controller => "publications", :action => "edit", :id => @publication, :project_id => @project } %> |
|
||
| 45 | <%= link_to "Delete", {:controller => 'publications', :action => 'destroy', :id => @publication, :project_id => @project },
|
||
| 46 | 560:735388da579a | luis | :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %> |
|
| 47 | 626:e2663e0bd5a6 | luis | <% end %>
|
| 48 | 639:cbad7075a60f | luis | <%= link_to l(:view_all_publications), {:controller => 'publications', :action => 'index', :project_id => @project } %>
|
| 49 | 464:fbdfec975bfa | luis | </div>
|
| 50 | 452:34a6cf259682 | luis | |
| 51 | 464:fbdfec975bfa | luis | <% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
|
| 52 | 945:75351d69e2ba | luis | |
| 53 | 615:c4ddb9531f4c | chris | <% content_for :sidebar do %>
|
| 54 | <h3><%=l(:label_publication_project_index)%></h3> |
||
| 55 | 629:f9470a59e5da | luis | |
| 56 | 464:fbdfec975bfa | luis | <p id="list_projects"> |
| 57 | <%= render :partial => 'list_projects' %>
|
||
| 58 | </p>
|
||
| 59 | 629:f9470a59e5da | luis | |
| 60 | <%- if User.current.allowed_to?(:edit_publication, @project) -%>
|
||
| 61 | 547:56ad0c490f5e | luis | <%= render :partial => 'add_project_form' %>
|
| 62 | 629:f9470a59e5da | luis | <%- end -%>
|
| 63 | 615:c4ddb9531f4c | chris | <% end %> |