Mercurial > hg > soundsoftware-site
changeset 1418:fab9719b189e biblio_alt_search_auth
removed author_options (unused).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 01 Oct 2013 18:20:02 +0100 |
parents | 1df2db7f0e4d |
children | fd6b09e93623 |
files | plugins/redmine_bibliography/app/controllers/publications_controller.rb |
diffstat | 1 files changed, 0 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Oct 01 18:18:25 2013 +0100 +++ b/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Oct 01 18:20:02 2013 +0100 @@ -15,16 +15,11 @@ # we'll always want a new publication to have its bibtex entry @publication.build_bibtex_entry - # and at least one author - # @publication.authorships.build.build_author - @author_options = [["#{User.current.name} (@#{User.current.mail.partition('@')[2]})", "#{User.current.class.to_s}_#{User.current.id.to_s}"]] end def create @project = Project.find(params[:project_id]) - @author_options = [] - @publication = Publication.new(params[:publication]) @publication.projects << @project unless @project.nil? @@ -91,14 +86,11 @@ @publication = Publication.find(params[:id]) @selected_bibtex_entry_type_id = @publication.bibtex_entry.entry_type - @author_options = [] - @bibtype_fields = BibtexEntryType.fields(@selected_bibtex_entry_type_id) end def update @publication = Publication.find(params[:id]) - @author_options = [] if @publication.update_attributes(params[:publication]) flash[:notice] = "Successfully updated Publication."