Skip to content

Commit

Permalink
Merge pull request #2 from IUBLibTech/ui-updates
Browse files Browse the repository at this point in the history
IULRDC-3 Home page display
  • Loading branch information
aploshay authored Aug 23, 2024
2 parents f5008f8 + 0c510dd commit 63a9801
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
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
7 changes: 7 additions & 0 deletions app/views/catalog/_thumbnail_list_data_set.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<% if (tag = document_presenter(document)&.thumbnail&.thumbnail_tag) %>
<div class="col-md-3">
<div class="list-thumbnail">
<%= tag %>
</div>
</div>
<% end %>
3 changes: 2 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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

Expand Down

0 comments on commit 63a9801

Please sign in to comment.