# HG changeset patch # User luisf # Date 1381342667 -3600 # Node ID d0ac3348d28df72e997182337cb940a5fa6fb1e3 # Parent 2c723b9f5b87579a3114482b081f103d6506b20a# Parent a9cfc6dcfb8331242ad04c93d2c813c114598aae Merge. diff -r 2c723b9f5b87 -r d0ac3348d28d plugins/redmine_bibliography/app/controllers/publications_controller.rb --- a/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Oct 08 17:07:28 2013 +0100 +++ b/plugins/redmine_bibliography/app/controllers/publications_controller.rb Wed Oct 09 19:17:47 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 diff -r 2c723b9f5b87 -r d0ac3348d28d plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue Oct 08 17:07:28 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Wed Oct 09 19:17:47 2013 +0100 @@ -7,7 +7,11 @@

<%= f.check_box :search_author_tie, :label => '' -%> - Not associated with any SoundSoftware site user. + <% unless f.object.search_author_tie %> + Not associated with any SoundSoftware site user. + <% else %> + Associated with <%= render_authorship_link(f.object.search_author_class, f.object.search_author_id) -%>. + <% end %>

<%= f.hidden_field :search_author_class -%>