The ARCHE import is deactivated by default. To enable it, add the following dictionary to instance/production.py:
ARCHE = { 'id': 1390136, # ID of the Top Collection (acdh:TopCollection) 'collection_ids': [1390141], # ID of different collections containing metadata.json files (acdh:Collection) 'base_url': 'https://arche-curation.acdh-dev.oeaw.ac.at/', # Base URL to get data from 'thumbnail_url': 'https://arche-thumbnails.acdh.oeaw.ac.at/' # URL of ARCHE thumbnail service, no changes needed}
If the feature is enabled, every user can see an additional button in Admin -> Data, called ARCHE, which lead to an information page of data provided at instance/production.py.
If the user belongs to the manager user group, a button called Fetch is displayed. Pressing Fetch will fetch data from ARCHE. This will check if the data has already been imported into OpenAtlas (based on the artifact). If an entry is not present, a summary table is displayed with the graffiti that will be imported.
By pressing the button Import ARCHE data the data will be imported and if necessary new types, persons, etc. will be created.
All data is gathered from [IMAGE_NAME]_metadata.json:
'image_id': image_id (ARCHE) 'image_link': image_url (ARCHE) 'image_link_thumbnail': thumbnail_url (ARCHE) 'creator': EXIF:Artist 'latitude': EXIF:GPSLatitude 'longitude': EXIF:GPSLongitude 'description': XMP:Description 'name': IPTC:ObjectName 'license': EXIF:Copyright 'date': EXIF:CreateDate
Data provided from production.py:
ARCHE = { 'id': 1390136, 'collection_ids': [1390141], 'base_url': 'https://arche-curation.acdh-dev.oeaw.ac.at/', 'thumbnail_url': 'https://arche-thumbnails.acdh.oeaw.ac.at/'}