Revision 1312:2abc48cc545e
| plugins/redmine_bibliography/app/helpers/publications_helper.rb | ||
|---|---|---|
| 123 | 123 |
|
| 124 | 124 |
def print_ieee_format(publication) |
| 125 | 125 |
Rails.cache.fetch("publication-#{publication.id}-ieee") do
|
| 126 |
publication.print_entry(:ieee) |
|
| 126 |
publication.print_entry(:ieee).html_safe
|
|
| 127 | 127 |
end |
| 128 | 128 |
end |
| 129 | 129 |
|
| plugins/redmine_bibliography/app/models/publication.rb | ||
|---|---|---|
| 101 | 101 |
end |
| 102 | 102 |
|
| 103 | 103 |
if style == :ieee |
| 104 |
CiteProc.process bib.to_citeproc, :style => :ieee, :format => :html
|
|
| 104 |
CiteProc.process(bib.to_citeproc, :style => :ieee, :format => :html)
|
|
| 105 | 105 |
else |
| 106 | 106 |
bibtex = bib.to_s :include => :meta_content |
| 107 | 107 |
bibtex.strip! |
| 108 |
logger.error { bibtex }
|
|
| 109 | 108 |
end |
| 110 | 109 |
end |
| 111 | 110 |
end |
Also available in: Unified diff