Skip to content

Commit

Permalink
Merge pull request #6152 from samvera/fix-valk-manifests
Browse files Browse the repository at this point in the history
Fix IIIF manifests when the presenter model is a SolrDocument
  • Loading branch information
dlpierce authored Aug 15, 2023
2 parents 475a764 + f93d3f5 commit d6bd494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/presenters/hyrax/iiif_manifest_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def manifest_url
##
# @return [Array<#to_s>]
def member_ids
m = model.is_a?(::SolrDocument) ? model.hydra_model : model
m.class < Hyrax::Resource ? Array(model.member_ids) : Hyrax::SolrDocument::OrderedMembers.decorate(model).ordered_member_ids
m = model.is_a?(::SolrDocument) ? model.hydra_model : model.class
m < Hyrax::Resource ? Array(model.member_ids) : Hyrax::SolrDocument::OrderedMembers.decorate(model).ordered_member_ids
end

##
Expand Down

0 comments on commit d6bd494

Please sign in to comment.