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

Expanded shelfkeys to include additional information #679

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cbeer
Copy link
Member

@cbeer cbeer commented Aug 8, 2022

This incorporates some of the additional shelfkey sorting data from Searchworks:
https://github.com/sul-dlss/SearchWorks/blob/master/app/models/nearby_on_shelf.rb#L136-L160

By doing so, different documents with the same shelfkey will have a consistent sort order for pagination and we can ensure the user can see + paginate through the whole list of shelfkeys (see e.g. https://searchworks.stanford.edu/view/5129692 and other microforms for the worst case (65k identical call numbers))

TODO:

  • We should add more tests for shelfkeys, because this really should have broken some of them
  • Validate that adding data to the end of a shelfkey won't disrupt anything
  • Validate that reverse shelfkeys actually are just the reverse the shelfkey

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.

1 participant