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

Persistent highlighting of search terms not working #177

Open
Tracked by #134
KatharineV opened this issue Apr 12, 2024 · 10 comments
Open
Tracked by #134

Persistent highlighting of search terms not working #177

KatharineV opened this issue Apr 12, 2024 · 10 comments
Labels
bug something isn't working Knapsack Upgrade M3 Milestone 3 needs rework issue needs additional work

Comments

@KatharineV
Copy link
Collaborator

Testing the Knapsack upgrade, my highlighted search terms do not stay highlighted when I open a work from the catalog search.

Here's the search where the term is highlighted and shows in a snippet.

Image

Here is the work page that opened with a URL referencing the parent query, but the UV doesn't show my highlighted keyword in the document automatically, which is the behavior I expect.

https://adl.b2.adventistdigitallibrary.org/concern/published_works/22266468_cardinal_1986?parent_query=swimming
Image

@KatharineV KatharineV added bug something isn't working Knapsack Upgrade labels Apr 12, 2024
@ShanaLMoore
Copy link

ShanaLMoore commented Apr 13, 2024

related PRs from Adventist's original implementation:

notch8/adventist-dl#471
notch8/adventist-dl#476

This issue may be related to this comment

Confirming the UV search when you type it in manually: (locally)

Image

But when you search for the word in the catalog controller and click into the work, it does not auto perform the search in the UV (aka persist) even though the search term is in the url: 🤔

Image

Image

@ShanaLMoore
Copy link

@ShanaLMoore
Copy link

this looks to be resolved, possibly be sorting out the incorrect versioning issue. no code changes have been made

https://share.zight.com/NQuALWrY

@ShanaLMoore ShanaLMoore self-assigned this Apr 15, 2024
@ShanaLMoore
Copy link

Pass: ✅

STAGING search for Minute. Click into work and that word is highlighted

Image

@KatharineV
Copy link
Collaborator Author

On ADL prod, the keyword highlights in yellow, but it is not persistent into the work. See screenshots below for the search where it is highlighted and the work page with parent_query=oregon in the URL, but no highlighting.

Prod

Image

Image

I tested on a staging site and the behavior was similar but different.

Keyword highlights in the search and appears in the work URL, but it doesn't show up in the UV at all. This is different from prod, where at least the UV searchbar has the word persistently (without highlighting or showing in context, which would be the expected behavior).

Staging

Image

Image

@ShanaLMoore
Copy link

ShanaLMoore commented Apr 18, 2024

@KatharineV For staging, this is likely related to the ssl_configured not being enabled again for the staging instance.

After setting this tenant's ssl configuration, I searched for the word Bible and this is the result:

Image

To clarify, when you say it's not highlighted, do you mean you shouldn't have to click the blue icons that shows what pages the word was found on? This is the behavior I see in prod as well.

@KatharineV
Copy link
Collaborator Author

@ShanaLMoore re: your question, if I recall the original functionality correctly, the persistent highlighting used to open the work page with the first highlighted instance open in the viewer. The user did not have to click "next result" to view the first instance of the search term.

@ShanaLMoore ShanaLMoore added the needs rework issue needs additional work label Apr 18, 2024
@ShanaLMoore ShanaLMoore removed their assignment Apr 18, 2024
@ShanaLMoore
Copy link

Also noting that a match is being found on page 1 when there isn't really an instance of the word FLOOR there

Image

@ShanaLMoore
Copy link

ShanaLMoore commented Apr 23, 2024

disregard my last comment. thumbnails aren't supposed to be displayed in the UV. I must've done something abnormal in my example.

However I can still confirm that when you search, the user is required to click "next result" to find the first match. The user should be taken to the first match automatically.

@kirkkwang kirkkwang transferred this issue from notch8/adventist-dl May 10, 2024
@jillpe jillpe moved this from In Development to Ready for Development in Adventist Knapsack May 15, 2024
@ShanaLMoore ShanaLMoore added the M3 Milestone 3 label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working Knapsack Upgrade M3 Milestone 3 needs rework issue needs additional work
Projects
Status: No status
Status: In Development
Development

No branches or pull requests

3 participants