Revision 1036:8526d7436527 vendor/plugins/redmine_bibliography/app/views
| vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb | ||
|---|---|---|
| 1 |
<% content_for :header_tags do %> |
|
| 2 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
|
| 3 |
<%= javascript_include_tag 'bibtex', :plugin => 'redmine_bibliography' -%> |
|
| 4 |
<% end %> |
|
| 5 |
|
|
| 1 | 6 |
<% if @project.publications.any? %> |
| 2 | 7 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
| 3 | 8 |
<div id="bibliography"> |
| 4 | 9 |
<div class="box"> |
| 5 | 10 |
<h3><%=l(:label_related_publication_plural)%></h3> |
| 6 | 11 |
|
| 7 |
<dl>
|
|
| 8 |
<% @project.publications.each do |publication| %> |
|
| 9 |
<dt> |
|
| 10 |
<span class="authors">
|
|
| 11 |
<%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %><% if !publication.authorships.empty? %>.<% end %>
|
|
| 12 |
</span>
|
|
| 13 |
<span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication, :project_id => @project %></span>
|
|
| 14 |
<% if publication.bibtex_entry.year.to_s != "" %> |
|
| 15 |
<span class="year">
|
|
| 16 |
(<%= publication.bibtex_entry.year %>)
|
|
| 17 |
</span>
|
|
| 18 |
<% end %>
|
|
| 19 |
</dt><dd></dd>
|
|
| 12 |
<dl>
|
|
| 13 |
<% @project.publications.each do |publication| %>
|
|
| 14 |
<dt>
|
|
| 15 |
<%= publication.print_entry(:ieee) -%>
|
|
| 16 |
</dt>
|
|
| 17 |
<dd>
|
|
| 18 |
<%= link_to("[More Details]", {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%>
|
|
| 19 |
|
|
| 20 |
<%= link_to_function "[Bibtex]", onclick="toggleBibtex(this)" -%>
|
|
| 21 |
</dd>
|
|
| 22 |
<dd class="bibtex-textarea collapsed" style="display: none;">
|
|
| 23 |
<textarea readonly><%= publication.print_entry(:bibtex) -%></textarea>
|
|
| 24 |
</dd>
|
|
| 20 | 25 |
<% end -%> |
| 21 |
</dl> |
|
| 26 |
</dl>
|
|
| 22 | 27 |
</div> |
| 23 | 28 |
</div> |
| 24 |
<% end %> |
|
| 29 |
<% end -%> |
|
| vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb | ||
|---|---|---|
| 1 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
|
| 2 |
|
|
| 3 | 1 |
<h2><%=l(:label_publication_show)%></h2> |
| 4 | 2 |
|
| 5 | 3 |
<div class="box"> |
| 6 |
<h3> |
|
| 7 |
<%= h @publication.title %> |
|
| 8 |
</h3> |
|
| 4 |
<h3>Publication Info</h3> |
|
| 5 |
<%= show_cite_proc_entry(@publication)%> |
|
| 6 |
|
|
| 7 |
<h3>Bibtex Format</h3> |
|
| 8 |
<%=h print_bibtex_entry(@publication) %> |
|
| 9 |
</div> |
|
| 10 |
|
|
| 11 |
<div class="box"> |
|
| 9 | 12 |
|
| 10 | 13 |
<h4><%= l(:authors) %></h4> |
| 11 | 14 |
<ul id="authorships"> |
| ... | ... | |
| 18 | 21 |
<%- end -%> |
| 19 | 22 |
<%- end -%> |
| 20 | 23 |
</ul> |
| 24 |
|
|
| 21 | 25 |
<%- if User.current.allowed_to?(:edit_publication, @project) && @publication.authorships.length > 1 -%> |
| 22 | 26 |
<%= sortable_element("authorships", :url => { :controller => :publications, :action => :sort_author_order }, :handle => "handle") %>
|
| 23 | 27 |
<%- end -%> |
| ... | ... | |
| 26 | 30 |
<%= show_bibtex_fields(@publication.bibtex_entry) %> |
| 27 | 31 |
<%- end -%> |
| 28 | 32 |
|
| 29 |
|
|
| 30 | 33 |
<% unless @publication.external_url.blank? %> |
| 31 | 34 |
<h4> |
| 32 | 35 |
<%= l(:field_external_url) %> |
| ... | ... | |
| 46 | 49 |
</div> |
| 47 | 50 |
|
| 48 | 51 |
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %> |
| 49 |
|
|
| 52 |
|
|
| 50 | 53 |
<% content_for :sidebar do %> |
| 51 | 54 |
<h3><%=l(:label_publication_project_index)%></h3> |
| 52 | 55 |
|
Also available in: Unified diff