diff --git a/app/indexers/data_set_indexer.rb b/app/indexers/data_set_indexer.rb index 2ca5521..8e6d2ee 100644 --- a/app/indexers/data_set_indexer.rb +++ b/app/indexers/data_set_indexer.rb @@ -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| diff --git a/app/services/data_catalog/thumbnail_path_service.rb b/app/services/data_catalog/thumbnail_path_service.rb new file mode 100644 index 0000000..f2818ab --- /dev/null +++ b/app/services/data_catalog/thumbnail_path_service.rb @@ -0,0 +1,7 @@ +module DataCatalog + class ThumbnailPathService < Hyrax::ThumbnailPathService + def self.default_image + nil + end + end +end \ No newline at end of file diff --git a/app/views/catalog/_thumbnail_list_data_set.html.erb b/app/views/catalog/_thumbnail_list_data_set.html.erb new file mode 100644 index 0000000..8f2c975 --- /dev/null +++ b/app/views/catalog/_thumbnail_list_data_set.html.erb @@ -0,0 +1,7 @@ +<% if (tag = document_presenter(document)&.thumbnail&.thumbnail_tag) %> +
+
+ <%= tag %> +
+
+<% end %> \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index e461901..aa34d93 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ Rails.application.routes.draw do + root 'catalog#index' mount Riiif::Engine => 'images', as: :riiif if Hyrax.config.iiif_image_server? mount BrowseEverything::Engine => '/browse' @@ -19,7 +20,7 @@ mount Qa::Engine => '/authorities' mount Hyrax::Engine, at: '/' resources :welcome, only: 'index' - root 'hyrax/homepage#index' + curation_concerns_basic_routes concern :exportable, Blacklight::Routes::Exportable.new