app/models/spotlight/resources/iiif_manifest.rb in blacklight-spotlight-3.0.0.alpha.10 vs app/models/spotlight/resources/iiif_manifest.rb in blacklight-spotlight-3.0.0.rc1

- old
+ new

@@ -4,10 +4,11 @@ module Resources ## # A PORO to construct a solr hash for a given IiifManifest class IiifManifest attr_reader :collection + def initialize(attrs = {}) @url = attrs[:url] @manifest = attrs[:manifest] @collection = attrs[:collection] @solr_hash = {} @@ -34,9 +35,10 @@ end private attr_reader :url, :manifest, :exhibit, :solr_hash + delegate :blacklight_config, to: :exhibit def add_document_id solr_hash[exhibit.blacklight_config.document_model.unique_key.to_sym] = compound_id end