Skip to content

Commit

Permalink
Remove note and odd from interesting children
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostin1966 committed Jun 20, 2024
1 parent 3f27548 commit a02e932
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
*= require 'blacklight_range_limit'
*
*/
#contents {
scroll-margin-top: 75vh;
}
2 changes: 1 addition & 1 deletion app/helpers/um_arclight_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def render_search_as_breadcrumbs_to_page_title(search_state_or_params) # rubocop
_title = title.join(' ')
end

SKIPPABLE_KEYS = ['containers', 'physdesc_tesim', 'creators_ssim', 'abstract_tesim', 'scopecontent_tesim']
SKIPPABLE_KEYS = ['containers', 'physdesc_tesim', 'creators_ssim', 'abstract_tesim', 'scopecontent_tesim', 'note_tesim', 'odd_tesim']
def is_interesting_component?(document)
(blacklight_config.component_fields.keys.find do |key|
(SKIPPABLE_KEYS.exclude?(key) && document.fetch(key, nil).present?)
Expand Down
4 changes: 3 additions & 1 deletion app/models/solr_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def languages
def abstract_or_scope
abstracts = fetch('abstract_tesim', [])
scopes = fetch('scopecontent_tesim', [])
values = (abstracts + scopes).uniq { |v| ActionController::Base.helpers.strip_tags(v) }.join(' ')
odds = fetch('odd_tesim', [])
notes = fetch('note_tesim', [])
values = (abstracts + scopes + odds + notes).uniq { |v| ActionController::Base.helpers.strip_tags(v) }.join(' ')
render_html_tags(value: [values]) if values.present?
end

Expand Down

0 comments on commit a02e932

Please sign in to comment.