app/services/hyrax/indexes_thumbnails.rb
# Returns the value for the thumbnail path to put into the solr document
Returns the value for the thumbnail path to put into the solr document
Returns the value for the thumbnail path to put into the solr document
def thumbnail_path
      if self.object.class == Collection && UploadedCollectionThumbnailPathService.uploaded_thumbnail?(self.object)
        UploadedCollectionThumbnailPathService.call(object)
      elsif self.object.is_a?(::FileSet) && self.object.label && (self.object.audio? or m4a_file?(self.object))
        AudioFileSetThumbnailService.call(object)
      elsif self.object.thumbnail && self.object.thumbnail.pdf?
        PdfThumbnailPathService.call(object.thumbnail)
      else
        self.class.thumbnail_path_service.call(object)
      end
    end
def thumbnail_path if self . object . class == Collection && UploadedCollectionThumbnailPathService . uploaded_thumbnail? ( self . object ) UploadedCollectionThumbnailPathService . call ( object ) elsif self . object . is_a? ( :: FileSet ) && self . object . label && ( self . object . audio? or m4a_file? ( self . object ) ) AudioFileSetThumbnailService . call ( object ) elsif self . object . thumbnail && self . object . thumbnail . pdf? PdfThumbnailPathService . call ( object . thumbnail ) else self . class . thumbnail_path_service . call ( object ) end end
Returns the value for the thumbnail path to put into the solr document
Returns the value for the thumbnail path to put into the solr document