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

Index dates for Ephemera Folders #6521

Open
4 tasks
tpendragon opened this issue Oct 1, 2024 · 0 comments
Open
4 tasks

Index dates for Ephemera Folders #6521

tpendragon opened this issue Oct 1, 2024 · 0 comments

Comments

@tpendragon
Copy link
Contributor

tpendragon commented Oct 1, 2024

Acceptance Criteria

  • There's a years field in the solr document that has all of the years in an array that should match.
  • There's a display_date field in the solr document that is what will render in the record page.
  • There's an oldest_year field in the solr document that is the oldest year in the range.
  • There's a newest_year field in the solr document that is the newest year in the range.

Record A: "1920 - 1960"
Record B: "1930 - 1945"

If we use the oldest date for oldest to newest, and the newest date for newest to oldest, we get this:

Sort date ascending: Record A, Record B
Sort date descending: Record A, Record B

Implementation Note

The suffix isn't defined above, part of the ticket is figuring out which suffixes are appropriate for each field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant