Open jillpe opened 3 months ago
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
SoftServ QA Observations
Does not appear to be changing order based on publication or creation date
https://github.com/user-attachments/assets/bca85bd4-f79c-48ab-b5ce-6f7d2093b0a0
@sjproctor I think i know what's wrong, we need to call #first
on the dates because they are actually multiples.
https://github.com/scientist-softserv/utk-hyku/blob/main/app/indexers/collection_indexer.rb#L16-L17
tested on STAGING
Kirk uploaded a new m3 profile to add publication_date to the objects. Now the sort is working as expected.
@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
⚠️ NOTE ⚠️
This change does require a reindex to take effect.
Testing Instructions
Sort by relevance
dropdown menudate published
ascendingdate published
descendingdate created
ascendingdate created
descending