Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier override for Arclight::BookmarkComponent #1560

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kirkkwang
Copy link

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

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`
@@ -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 %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<%= render (blacklight_config.index.document_actions.arclight_bookmark_control.component || Arclight::BookmarkComponent).new document: document, action: bookmark_config %>
<%= render (presenter&.view_config&.document_actions&.arclight_bookmark_control.component || Arclight::BookmarkComponent).new document: document, action: bookmark_config %>

I think the presenter should have the appropriate configuration context, maybe?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @cbeer, I don't seem to be finding what I'm looking for using the presenter view_config

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants