Skip to content

Commit

Permalink
[ESSI-2062] simplify #versioned_lookup_id, #basic_lookup_id split
Browse files Browse the repository at this point in the history
  • Loading branch information
aploshay authored and dlpierce committed Feb 5, 2025
1 parent d89af8f commit 6eae74e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/services/iiif_file_set_path_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def basic_lookup_id
# imported from Hyrax::DisplaysImage
def versioned_lookup_id
@versioned_lookup_id ||= begin
return file_set.content_location if file_set.content_location&.start_with?('s3://')
result = file_set.original_file_id
result = basic_lookup_id
if result.blank?
Rails.logger.warn "original_file_id for #{file_set.id} not found, falling back to Fedora."
# result = Hyrax::VersioningService.versioned_file_id(original_file)
Expand Down

0 comments on commit 6eae74e

Please sign in to comment.