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

🐛 Sort by: Published Date #814

Merged
merged 7 commits into from
Sep 23, 2024
Merged

🐛 Sort by: Published Date #814

merged 7 commits into from
Sep 23, 2024

Conversation

sjproctor
Copy link
Contributor

Story

The "Sort by Published Date" (both ascending and descending) feature in the catalog search and in collections does not properly sort based on the "Publication date" metadata field.

Ref:

Expected Behavior Before Changes

Title, author, and publication date sort fields did not sort properly on the catalog search results page or the collection show page.

Expected Behavior After Changes

The user is able to sort by title, author, and publication date on the catalog search results page as well as the collection show page.

Screenshots / Video

Screen.Recording.2024-09-17.at.3.14.37.PM.mov

Notes

This updated required an update of the submodule as well as reindexing local works and collections.

This commit pulls in an update to Hyku that fixes a bug when sorting by
title, author, and created date (published date). The Hyku indexing
moves from `CollectionResource` to `CollectionResourceIndexer`.

Ref:
- #185
This commit updates the submodule to the latest version of Hyku which
removes HykuIndexing mix in from the CollectionResource model and adds
HykuIndexing mix in to CollectionResourceIndexer to fix a bug when
sorting the catalog.

Hyku PR: samvera/hyku#2327

Ref:
- #185
Pulls in the latest changes from the hyrax-webapp submodule to address
a failing spec.

Ref:
- #185
Copy link
Contributor

@kirkkwang kirkkwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking if it's currently working but I still feel it's weird we're sorting by a multiple field vs a single. But hey, if it works then it works.

@ShanaLMoore ShanaLMoore marked this pull request as draft September 23, 2024 16:07
This commit improves communication of intent by removing the multiple
indicator from the sorting configs since the sort happens on a single
item from each field.

Ref:
- #185
@sjproctor sjproctor marked this pull request as ready for review September 23, 2024 17:16
@sjproctor sjproctor merged commit f8ad7ff into main Sep 23, 2024
6 checks passed
@sjproctor sjproctor deleted the fix-sort-by-attributes branch September 23, 2024 18:23
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.

2 participants