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

Add way to get fulltext from media #2117

Merged
merged 3 commits into from
Nov 30, 2023
Merged

Add way to get fulltext from media #2117

merged 3 commits into from
Nov 30, 2023

Conversation

jimsafley
Copy link
Member

See #2116

@jimsafley jimsafley requested a review from zerocrates November 22, 2023 19:22
if ($renderer instanceof FulltextSearchableInterface) {
$mediaText = $renderer->getFulltextText($this->getRepresentation($resource));
}
return sprintf('%s %s', parent::getFulltextText($resource), $mediaText);
Copy link
Member

Choose a reason for hiding this comment

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

This is really minor but: this introduces an extra space at the end of the fulltext when the renderer isn't fulltext-searchable or has no text.

@zerocrates zerocrates merged commit 18fdc91 into develop Nov 30, 2023
5 checks passed
@zerocrates zerocrates deleted the media-get-fulltext branch November 30, 2023 18:38
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