Class: Hyrax::IiifManifestPresenter::Factory

Inherits:
PresenterFactory show all
Defined in:
app/presenters/hyrax/iiif_manifest_presenter.rb

Instance Attribute Summary

Attributes inherited from PresenterFactory

#ids, #presenter_args, #presenter_class

Instance Method Summary collapse

Methods inherited from PresenterFactory

build_for, build_presenters, #initialize

Constructor Details

This class inherits a constructor from Hyrax::PresenterFactory

Instance Method Details

#buildArray

Returns:

  • (Array)

159
160
161
162
163
164
# File 'app/presenters/hyrax/iiif_manifest_presenter.rb', line 159

def build
  ids.map do |id|
    solr_doc = load_docs.find { |doc| doc.id == id }
    presenter_class.for(solr_doc) if solr_doc
  end.compact
end