Mercurial > hg > soundsoftware-site
changeset 597:70f0276fde9a feature_36
Created the radio buttons with options for the Author selection.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 16 Aug 2011 12:06:24 +0100 |
parents | fcff84e1c1ce |
children | c6cfe1f2eac1 |
files | vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb vendor/plugins/redmine_bibliography/app/models/authorship.rb vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml vendor/plugins/redmine_bibliography/config/locales/en.yml |
diffstat | 4 files changed, 13 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Aug 16 11:47:30 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb Tue Aug 16 12:06:24 2011 +0100 @@ -206,7 +206,6 @@ object_id = params[:object_id] @object_name = "publications[authorships_attributes][#{object_id}]" - logger.error { "OBJECT NAME #{@object_name}" } authorships_list = Authorship.like(params[:q]).find(:all, :limit => 100)
--- a/vendor/plugins/redmine_bibliography/app/models/authorship.rb Tue Aug 16 11:47:30 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/models/authorship.rb Tue Aug 16 12:06:24 2011 +0100 @@ -7,7 +7,7 @@ accepts_nested_attributes_for :author accepts_nested_attributes_for :publication - attr_accessor :is_user, :author_user_id, :search_name, :add_this_author, :search_results + attr_accessor :is_user, :author_user_id, :search_name, :identify_author, :search_results before_save :associate_author_user named_scope :like, lambda {|q|
--- a/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml Tue Aug 16 11:47:30 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml Tue Aug 16 12:06:24 2011 +0100 @@ -14,16 +14,14 @@ <p> <div id="<%= form_tag_id( f.object_name, :identify_author ) %>"> - <p id="<%= form_tag_id( f.object_name, :identify_author_results ) %>"> - </p> - -<p> - <label><%= f.radio_button :add_this_author, false %><%= l(:field_identify_author_yes) %></label><br /> - <label><%= f.radio_button :add_this_author, false %><%= l(:field_identify_author_correct) %></label><br /> - <label><%= f.radio_button :add_this_author, false %><%= l(:field_identify_author_no) %></label><br /> - -</p> - + <p id="<%= form_tag_id( f.object_name, :identify_author_results ) %>"> + </p> + <p> + Is it this author?<br /> + <%= f.radio_button :identify_author, "yes" %><%= f.label :identify_author_yes %><br /> + <%= f.radio_button :identify_author, "correct" %><%= f.label :identify_author_correct %><br /> + <%= f.radio_button :identify_author, "no" %><%= f.label :identify_author_no %><br /> + </p> </div> </p>
--- a/vendor/plugins/redmine_bibliography/config/locales/en.yml Tue Aug 16 11:47:30 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/config/locales/en.yml Tue Aug 16 12:06:24 2011 +0100 @@ -18,9 +18,10 @@ field_author_user: User Name field_author_username: "Associated User" field_author_publications: "Publications by this Author" - - bibtex_entry: - entry_type: "Bibtex Entry Type" + field_identify_author_yes: "Yes" + field_identify_author_correct: "Corrections" + field_identify_author_no: "No" + entry_type: "Bibtex Entry Type" label_author_is_me: "(I am this author)" label_add_me_as_author: "Add me as an author"