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

Improve searching by Date Created field #474

Closed
DaltonAlves opened this issue Jan 8, 2024 · 3 comments · Fixed by #536
Closed

Improve searching by Date Created field #474

DaltonAlves opened this issue Jan 8, 2024 · 3 comments · Fixed by #536
Assignees

Comments

@DaltonAlves
Copy link

  • Allow for sorting by date created
    • Sort by: Date (oldest), Date (Newest)
    • Use date created field
      • Not all items will have date created (not a required field)
    • Date Created Facet list

Is this possible within Hyrax? Does it require blacklight search?

**User Stories:
As a department administrator, I want to facet to the relevant GW Unit and sort by date (newest) to identify the newest items (newest = date of creation, NOT date of upload in GWSS)

As a researcher, I want to sort by date (oldest) within a search result.

As a researcher, I want to facet my search by a specific date year.

As a researcher, I want to facet my search by a date range.

@kilahimm
Copy link
Member

Also need to investigate how date field is indexed, see recent ETD loads and why the count when facetted by date seems low.

@alepbloyd alepbloyd self-assigned this Feb 27, 2024
@kerchner
Copy link
Member

kerchner commented Feb 27, 2024

As per recent discussion, suggested steps (apologies for any duplication with other tickets):

  • pull current values of date_created from production Works so that we can identify current patterns
  • create a mapping (to implement as a function) that takes a free-text date_created value an returns a sortable Date object - perhaps as a non-visible metadata field on the Work, which can then be used for sorting

@kerchner
Copy link
Member

kerchner commented Feb 28, 2024

When looking into this a couple of weeks ago, I came across this gem that I thought would work:
https://github.com/projectblacklight/blacklight_range_limit

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 a pull request may close this issue.

4 participants