Mercurial > hg > soundsoftware-site
changeset 1434:a9cfc6dcfb83 biblio_alt_search_auth
Addresses Bug #764. Removes unused controller instanced variable.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 09 Oct 2013 19:17:22 +0100 |
parents | 2599a11ef11a |
children | d0ac3348d28d ee598c21c239 |
files | plugins/redmine_bibliography/app/controllers/publications_controller.rb plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Oct 08 17:06:37 2013 +0100 +++ b/plugins/redmine_bibliography/app/controllers/publications_controller.rb Wed Oct 09 19:17:22 2013 +0100 @@ -82,10 +82,8 @@ def edit find_project_by_project_id unless params[:project_id].nil? - @edit_view = true; @publication = Publication.find(params[:id]) @selected_bibtex_entry_type_id = @publication.bibtex_entry.entry_type - @bibtype_fields = BibtexEntryType.fields(@selected_bibtex_entry_type_id) end
--- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue Oct 08 17:06:37 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Wed Oct 09 19:17:22 2013 +0100 @@ -7,7 +7,11 @@ <p class="author_associated search_author_tie"> <%= f.check_box :search_author_tie, :label => '' -%> - <span>Not associated with any SoundSoftware site user.</span> + <% unless f.object.search_author_tie %> + <span>Not associated with any SoundSoftware site user.</span> + <% else %> + <span>Associated with <%= render_authorship_link(f.object.search_author_class, f.object.search_author_id) -%>.</span> + <% end %> </p> <%= f.hidden_field :search_author_class -%>