-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sort by options for collection items are only for date uploaded/modified (preferred dates: Publication, Creation) #650
Comments
recommend talking this through with Kirk, Kait or Shana before digging in to it. also be aware that creation and publication have 2 versions and the "machine readable" one is the only one you can sort by |
This commit adds collection search options for sorting by ascending and descending publication dates and ascending and descending creation dates to the dropdown menu. Ref: - #650
SoftServ QA Observations Does not appear to be changing order based on publication or creation date Screen.Recording.2024-08-14.at.1.09.11.PM.mov |
@sjproctor I think i know what's wrong, we need to call |
This commit addresses a bug in the dropdown menu search options for created and published. The options were not behaving as expected due to the date being a ActiveTriples::Relation rather than a string. The changes ensure all dates are converted into an array then the first date is extracted. Ref: - #650
This commit adds a conditional to account for works such as attachements that don't have issue or created dates. Ref: - #650
QA RESULTS: ⚠ Requires Reviewtested on STAGING
|
@jillpe Looks like this one has been deployed to production and works. Before I move it to the end, I just want to make sure it's not sitting in Client QA for another reason? |
Summary
reference: https://docs.google.com/spreadsheets/d/1XbfCosfI_P3N2JVYldD28p6Ca6AxNRbAOKbOcp1GRgo/edit?gid=0#gid=0
Example link
Example screenshot
This is relevant to an IR but is not helpful to sorting our results by metadata fields (date of publication etc.) The sort by title option doesn't seem to make any difference in the display of collection items? We need to be able to sort by Solr fields or something similar
Acceptance Criteria
This change does require a reindex to take effect.
Testing Instructions
Sort by relevance
dropdown menudate published
ascendingdate published
descendingdate created
ascendingdate created
descendingThe text was updated successfully, but these errors were encountered: