From 42ea923b9b0575f6108a6783c271f1ace3f439cf Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Fri, 27 Sep 2024 09:42:04 -0700 Subject: [PATCH] Don't populate the embed partial if an embed component is defined. --- app/models/spotlight/blacklight_configuration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spotlight/blacklight_configuration.rb b/app/models/spotlight/blacklight_configuration.rb index 705fc52c2..f43357af1 100644 --- a/app/models/spotlight/blacklight_configuration.rb +++ b/app/models/spotlight/blacklight_configuration.rb @@ -123,7 +123,7 @@ def blacklight_config config.view.embed! # This is blacklight-gallery's openseadragon partial unless config.view.embed.document_component - config.view.embed.partials ||= ['openseadragon'] + config.view.embed.partials ||= ['openseadragon'] unless config.view.embed.embed_component config.view.embed.document_component = Spotlight::SolrDocumentLegacyEmbedComponent end config.view.embed.if = false