Sha256: 5aa4f297dedfc2752617f71e4fdce9b7c848cbb869bbd585d037f03e4c9c0287

Contents?: true

Size: 347 Bytes

Versions: 18

Compression:

Stored size: 347 Bytes

Contents

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/helpers/hyrax/iiif_helper.rb
hyrax-2.9.5 app/helpers/hyrax/iiif_helper.rb
hyrax-2.9.4 app/helpers/hyrax/iiif_helper.rb
hyrax-2.9.3 app/helpers/hyrax/iiif_helper.rb
hyrax-2.9.2 app/helpers/hyrax/iiif_helper.rb
hyrax-2.9.1 app/helpers/hyrax/iiif_helper.rb
hyrax-2.9.0 app/helpers/hyrax/iiif_helper.rb
hyrax-2.8.0 app/helpers/hyrax/iiif_helper.rb
hyrax-2.7.2 app/helpers/hyrax/iiif_helper.rb
hyrax-2.7.1 app/helpers/hyrax/iiif_helper.rb
hyrax-2.7.0 app/helpers/hyrax/iiif_helper.rb
hyrax-2.6.0 app/helpers/hyrax/iiif_helper.rb
hyrax-2.5.1 app/helpers/hyrax/iiif_helper.rb
hyrax-2.5.0 app/helpers/hyrax/iiif_helper.rb
hyrax-3.0.0.pre.beta2 app/helpers/hyrax/iiif_helper.rb
hyrax-2.4.1 app/helpers/hyrax/iiif_helper.rb
hyrax-3.0.0.pre.beta1 app/helpers/hyrax/iiif_helper.rb
hyrax-2.4.0 app/helpers/hyrax/iiif_helper.rb