Open Baeist opened 11 months ago
Agreement to change metadata updated by and metdata updated date into one field. Will also contain old values and new values to shwo what the update did.
File format should be a list on our side also. Same with restricted access.
We need to figure out which data fields "does what" and where each gets potentially filled. Fields should preferably be recognizable and contain same type of data across apps. Example file_format on Ndrive uses small letters and all caps at NT api.
Example from Ndrive: { "audited": "", "audited_by": "", "audited_date": "", "institution": "NHMD", "collection": "Vascular plants", "barcode": "", "specimen_pid": "", "date_asset_created": "", "date_asset_deleted": "", "date_asset_updated": [], "date_metadata_created": "2023-11-03T16:03:13+01:00", "date_metadata_updated": [ ], "asset_created_by": "", "asset_deleted_by": "", "asset_updated_by": [], "metadata_created_by": "create_metadata_from_template function", "metadata_updated_by": [ ], "digitiser": "Rebekka Lesske", "restricted_access": "", "external_publisher": [], "file_format": "tif", "payload_type": "", "asset_subject": "", "funding": "", "asset_guid": "", "asset_pid": "", "multispecimen": "", "other_multispecimen": [], "tags": [], "asset_taken_date": "2023-11-03T14:26:12+02:00", "original_parent": "", "parent": "", "pipeline_name": "PIPEHERB0001", "preparation_type": "", "workstation_name": "WORKHERB0001", "original_specify_media_name": "", "specify_attachment_id": "", "pushed_to_specify_date": "", "related_media": [], "status": "", "asset_locked": "", "storage_location": "", "taxon_name": "", "type_status": "", "geographic_region": "", "ocr_text": "", "specimen_storage_location": "", "CREATED_BY": "", "media_guid": "7e7-b-03-0e-1a-0c-0-001-00-000-01f154-00000" } vs reality of creating an asset with api: { "asset_guid": "33", "asset_pid": "", "asset_locked": false, "asset_taken_date": "2023-11-03T14:26:12+02:00", "audited": false, "collection": "lcoll", "digitizer": "Rebekka_Leske", "file_formats": ["TIF"], "funding": "", "institution": "ld", "multi_specimen": false, "parent_guid": "", "payload_type": "", "pipeline": "lpipeline", "restricted_access": [], "specimen_barcodes": [], "status": "BEING_PROCESSED", "subject": "", "tags": { "ltag": "ld" }, "workstation": "lwork" }