Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb @ 706:0a34c4cb73d5 feature_36
Merge from 703:0435cf085f28
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 19 Sep 2011 17:29:17 +0100 |
parents | b6f9f005c0b6 3eb64cb3c7ac |
children | a1e0728d1e02 |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Mon Sep 19 17:28:32 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Mon Sep 19 17:29:17 2011 +0100 @@ -2,6 +2,7 @@ require 'bibtex' module PublicationsHelper + include AuthorshipsHelper def link_to_publication(publication, options={}, html_options = nil) url = {:controller => 'publications', :action => 'show', :id => publication}.merge(options) @@ -77,17 +78,7 @@ s = '<p>' publication.authorships.each do |authorship| - - if authorship.author.nil? - # legacy reasons… - s << h(authorship.name_on_paper) - else - if authorship.author.user.nil? - s << link_to(authorship.name_on_paper, :controller => 'authors', :action => 'show', :id => authorship.author) - else - s << link_to(authorship.name_on_paper, :controller => 'users', :action => 'show', :id => authorship.author.user) - end - end + s << link_to_authorship(authorship) s << "<br /><em>#{authorship.institution}</em></p>" end