Revision 1024:503ed68a4e0f vendor/plugins/redmine_bibliography/app/helpers
| vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb | ||
|---|---|---|
| 89 | 89 |
s |
| 90 | 90 |
end |
| 91 | 91 |
|
| 92 |
|
|
| 93 | 92 |
def render_projects_list(publication, show_delete_icon) |
| 94 | 93 |
s= "" |
| 95 | 94 |
|
| ... | ... | |
| 99 | 98 |
if show_delete_icon |
| 100 | 99 |
if User.current.allowed_to?(:edit_publication, @project) |
| 101 | 100 |
if @project == proj |
| 101 |
# todo: move this message to yml file |
|
| 102 | 102 |
confirm_msg = 'Are you sure you want to remove the current project from this publication\'s projects list?' |
| 103 | 103 |
else |
| 104 | 104 |
confirm_msg = false |
| ... | ... | |
| 114 | 114 |
s |
| 115 | 115 |
end |
| 116 | 116 |
|
| 117 |
def show_cite_proc_entry(publication) |
|
| 118 |
# code that should be moved either to the model or to the controller? |
|
| 119 |
|
|
| 120 |
publication.print_entry(:ieee) |
|
| 121 |
end |
|
| 122 |
|
|
| 123 |
def print_bibtex_entry(publication) |
|
| 124 |
publication.print_entry(:bibtex) |
|
| 125 |
end |
|
| 126 |
|
|
| 127 |
|
|
| 117 | 128 |
def show_bibtex_fields(bibtex_entry) |
| 118 | 129 |
s = "" |
| 119 | 130 |
bibtex_entry.attributes.keys.sort.each do |key| |
Also available in: Unified diff