lib/spotlight/riiif_service.rb in blacklight-spotlight-3.6.0.beta7 vs lib/spotlight/riiif_service.rb in blacklight-spotlight-3.6.0.beta8
- old
+ new
@@ -14,16 +14,16 @@
def self.info_url(image, _host = nil)
Riiif::Engine.routes.url_helpers.info_path(image)
end
# @param [Spotlight::Exhibit] exhibit
- # @param [Spotlight::FeaturedImage] image
+ # @param [Spotlight::Resource::Upload] resource
# @return [String]
- def self.manifest_url(exhibit, image)
- Spotlight::Engine.routes.url_helpers.manifest_exhibit_solr_document_path(exhibit, "#{exhibit.id}-#{image.id}")
+ def self.manifest_url(exhibit, resource)
+ Spotlight::Engine.routes.url_helpers.manifest_exhibit_solr_document_path(exhibit, "#{exhibit.id}-#{resource.id}")
end
- # @param [String] id
+ # @param [String] id the ID string of a Spotlight::FeaturedImage
# @return [Hash]
def self.info(id)
Riiif::Image.new(id).info
end
end