Module: IiifPrint::WorkShowPresenterDecorator

Defined in:
app/presenters/iiif_print/work_show_presenter_decorator.rb

Instance Method Summary collapse

Instance Method Details

#iiif_viewer?Boolean Also known as: universal_viewer?

OVERRIDE Hyrax 2.9.6 to remove check for representative_presenter.image?

Returns:

  • (Boolean)

    render a IIIF viewer



10
11
12
13
14
15
# File 'app/presenters/iiif_print/work_show_presenter_decorator.rb', line 10

def iiif_viewer?
  Hyrax.config.iiif_image_server? &&
    representative_id.present? &&
    representative_presenter.present? &&
    members_include_viewable_image?
end