Skip to content

Commit 20aa68e

Browse files
authored
Merge pull request #1326 from projectblacklight/cbeer-patch-1
Sentence case field labels
2 parents 1489c24 + 52d8d0f commit 20aa68e

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

config/locales/arclight.en.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ en:
7575
title: Online content
7676
our_collections: Our Collections
7777
sections:
78-
access_field: Access and Use
78+
access_field: Access and use
7979
background_field: Background
80-
collection_context_field: Collection Context
80+
collection_context_field: Collection context
8181
component_field: About this %{level}
82-
component_indexed_terms_field: Indexed Terms
83-
indexed_terms_field: Indexed Terms
82+
component_indexed_terms_field: Indexed terms
83+
indexed_terms_field: Indexed terms
8484
related_field: Related
85-
scope_and_arrangement_field: Scope and Arrangement
85+
scope_and_arrangement_field: Scope and arrangement
8686
summary_field: Summary
87-
toggle_sidebar: Navigate the Collection
87+
toggle_sidebar: Navigate the collection
8888
within_collection_dropdown:
8989
all_collections: all collections
9090
label_html: Search<span class="sr-only visually-hidden"> within</span>

lib/generators/arclight/templates/catalog_controller.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ class CatalogController < ApplicationController
275275
config.add_summary_field 'prefercite_ssm', label: 'Preferred citation', helper_method: :render_html_tags
276276

277277
# Collection Show Page - Background Section
278-
config.add_background_field 'scopecontent_ssm', label: 'Scope and Content', helper_method: :render_html_tags
279-
config.add_background_field 'bioghist_ssm', label: 'Biographical / Historical', helper_method: :render_html_tags
278+
config.add_background_field 'scopecontent_ssm', label: 'Scope and content', helper_method: :render_html_tags
279+
config.add_background_field 'bioghist_ssm', label: 'Biographical / historical', helper_method: :render_html_tags
280280
config.add_background_field 'acqinfo_ssim', label: 'Acquisition information', helper_method: :render_html_tags
281281
config.add_background_field 'appraisal_ssm', label: 'Appraisal information', helper_method: :render_html_tags
282282
config.add_background_field 'custodhist_ssm', label: 'Custodial history', helper_method: :render_html_tags
@@ -327,7 +327,7 @@ class CatalogController < ApplicationController
327327
}
328328
config.add_component_field 'abstract_ssm', label: 'Abstract', helper_method: :render_html_tags
329329
config.add_component_field 'extent_ssm', label: 'Extent'
330-
config.add_component_field 'scopecontent_ssm', label: 'Scope and Content', helper_method: :render_html_tags
330+
config.add_component_field 'scopecontent_ssm', label: 'Scope and content', helper_method: :render_html_tags
331331
config.add_component_field 'acqinfo_ssim', label: 'Acquisition information', helper_method: :render_html_tags
332332
config.add_component_field 'appraisal_ssm', label: 'Appraisal information', helper_method: :render_html_tags
333333
config.add_component_field 'custodhist_ssm', label: 'Custodial history', helper_method: :render_html_tags
@@ -362,13 +362,13 @@ class CatalogController < ApplicationController
362362

363363
# Collection Show Page Access Tab - Terms and Conditions Section
364364
config.add_terms_field 'accessrestrict_ssm', label: 'Restrictions', helper_method: :render_html_tags
365-
config.add_terms_field 'userestrict_ssm', label: 'Terms of Access', helper_method: :render_html_tags
365+
config.add_terms_field 'userestrict_ssm', label: 'Terms of access', helper_method: :render_html_tags
366366

367367
# Component Show Page Access Tab - Terms and Condition Section
368368
config.add_component_terms_field 'accessrestrict_ssm', label: 'Restrictions', helper_method: :render_html_tags
369-
config.add_component_terms_field 'userestrict_ssm', label: 'Terms of Access', helper_method: :render_html_tags
370-
config.add_component_terms_field 'parent_access_restrict_ssm', label: 'Parent Restrictions', helper_method: :render_html_tags
371-
config.add_component_terms_field 'parent_access_terms_ssm', label: 'Parent Terms of Access', helper_method: :render_html_tags
369+
config.add_component_terms_field 'userestrict_ssm', label: 'Terms of access', helper_method: :render_html_tags
370+
config.add_component_terms_field 'parent_access_restrict_ssm', label: 'Parent restrictions', helper_method: :render_html_tags
371+
config.add_component_terms_field 'parent_access_terms_ssm', label: 'Parent terms of access', helper_method: :render_html_tags
372372

373373
# Collection and Component Show Page Access Tab - In Person Section
374374
config.add_in_person_field 'repository_location', values: ->(_, document, _) { document.repository_config }, label: 'Location of this collection', component: Arclight::RepositoryLocationComponent

spec/components/arclight/collection_sidebar_component_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
expect(page).to have_link 'Summary'
2222
expect(page).to have_link 'Background'
2323
expect(page).to have_link 'Related'
24-
expect(page).to have_link 'Indexed Terms'
25-
expect(page).to have_link 'Access and Use'
24+
expect(page).to have_link 'Indexed terms'
25+
expect(page).to have_link 'Access and use'
2626
end
2727
end

spec/features/collection_page_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@
7575

7676
it 'background has configured metadata' do
7777
within '#background' do
78-
expect(page).to have_css('dt', text: 'Scope and Content')
78+
expect(page).to have_css('dt', text: 'Scope and content')
7979
expect(page).to have_css('dd', text: /^Correspondence, documents, records, photos/)
8080

81-
expect(page).to have_css('dt', text: 'Biographical / Historical')
81+
expect(page).to have_css('dt', text: 'Biographical / historical')
8282
expect(page).to have_css('dd', text: /^Alpha Omega Alpha Honor Medical Society was founded/)
8383

8484
expect(page).to have_css('dt', text: 'Acquisition information')
@@ -165,7 +165,7 @@
165165
expect(page).to have_link 'Summary', href: /#summary/
166166
expect(page).to have_link 'Background', href: /#background/
167167
expect(page).to have_link 'Related', href: /#related/
168-
expect(page).to have_link 'Indexed Terms', href: /#indexed-terms/
168+
expect(page).to have_link 'Indexed terms', href: /#indexed-terms/
169169
end
170170
end
171171

spec/features/component_page_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@
214214
expect(page).to have_css 'dt', text: 'Location of this collection:'
215215
expect(page).to have_css 'dd', text: 'Building 38, Room 1E-21'
216216

217-
expect(page).to have_css 'dt', text: 'Parent Restrictions:'
217+
expect(page).to have_css 'dt', text: 'Parent restrictions:'
218218
expect(page).to have_css 'dd', text: /^RESTRICTED: Access to these folders requires prior written approval./
219-
expect(page).to have_css 'dt', text: 'Terms of Access:'
219+
expect(page).to have_css 'dt', text: 'Parent terms of access:'
220220
expect(page).to have_css 'dd', text: /^Copyright was transferred to the public domain./
221221

222222
expect(page).to have_css 'dt', text: 'Contact:'

0 commit comments

Comments
 (0)