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

Refine search from within collection / object view #732

Open
ctgraham opened this issue Aug 12, 2024 · 4 comments
Open

Refine search from within collection / object view #732

ctgraham opened this issue Aug 12, 2024 · 4 comments

Comments

@ctgraham
Copy link

Is your feature request related to a problem? Please describe.

Archives staff report that they would like patrons to be able to search within a collection view. Currently, when at the collection / object page rendering, the only opportunity to refine the search is the "Back to Search" button.

Describe the solution you'd like

Augment the "Back to Search" with a textbox to refine the search on the page itself.

Describe alternatives you've considered

Archives staff prefer to instruct patrons to "CTRL+F" to find on page, but this is incompatible with dynamic load/scrolling.

Additional context

This will not preserve the search history, so the meaning of "Back to Search" would change here.

Tagging: @rzhang152

@helrond
Copy link
Member

helrond commented Aug 15, 2024

Definitely open to hearing solutions here, but wanted to provide a bit of context as to why this functionality currently does not exist in DIMES:

  • from a UI perspective, there are some pretty significant challenges in having a search that is global in addition to a search that is scoped to a collection. What do the results pages look like (they usually need to be different)? How does a user know which search they're in? Can you easily get from one context to another?
  • Related, as search in DIMES is configured now, search within a collection would not be very helpful because it would only return you one result, which would get you back into the same page you searched from. So the search results would have to be different.
  • The addition of the minimap is an attempt to address the use case of needing to find a known item in a collection.

@ctgraham
Copy link
Author

I acknowledge the complexity of a global search with a scoped search. I think, though, there can be a balance here.

Consider a search for "Maurine Greenwald", which finds:
https://dimes.rockarch.org/objects/Gxb4UPM2YoB4ybdQRrZNVb?category=&limit=40&query=maurine+greenwald

If I then notice that the Russel Sage Foundation had an interest in the Pittsburgh Survey, a new search highlights this in the current record, but also provides minimap hits to related records:
https://dimes.rockarch.org/objects/Gxb4UPM2YoB4ybdQRrZNVb?category=&limit=40&query=pittsburgh+survey

If "Back to Search" is rebranded "Search Everywhere", you can:

  • refine the search locally
  • perform a new search globally
  • use the back and forward buttons to view search history

image

@helrond
Copy link
Member

helrond commented Aug 15, 2024

Ah interesting - I see what you're saying! There are a couple of things we'd need to figure out (like what happens to existing filter parameters when searching within a collection, and accessibility around having a search input with two different submit buttons) and this is something we'll definitely want to test with users but I agree this has promise.

rzhang152 added a commit to ulsdevteam/dimes that referenced this issue Sep 25, 2024
@rzhang152
Copy link
Contributor

Hi Hillel, just committed the updates regarding this item. Pls review and let me know if any q. Thanks,

rzhang152 added a commit to ulsdevteam/dimes that referenced this issue Sep 25, 2024
rzhang152 added a commit to ulsdevteam/dimes that referenced this issue Oct 1, 2024
…new env variable to make search refinement option configurable per code input
rzhang152 added a commit to ulsdevteam/dimes that referenced this issue Oct 10, 2024
rzhang152 added a commit to ulsdevteam/dimes that referenced this issue Oct 10, 2024
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

No branches or pull requests

3 participants