Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary descriptive fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Mar 5, 2021
1 parent af5eea6 commit b742d60
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions app/indexers/describable_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ def add_mods_to_solr_doc
solr_doc = {}
mods_sources = {
sw_title_display: %w[sw_display_title_tesim],
main_author_w_date: %w[sw_author_ssim sw_author_tesim],
main_author_w_date: %w[sw_author_tesim],
sw_language_facet: %w[sw_language_ssim],
sw_genre: %w[sw_genre_ssim],
format_main: %w[sw_format_ssim],
topic_facet: %w[sw_topic_ssim],
era_facet: %w[sw_subject_temporal_ssim],
geographic_facet: %w[sw_subject_geographic_ssim],
%i[term_values typeOfResource] => %w[mods_typeOfResource_ssim],
pub_year_sort_str: %w[sw_pub_date_sort_ssi],
pub_year_display_str: %w[sw_pub_date_facet_ssi]
}

Expand Down
1 change: 0 additions & 1 deletion spec/indexers/composite_indexer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
it 'searchworks date-fu: temporal periods and pub_dates' do
expect(doc).to match a_hash_including(
'sw_subject_temporal_ssim' => a_collection_containing_exactly('18th century', '17th century'),
'sw_pub_date_sort_ssi' => '1600',
'sw_pub_date_facet_ssi' => '1600'
)
end
Expand Down
1 change: 0 additions & 1 deletion spec/indexers/describable_indexer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
'sw_language_ssim' => ['English'],
'sw_format_ssim' => ['Book'],
'sw_subject_temporal_ssim' => ['1800-1900'],
'sw_pub_date_sort_ssi' => '1911',
'sw_pub_date_facet_ssi' => '1911'
)
end
Expand Down

0 comments on commit b742d60

Please sign in to comment.