From d54314598a8acfd99d4849ee16fcc0b17d810d9c Mon Sep 17 00:00:00 2001 From: Karen Didrickson Date: Thu, 29 Nov 2018 09:33:08 -0600 Subject: [PATCH] change description label to Description --- config/locales/hyrax.en.yml | 2 +- lib/generators/hyrax/templates/catalog_controller.rb | 2 +- spec/features/dashboard/collection_spec.rb | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/locales/hyrax.en.yml b/config/locales/hyrax.en.yml index 2293a7aae4..2119aed4c9 100644 --- a/config/locales/hyrax.en.yml +++ b/config/locales/hyrax.en.yml @@ -1265,7 +1265,7 @@ en: based_near: Location creator: Creator date_created: Date Created - description: Abstract or Summary + description: Description embargo_release_date: until files: Upload a file keyword: Keyword diff --git a/lib/generators/hyrax/templates/catalog_controller.rb b/lib/generators/hyrax/templates/catalog_controller.rb index 7fc5ab46f3..e624bf0b8a 100644 --- a/lib/generators/hyrax/templates/catalog_controller.rb +++ b/lib/generators/hyrax/templates/catalog_controller.rb @@ -161,7 +161,7 @@ def self.modified_field end config.add_search_field('description') do |field| - field.label = "Abstract or Summary" + field.label = "Description" solr_name = solr_name("description", :stored_searchable) field.solr_local_parameters = { qf: solr_name, diff --git a/spec/features/dashboard/collection_spec.rb b/spec/features/dashboard/collection_spec.rb index 0924487b64..f8209a5894 100644 --- a/spec/features/dashboard/collection_spec.rb +++ b/spec/features/dashboard/collection_spec.rb @@ -250,7 +250,7 @@ expect(page).to have_selector "input.collection_creator.multi_value" fill_in('Title', with: title) - fill_in('Abstract or Summary', with: description) + fill_in('Description', with: description) fill_in('Related URL', with: 'http://example.com/') click_button("Save") @@ -281,7 +281,7 @@ expect(page).to have_selector "input.collection_creator.multi_value" fill_in('Title', with: title) - fill_in('Abstract or Summary', with: description) + fill_in('Description', with: description) fill_in('Related URL', with: 'http://example.com/') click_button("Save") @@ -815,7 +815,7 @@ def get_url_fragment(type) creators = ["Dorje Trollo", "Vajrayogini"] fill_in('Title', with: new_title) - fill_in('Abstract or Summary', with: new_description) + fill_in('Description', with: new_description) fill_in('Creator', with: creators.first) within('.panel-footer') do click_button('Save changes')