Mercurial > hg > soundsoftware-site
comparison plugins/redmine_bibliography/app/helpers/publications_helper.rb @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | f86e70095184 |
children |
comparison
equal
deleted
inserted
replaced
1518:2e8063097240 | 1519:afce8026aaeb |
---|---|
94 s.html_safe | 94 s.html_safe |
95 end | 95 end |
96 | 96 |
97 def print_ieee_format(publication) | 97 def print_ieee_format(publication) |
98 Rails.cache.fetch("publication-#{publication.id}-ieee") do | 98 Rails.cache.fetch("publication-#{publication.id}-ieee") do |
99 publication.print_entry(:ieee).html_safe | 99 entry = publication.print_entry(:ieee) |
100 if entry | |
101 entry.html_safe | |
102 end | |
100 end | 103 end |
101 end | 104 end |
102 | 105 |
103 def print_bibtex_format(publication) | 106 def print_bibtex_format(publication) |
104 Rails.cache.fetch("publication-#{publication.id}-bibtex") do | 107 Rails.cache.fetch("publication-#{publication.id}-bibtex") do |