# HG changeset patch # User Chris Cannam # Date 1371566029 -3600 # Node ID b189ccd72882861d65a263169573194213310350 # Parent 12556ba57d179ce114d2d1d52443c84d9bd6b207# Parent 033fecbc3438f40de142fcf2f4f8275d1b6d1039 Merge diff -r 12556ba57d17 -r b189ccd72882 plugins/redmine_bibliography/app/helpers/publications_helper.rb --- a/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Jun 18 15:33:36 2013 +0100 +++ b/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Jun 18 15:33:49 2013 +0100 @@ -123,7 +123,7 @@ def print_ieee_format(publication) Rails.cache.fetch("publication-#{publication.id}-ieee") do - publication.print_entry(:ieee) + publication.print_entry(:ieee).html_safe end end diff -r 12556ba57d17 -r b189ccd72882 plugins/redmine_bibliography/app/models/publication.rb --- a/plugins/redmine_bibliography/app/models/publication.rb Tue Jun 18 15:33:36 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/publication.rb Tue Jun 18 15:33:49 2013 +0100 @@ -101,11 +101,10 @@ end if style == :ieee - CiteProc.process bib.to_citeproc, :style => :ieee, :format => :html + CiteProc.process(bib.to_citeproc, :style => :ieee, :format => :html) else bibtex = bib.to_s :include => :meta_content bibtex.strip! - logger.error { bibtex } end end end diff -r 12556ba57d17 -r b189ccd72882 plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb --- a/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Tue Jun 18 15:33:36 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Tue Jun 18 15:33:49 2013 +0100 @@ -15,9 +15,9 @@ <%= print_ieee_format(publication) %>
- <%= link_to("[More Details]", {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%> + <%= link_to(l("more_details_link"), {:controller => :publications, :action => :show, :id => publication.id, :project_id => @project.id}) -%> - <%= link_to_function "[BIBTEX]", onclick="toggleBibtex(this)" -%> + <%= link_to l(:bibtex_link).html_safe, "javascript:void(0)", :class => "bibtex-link"-%>