Revision 1435:d0ac3348d28d plugins
| plugins/redmine_bibliography/app/controllers/publications_controller.rb | ||
|---|---|---|
| 82 | 82 |
def edit |
| 83 | 83 |
find_project_by_project_id unless params[:project_id].nil? |
| 84 | 84 |
|
| 85 |
@edit_view = true; |
|
| 86 | 85 |
@publication = Publication.find(params[:id]) |
| 87 | 86 |
@selected_bibtex_entry_type_id = @publication.bibtex_entry.entry_type |
| 88 |
|
|
| 89 | 87 |
@bibtype_fields = BibtexEntryType.fields(@selected_bibtex_entry_type_id) |
| 90 | 88 |
end |
| 91 | 89 |
|
| plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb | ||
|---|---|---|
| 7 | 7 |
|
| 8 | 8 |
<p class="author_associated search_author_tie"> |
| 9 | 9 |
<%= f.check_box :search_author_tie, :label => '' -%> |
| 10 |
<span>Not associated with any SoundSoftware site user.</span> |
|
| 10 |
<% unless f.object.search_author_tie %> |
|
| 11 |
<span>Not associated with any SoundSoftware site user.</span> |
|
| 12 |
<% else %> |
|
| 13 |
<span>Associated with <%= render_authorship_link(f.object.search_author_class, f.object.search_author_id) -%>.</span> |
|
| 14 |
<% end %> |
|
| 11 | 15 |
</p> |
| 12 | 16 |
|
| 13 | 17 |
<%= f.hidden_field :search_author_class -%> |
Also available in: Unified diff