Skip to content

Restore MIT Press carousel #10660

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

Merged

Conversation

jimchamp
Copy link
Collaborator

@jimchamp jimchamp commented Apr 3, 2025

Closes #10659

Restores Authors Alliance / MIT Press carousel by adding sorting criteria. Without a value for sorts, the /advancedsearch.php request ended with sort[]=. Such requests resulted in 400s.

All other homepage custom_ia_carousels use ["lending___last_browse desc"] as the sorts value. Adding the same to the MIT Press carousel fixed the issue. I'm not sure if this is exactly how we want to sort these books --- reviewers should feel free to suggest another way if they are so moved.

Technical

Testing

Screenshot

Screenshot 2025-04-03 144824
Screenshot from testing environment

Stakeholders

@jimchamp jimchamp marked this pull request as ready for review April 3, 2025 21:56
@jimchamp jimchamp changed the title Add sorts to MIT Press carousel Restore MIT Press carousel Apr 4, 2025
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Seems fine, not testing, low risk.

@cdrini cdrini merged commit 7f605ce into internetarchive:master Apr 7, 2025
4 checks passed
@jimchamp jimchamp deleted the 10659/bug/fix-mit-press-carousel branch April 16, 2025 19:20
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.

Homepage MIT Press/Authors Alliance carousel not rendering
2 participants