changeset 426:8a8b7a042b9a feature_36

more information in the publication's show view
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 27 May 2011 17:05:13 +0100
parents 4ecbc22579e2
children de7c31d4cf9a
files vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb
diffstat 1 files changed, 14 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb	Thu May 26 17:41:41 2011 +0100
+++ b/vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb	Fri May 27 17:05:13 2011 +0100
@@ -1,12 +1,20 @@
-<h2><%= @publication.title %></h2>
+<h2>Publication Details</h2>
+<h4>Title</h4>
+<%= @publication.title %>
 
-<h3>Authors</h3>
+<h4>Authors</h4>
 <% @publication.authors.each do |author| %>
-  <%= author.name  %> <br />
+<%= author.name  %> <br />
+<% end %>
+<br />
+
+<% @publication.bibtex_entry.attributes.each do |field| %>
+  <% if field[1] != nil %>
+    <h4><%= field[0] %></h4>
+    <%= @publication.bibtex_entry.attributes[field[0]] unless field[1] == nil %>
+    <br />
+  <% end %>
 <% end %>
 
-<h3>Details</h3>
 
-<%= @publication.bibtex_entry.year %>
 
-