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

[LIBSEARCH-938] Investigate whether CSS can be used to hide "search only" holdings across all bib records #421

Conversation

erinesullivan
Copy link
Contributor

Overview

Without touching Spectrum, we need to figure out a way how to hide all Catalog holdings that have Search only (no full text) while Remove search-only HathiTrust materials is checked. This pull request filters out the incoming holdings when true.

This pull request resolves LIBSEARCH-938.

Anything else?

The Holders component has been simplified, removing the need for preExpandedIds and createId.

ResourceAccessLoading

ResourceAccessLoading was a very simple component, only ever called once in ResourceAccessContainer. The code was copied directly into the container, and the original file was deleted.

ContextProvider

ContextProvider was a class component, and has been converted to a functional component to align with current React practices.

Testing

  • Make sure the PR is consistent in these browsers:
    • Chrome
    • Firefox
    • Safari
    • Edge
  • Run accessibility tests:
    • WAVE
    • ARC Toolkit
    • axe DevTools
  • Make a Catalog search with Remove search-only HathiTrust materials unselected.
    • Do you see any HathiTrust Digital Library holdings that show Search only (no full text)?
    • If you select Remove search-only HathiTrust materials, do you not see any HathiTrust Digital Library holdings that show Search only (no full text)?

@erinesullivan erinesullivan self-assigned this Feb 16, 2024
@erinesullivan erinesullivan merged commit 49230b5 into master Feb 19, 2024
6 checks passed
@erinesullivan erinesullivan deleted the LIBSEARCH-938-investigate-whether-css-can-be-used-to-hide-search-only-holdings-across-all-bib-records branch February 19, 2024 14:13
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.

1 participant