Class: Spotlight::Resources::IiifManifest::Metadata

Inherits:
Object
  • Object
show all
Defined in:
app/models/spotlight/resources/iiif_manifest.rb

Overview

A simple class to map the metadata field

in a IIIF document to label/value pairs
This is intended to be overriden by an
application if a different metadata
strucure is used by the consumer

Instance Method Summary collapse

Constructor Details

#initialize(manifest) ⇒ Metadata

Returns a new instance of Metadata.



188
189
190
# File 'app/models/spotlight/resources/iiif_manifest.rb', line 188

def initialize(manifest)
  @manifest = manifest
end

Instance Method Details

#to_solrObject



192
193
194
# File 'app/models/spotlight/resources/iiif_manifest.rb', line 192

def to_solr
  .merge()
end