Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Show thumbnails in search results.
Browse files Browse the repository at this point in the history
Closes #716.
  • Loading branch information
tpendragon committed Sep 13, 2016
1 parent 8c0ae9e commit bb686f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions app/assets/stylesheets/components/catalog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ dl.document-metadata {
padding-left: 0;
}
}
#documents .document {
> .btn-group {
float: right;
}
> .document-metadata {
width: 60%;
}
> .document-thumbnail {
padding-left: 0;
}
}
2 changes: 1 addition & 1 deletion app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.search_config

# config.index.thumbnail_field = 'thumbnail_path_ss'
config.index.thumbnail_method = :iiif_thumbnail_path
config.index.partials.delete(:thumbnail) # we render this inside _index_default.html.erb
# config.index.partials.delete(:thumbnail) # we render this inside _index_default.html.erb
config.index.partials += [:action_menu]

# solr field configuration for document/show views
Expand Down

0 comments on commit bb686f9

Please sign in to comment.