From 01d21ea19ab1e4328ecc76a9b4e4a1d89c6d5640 Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Sat, 5 Oct 2024 13:42:07 -0700 Subject: [PATCH] Easier override for `Arclight::BookmarkComponent` This commit will make it easier to override the `Arclight::BookmarkComponent` where all you would have to do is add it to the `CatalogController`. Other components should reference that and have a fallback to the original `Arclight::BookmarkComponent` --- app/components/arclight/document_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/arclight/document_component.html.erb b/app/components/arclight/document_component.html.erb index 55d47ead3..2ded9b550 100644 --- a/app/components/arclight/document_component.html.erb +++ b/app/components/arclight/document_component.html.erb @@ -11,7 +11,7 @@ <%= document.normalized_title %> <% end %> <%= render 'arclight/requests', document: document %> - <%= render Arclight::BookmarkComponent.new document: document, action: bookmark_config %> + <%= render (blacklight_config.index.document_actions.arclight_bookmark_control.component || Arclight::BookmarkComponent).new document: document, action: bookmark_config %> <%= toggle_sidebar %> <%= online_filter %>