Mercurial > hg > soundsoftware-site
changeset 1404:e2c17a09ce86 biblio_alt_search_auth
removed more unused code
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 30 Sep 2013 18:24:28 +0100 |
parents | 35732ac4324a |
children | 43b303a229e1 |
files | plugins/redmine_bibliography/app/controllers/publications_controller.rb |
diffstat | 1 files changed, 0 insertions(+), 30 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_bibliography/app/controllers/publications_controller.rb Mon Sep 30 17:31:32 2013 +0100 +++ b/plugins/redmine_bibliography/app/controllers/publications_controller.rb Mon Sep 30 18:24:28 2013 +0100 @@ -250,35 +250,6 @@ render :layout => false end - def get_user_info - object_id = params[:object_id] - value = params[:value] - classname = Kernel.const_get(value.split('_')[0]) - - item = classname.find(value.split('_')[1]) - - name_field = "publication_authorships_attributes_#{object_id}_name_on_paper".to_sym - email_field = "publication_authorships_attributes_#{object_id}_email".to_sym - institution_field = "publication_authorships_attributes_#{object_id}_institution".to_sym - - yes_radio = "publication_authorships_attributes_#{object_id}_identify_author_yes".to_sym - - respond_to do |format| - format.js { - render(:update) {|page| - page[name_field].value = item.name - page[email_field].value = item.mail - page[institution_field].value = item.institution - - page[yes_radio].checked = true - page[name_field].readOnly = true - page[email_field].readOnly = true - page[institution_field].readOnly = true - } - } - end - end - def sort_author_order params[:authorships].each_with_index do |id, index| Authorship.update_all(['auth_order=?', index+1], ['id=?', id]) @@ -303,7 +274,6 @@ end end - def remove_project @project = Project.find(params[:project_id]) proj = Project.find(params[:remove_project_id])