wellcomecollection / platform

Wellcome Collection Digital Platform
https://developers.wellcomecollection.org/
MIT License
48 stars 10 forks source link

Yield b numbers for digitised works from a snapshot #4820

Open tomcrane opened 3 years ago

tomcrane commented 3 years ago

Given a snapshot (see #4815), generate an enumerable sequence of b numbers for those works that are digitised.

from works where work has .items -> locations -> locationType.id == "iiif-presentation" ...yield work.identifiers...value where identifierType.id == "sierra-system-number"

These can then populate IIIF-Builder's workflow jobs - as if Goobi had told it about them all.

tomcrane commented 3 years ago

Comment from Alex - https://github.com/wellcomecollection/platform/issues/4815#issuecomment-701435704

This can be simple, just deserialise each line into a Work, and interrogate it with Linq.