diff --git a/app/controllers/personal_honors_controller.rb b/app/controllers/personal_honors_controller.rb index c452b27..ffa1dda 100644 --- a/app/controllers/personal_honors_controller.rb +++ b/app/controllers/personal_honors_controller.rb @@ -58,6 +58,8 @@ class PersonalHonorsController < ApplicationController "year", "honor_type", "award_name", + "award_date", + "country", "honoree", "awarding_unit", "keywords", @@ -75,6 +77,8 @@ class PersonalHonorsController < ApplicationController "award_name", "awarding_unit", "honor_type", + "award_date", + "country", "keywords", "url", "note", diff --git a/app/models/honor.rb b/app/models/honor.rb index 20a39d1..99446bf 100644 --- a/app/models/honor.rb +++ b/app/models/honor.rb @@ -10,11 +10,13 @@ class Honor field :year, type: Integer field :award_name, localize: true field :awarding_unit, localize: true + field :award_date, type: DateTime field :language field :keywords field :url field :note field :rss2_id + field :country, localize: true field :create_user_id, :type => BSON::ObjectId field :update_user_id, :type => BSON::ObjectId diff --git a/app/views/admin/honors/_form.html.erb b/app/views/admin/honors/_form.html.erb index 626ae15..3bbf982 100644 --- a/app/views/admin/honors/_form.html.erb +++ b/app/views/admin/honors/_form.html.erb @@ -51,6 +51,15 @@ +