Class: Hyrax::IiifManifestPresenter::Factory
- Inherits:
-
PresenterFactory
- Object
- PresenterFactory
- Hyrax::IiifManifestPresenter::Factory
- 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
Constructor Details
This class inherits a constructor from Hyrax::PresenterFactory
Instance Method Details
#build ⇒ 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 |