# HG changeset patch # User luisf # Date 1371564164 -3600 # Node ID 033fecbc3438f40de142fcf2f4f8275d1b6d1039 # Parent 17f075c7fd4159c7501f78173831a9906266bc50# Parent 18052001fe119a4f6421c4548c7da0c40ec2bf9b Merge diff -r 18052001fe11 -r 033fecbc3438 plugins/redmine_bibliography/app/helpers/publications_helper.rb --- a/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Jun 18 14:53:53 2013 +0100 +++ b/plugins/redmine_bibliography/app/helpers/publications_helper.rb Tue Jun 18 15:02:44 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 18052001fe11 -r 033fecbc3438 plugins/redmine_bibliography/app/models/publication.rb --- a/plugins/redmine_bibliography/app/models/publication.rb Tue Jun 18 14:53:53 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/publication.rb Tue Jun 18 15:02:44 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 18052001fe11 -r 033fecbc3438 plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb --- a/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Tue Jun 18 14:53:53 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Tue Jun 18 15:02:44 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"-%>