wellcomecollection / catalogue-api

:crystal_ball: The API for searching the Wellcome Collection catalogue.
https://developers.wellcomecollection.org
MIT License
3 stars 0 forks source link

[offsiteReq] Update SierraItemUpdater to add availabilitySlots for DeepStore items #787

Open agnesgaroux opened 1 month ago

agnesgaroux commented 1 month ago

Pull in the item's location code from Sierra when we get its access conditions here then use it in getAvailableDates to figure out whether it's DeepStore (harop) or onsite (any other location code)

If it's DeepStore, fetch the venue from content-api and apply correct LeadTimeInDays

❓I don't think the location code should be part of the DisplayAccessCondition since it's not something we want to display on the work page. We could include it and let wc.org ignore it, or refactor updateItems so that it handles items one by one which I believe would keep things are bit cleaner

-> there will be some slight complication around the available dates after the first

agnesgaroux commented 1 month ago

Rules for DeepStore leadTimeInDays

The logic as I understand it is:

If I make a request on Monday 3rd June:

That's assuming, TBC, that:

agnesgaroux commented 1 month ago

Email sent to LE&E to confirm the above points

pollecuttn commented 1 month ago

As well as public holidays there's also the longer Christmas closure, which changes every year and is put into the library opening times by Editorial.