Method: IiifPrint.manifest_metadata_from

Defined in:
lib/iiif_print.rb

.manifest_metadata_from(work:, presenter:) ⇒ Object



203
204
205
206
207
# File 'lib/iiif_print.rb', line 203

def self.(work:, presenter:)
  current_ability = presenter.try(:ability) || presenter.try(:current_ability)
  base_url = presenter.try(:base_url) || presenter.try(:request)&.base_url
  IiifPrint.(work: work, current_ability: current_ability, base_url: base_url)
end