Skip to content

Commit

Permalink
Configure embed components for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 27, 2024
1 parent 330c578 commit b818745
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/test_app_templates/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ class CatalogController < ApplicationController
# config.view.gallery.classes = 'row-cols-2 row-cols-md-3'
config.view.masonry(document_component: Blacklight::Gallery::DocumentComponent, icon: Blacklight::Gallery::Icons::MasonryComponent)
config.view.slideshow(document_component: Blacklight::Gallery::SlideshowComponent, icon: Blacklight::Gallery::Icons::SlideshowComponent)

config.view.embed(if: false,
document_component: Spotlight::SolrDocumentLegacyEmbedComponent,
embed_component: Blacklight::Gallery::OpenseadragonEmbedComponent)

config.show.tile_source_field = :content_metadata_image_iiif_info_ssm
config.show.partials.insert(1, :openseadragon)

config.show.embed_component = Blacklight::Gallery::OpenseadragonEmbedComponent

## Default parameters to send to solr for all search-like requests. See also SolrHelper#solr_search_params
config.default_solr_params = {
qt: 'search',
Expand Down

0 comments on commit b818745

Please sign in to comment.