Skip to content

Commit

Permalink
handle missing thumbnail field in solr doc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgrove73 committed Feb 26, 2025
1 parent 0abb6ee commit f831072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def get_lang params


def show_scaled_image(doc, opts)
return '' if doc['thumbnail_url_ssm'].nil?
uri = doc['thumbnail_url_ssm'].first
uri = uri.gsub(/(https?:\/\/)(.*)$/,"https://\\2")
if uri[/ull\/[^\/]*?/]
Expand Down

0 comments on commit f831072

Please sign in to comment.