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

[3100-highlight] When no highlighted field is available fall back into the field value #3103

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

christinach
Copy link
Member

closes #3100

…o the field value.

Co-authored-by: Jane Sandberg <[email protected]>
Co-authored-by: Vickie Karasic <[email protected]>
@christinach christinach marked this pull request as ready for review November 8, 2023 21:53
retrieve_simple
end
)
if field_config.highlight
Copy link
Member

@tpendragon tpendragon Nov 8, 2023

Choose a reason for hiding this comment

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

It's funny, I almost wish that the retrieve_ methods just returned nil if accessor or values or whatever wasn't set, so we could do retrieve_highlight || retrieve_using_accessor || retrieve_values || retrieve_simple, but that's probably too big for here.

@tpendragon tpendragon merged commit 7ba90c4 into projectblacklight:main Nov 8, 2023
14 checks passed
tpendragon added a commit that referenced this pull request Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants