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, #initialize

Constructor Details

This class inherits a constructor from Hyrax::PresenterFactory

Instance Method Details

#buildArray

Returns:

  • (Array)


166
167
168
169
170
171
# File 'app/presenters/hyrax/iiif_manifest_presenter.rb', line 166

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