Skip to content

Commit

Permalink
Merge pull request #5959 from avalonmediasystem/during_migration
Browse files Browse the repository at this point in the history
Ensure that thumbnails show during migration/reindex
  • Loading branch information
cjcolvar authored Jul 29, 2024
2 parents 8b56950 + ce70296 commit 853aeda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def lti_share_url_for(obj, _opts = {})
def image_for(document)
master_file_id = document["section_id_ssim"].try :first

video_count = document["avalon_resource_type_ssim"].count{|m| m.start_with?('moving image') } rescue 0
audio_count = document["avalon_resource_type_ssim"].count{|m| m.start_with?('sound recording') } rescue 0
video_count = document["avalon_resource_type_ssim"].count{|m| m.downcase.start_with?('moving image') } rescue 0
audio_count = document["avalon_resource_type_ssim"].count{|m| m.downcase.start_with?('sound recording') } rescue 0

if master_file_id
if video_count > 0
Expand Down

0 comments on commit 853aeda

Please sign in to comment.