Module: Hyrax::IiifHelper

Included in:
HyraxHelperBehavior
Defined in:
app/helpers/hyrax/iiif_helper.rb

Instance Method Summary collapse

Instance Method Details

#iiif_viewer_display(work_presenter, locals = {}) ⇒ Object


3
4
5
6
# File 'app/helpers/hyrax/iiif_helper.rb', line 3

def iiif_viewer_display(work_presenter, locals = {})
  render iiif_viewer_display_partial(work_presenter),
         locals.merge(presenter: work_presenter)
end

#iiif_viewer_display_partial(work_presenter) ⇒ Object


8
9
10
# File 'app/helpers/hyrax/iiif_helper.rb', line 8

def iiif_viewer_display_partial(work_presenter)
  'hyrax/base/iiif_viewers/' + work_presenter.iiif_viewer.to_s
end