Skip to content

Commit

Permalink
Remove the default thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Aug 13, 2024
1 parent d548d80 commit 6d84a94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/indexers/data_set_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class DataSetIndexer < Hyrax::Indexers::PcdmObjectIndexer(DataSet)
include Hyrax::Indexer(:basic_metadata)
include Hyrax::Indexer(:data_set)

self.thumbnail_path_service = DataCatalog::ThumbnailPathService

# Uncomment this block if you want to add custom indexing behavior:
# def to_solr
# super.tap do |index_document|
Expand Down
7 changes: 7 additions & 0 deletions app/services/data_catalog/thumbnail_path_service.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module DataCatalog
class ThumbnailPathService < Hyrax::ThumbnailPathService
def self.default_image
nil
end
end
end

0 comments on commit 6d84a94

Please sign in to comment.