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

🐛 Handle blank query and snippets #370

Closed
wants to merge 1 commit into from

Conversation

kirkkwang
Copy link
Contributor

Story

This commit will address blank catalog searches and how it interacts with snippets. Prior, when the user submitted a blank catalog search, the entire indexed text will be returned. This is not desired because if we're looking at a book with a hundred pages, then that's a lot of rendered text. Instead, if we don't have a query string then we will also return.

Expected Behavior Before Changes

image

Expected Behavior After Changes

image

This commit will address blank catalog searches and how it interacts
with snippets.  Prior, when the user submitted a blank catalog search,
the entire indexed text will be returned.  This is not desired because
if we're looking at a book with a hundred pages, then that's a lot of
rendered text.  Instead, if we don't have a query string then we will
also return.
@laritakr
Copy link
Contributor

Is it possible to hide the keyword label if there is nothing to show? Or do we always show the labels regardless? That looks a bit odd to me.

@kirkkwang
Copy link
Contributor Author

@laritakr thanks for pointing that out, this led me down a different path and no changes should be needed in IIIF Print now

@kirkkwang kirkkwang closed this Sep 18, 2024
@kirkkwang kirkkwang deleted the handle-blank-query-and-snippets branch September 19, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants