wellcomecollection / platform

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

Ingest uncatalogued images into Tandem Vault #1016

Closed jtweed closed 7 years ago

jtweed commented 7 years ago

Preparatory work:

Upload step:

kenoir commented 7 years ago

See https://github.com/wellcometrust/platform/issues/1058 for WIA criteria - needs mapping for year to TV collection ?? image_award_year ?? in miro_data.

@jtweed to provide collection mapping for WIA years.

kenoir commented 7 years ago

Talk to @alexwlchan about:

Code for adding the appropriate Miro metadata to an asset

jtweed commented 7 years ago
year,collection
1997,110075
1998,110076
1999,110077
2001,110078
2002,110079
2005,110080
2006,110081
2008,110082
2009,110083
2011,110084
2012,110085
2014,110086
2015,110087
2016,110088
2017,110089
kenoir commented 7 years ago

@alexwlchan adds:

import requests

resp = requests.put(
    'https://wellcome.tandemvault.com/api/v1/assets/2965980',
    params={
        'api_key': '',
        'asset[description]': 'First description by Alex',
        'asset[usage_terms]': 'These are my usage terms'
    }
)
resp.text
resp
kenoir commented 7 years ago

Two things remain:

kenoir commented 7 years ago

Calling this one done.