Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates Main Contrib labels to Creator #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class CatalogController < ApplicationController

# Date Created
config.add_facet_field 'date_created_ssi', label: 'Date Created', limit: 5, sort: 'index'

# Catch-all multidate field - hide this because it emcompasses multiple date fields in a way that isnt useful
# config.add_facet_field 'date_sim', label: 'Date', limit: 5, sort: 'index'

Expand All @@ -102,7 +102,7 @@ class CatalogController < ApplicationController
config.add_facet_field 'language_sim', label: 'Language', limit: 5, sort: 'index'

config.add_facet_field "publisher_sim", label: 'Publishers', limit: 10, sort: 'index'

# hide this because its a mash-up of other "x subjects" fields
# config.add_facet_field "subject_sim", label: "Subjects", limit: 10, sort: 'index'

Expand Down Expand Up @@ -136,7 +136,7 @@ class CatalogController < ApplicationController
# solr fields to be displayed in the index (search results) view
# The ordering of the field names is the order of the display
config.add_index_field 'date_ssi', label: 'Date', helper_method: :combined_display_date
config.add_index_field 'creator_ssim', label: 'Main contributors', helper_method: :contributor_index_display
config.add_index_field 'creator_ssim', label: 'Creator(s)', helper_method: :contributor_index_display
config.add_index_field 'summary_ssi', label: 'Summary', helper_method: :description_index_display

# solr fields to be displayed in the show (single result) view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const SearchResultsCard = props => {
<CardMetaData doc={doc} fieldLabel="Date" fieldName="date_ssi" />
<CardMetaData
doc={doc}
fieldLabel="Main Contributors"
fieldLabel="Creator(s)"
fieldName="creator_ssim"
/>
<CardMetaData
Expand Down
2 changes: 1 addition & 1 deletion app/views/media_objects/_metadata_display.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Unless required by applicable law or agreed to in writing, software distributed

<dl id="creation_metadata">
<%= display_metadata(I18n.t('media_object.date'), combined_display_date(@media_object), 'Not provided') %>
<%= display_metadata('Main contributor', @media_object.creator) %>
<%= display_metadata(I18n.t('media_object.creator'), @media_object.creator) %>
<% unless @media_object.abstract.blank? %>
<dt>Summary</dt>
<dd>
Expand Down