Skip to content

Commit 22f610c

Browse files
authored
Merge pull request #48 from IUBLibTech/IULRDC-45_Rename_Access_Restrictions
[IULRDC-45] Rename 'Access Restrictions' to 'Access Eligibility'
2 parents ed31937 + 0d6923b commit 22f610c

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/assets/stylesheets/dashboard.tweaks.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ body.dashboard {
33
background-color: white !important;
44
}
55

6-
/* Access restrictions (rights_statement) checkboxes */
6+
/* Access eligibility (rights_statement) checkboxes */
77
div.form-group.check_boxes {
88
div.checkbox {
99
label {

app/controllers/catalog_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def self.modified_field
5454
config.add_facet_field "domain_subject_sim", limit: 10, label: 'Domain Subject'
5555
config.add_facet_field "campus_sim", limit: 10, label: 'Campus', helper_method: :campus_label
5656
config.add_facet_field "holding_location_sim", limit: 10, label: 'Hosting Unit'
57-
config.add_facet_field "rights_statement_sim", limit: 10, label: 'Access Restrictions', helper_method: :access_restrictions_label
57+
config.add_facet_field "rights_statement_sim", limit: 10, label: 'Access Eligibility', helper_method: :access_restrictions_label
5858
# config.add_facet_field "human_readable_type_sim", label: "Type", limit: 5
5959
# config.add_facet_field "resource_type_sim", label: "Resource Type", limit: 5
6060
# config.add_facet_field "creator_sim", limit: 5
@@ -87,7 +87,7 @@ def self.modified_field
8787
# config.add_index_field "domain_subject_tesim", label: 'Domain Subject', itemprop: 'keywords', link_to_facet: "domain_subject_sim"
8888
# config.add_index_field "campus_tesim", label: 'Campus', itemprop: 'campus', link_to_facet: "campus_sim", helper_method: :campus_helper
8989
# config.add_index_field "holding_location_tesim", label: 'Hosting Unit', link_to_facet: "holding_location_sim"
90-
# config.add_index_field "rights_statement_tesim", label: 'Access Restrictions', link_to_facet: 'rights_statement_sim'
90+
# config.add_index_field "rights_statement_tesim", label: 'Access Eligibility', link_to_facet: 'rights_statement_sim'
9191
# config.add_index_field "subject_tesim", itemprop: 'about', link_to_facet: "subject_sim"
9292
# config.add_index_field "creator_tesim", itemprop: 'creator', link_to_facet: "creator_sim"
9393
# config.add_index_field "contributor_tesim", itemprop: 'contributor', link_to_facet: "contributor_sim"

app/renderers/hyrax/renderers/access_attribute_renderer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
module Hyrax
44
module Renderers
5-
# This is used by PresentsAttributes to show access restrictions (faculty, staff, public etc.)
6-
# e.g.: presenter.attribute_to_html(:access render_as: :access)
5+
# This is used by PresentsAttributes to show access eligibility (faculty, staff, public etc.)
6+
# e.g.: presenter.attribute_to_html(:rights_statement render_as: :access)
77
class AccessAttributeRenderer < FacetedAttributeRenderer
88
private
99

app/views/hyrax/base/_attribute_rows.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
<%= presenter.attribute_to_html(:expert, label: 'Public Contact', render_as: :external_link, html_dl: true) %>
1414
<%= presenter.attribute_to_html(:holding_location, label: 'Hosting Unit', render_as: :faceted, html_dl: true) %>
1515
<%= presenter.attribute_to_html(:campus, label: 'Campus', render_as: :campus, html_dl: true) %>
16-
<%= presenter.attribute_to_html(:rights_statement, label: 'Access Restrictions', render_as: :access, html_dl: true) %>
16+
<%= presenter.attribute_to_html(:rights_statement, label: 'Access Eligibility', render_as: :access, html_dl: true) %>
1717
<%= presenter.attribute_to_html(:bibliographic_citation, label: 'Bibliographic Citation', html_dl: true) %>

app/views/records/edit_fields/_rights_statement.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% rights_statements = Hyrax.config.rights_statement_service_class.new %>
22
<%= f.input :rights_statement,
3-
label: 'Access Restrictions',
3+
label: 'Access Eligibility',
44
as: :check_boxes,
55
collection: rights_statements.select_active_options,
66
include_blank: true,

config/locales/hyrax.en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ en:
8989
# source: 'Source" # not displayed, unchanged
9090
# source_metadata_identifier: 'Source metadata identifier' # not displayed, unchanged
9191
# campus: 'Campus' # unchanged
92-
rights_statement: 'Access restrictions'
92+
rights_statement: 'Access eligibility'
9393
bibliographic_citation: 'Bibliographic citation'

config/metadata/data_set.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ attributes:
216216
multiple: true
217217

218218
rights_statement:
219-
display_label: Access Restrictions
219+
display_label: Access Eligibility
220220
predicate: http://www.europeana.eu/schemas/edm/rights
221221
type: string
222222
multiple: true

0 commit comments

Comments
 (0)