# HG changeset patch # User luisf # Date 1313492784 -3600 # Node ID 70f0276fde9a64f5e4cca700108d7207d629fae9 # Parent fcff84e1c1ce7920df9b847491d95a0aa809e627 Created the radio buttons with options for the Author selection. diff -r fcff84e1c1ce -r 70f0276fde9a vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb --- 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) diff -r fcff84e1c1ce -r 70f0276fde9a vendor/plugins/redmine_bibliography/app/models/authorship.rb --- 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| diff -r fcff84e1c1ce -r 70f0276fde9a vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml --- 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 @@

-

-

- -

-
-
-
- -

- +

+

+

+ Is it this author?
+ <%= f.radio_button :identify_author, "yes" %><%= f.label :identify_author_yes %>
+ <%= f.radio_button :identify_author, "correct" %><%= f.label :identify_author_correct %>
+ <%= f.radio_button :identify_author, "no" %><%= f.label :identify_author_no %>
+

diff -r fcff84e1c1ce -r 70f0276fde9a vendor/plugins/redmine_bibliography/config/locales/en.yml --- 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"