pulibrary / dpul

Princeton's digital collections: Digital PUL
https://dpul.princeton.edu/
Apache License 2.0
15 stars 0 forks source link

Recent additions should sort by date added #1492

Open hackartisan opened 7 months ago

hackartisan commented 7 months ago

Summary

The recent additions widget shows the 10 most recently updated items. It would be more engaging if it showed the most recently added items, and make more sense given the heading of the widget.

It looks like we could do this by using system_created_at_dtsi instead of system_updated_at_dtsi

At one point it sorted by timestamp, and then we changed it to sort by updated, see https://github.com/pulibrary/dpul/issues/1492

Impact

Please include hard deadlines, if the exhibit is part of an event, the issue is stopping work, etc.

Priority recommendation

Sudden Priority Justification

Required if "asap" or "within the next 3 weeks" is checked. Add "Sudden Priority" and "Maintenance/Research labels

Expected behaviour

I expect Recent Additions to populate the page with the most recent additions to the collection.

Actual behaviour

It seems to just be cycling through a few different sets of material

Steps to reproduce behaviour

Screenshots

In this screenshot it's populated with items from our Hindu Nationalist Collection, but that is a collection that went live in mid-2022.

collection page: https://dpul.princeton.edu/sae One record shown here: https://dpul.princeton.edu/sae/catalog/ddce79dd-c43c-474d-8215-a91a98aeceeb/raw

image (2)