Skip to content

Commit

Permalink
Merge pull request #58 from odissei-data/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
FjodorvRijsselberg authored Apr 15, 2024
2 parents fb4bad1 + f12406c commit b41239a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/flows/dataset_workflows/liss_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from queries import DIST_DATE_QUERY
from tasks.base_tasks import dataverse_mapper, \
dataverse_import, update_publication_date, get_doi_from_dv_json, \
add_workflow_versioning_url
add_workflow_versioning_url, enrich_metadata
from utils import is_lower_level_liss_study, generate_flow_run_name, \
failed_ingestion_hook

Expand Down Expand Up @@ -45,6 +45,10 @@ def liss_metadata_ingestion(json_metadata, version, settings_dict, file_name):
if not mapped_metadata:
return Failed(message='Unable to store workflow version.')

mapped_metadata = enrich_metadata(mapped_metadata, 'elsst/en')
if not mapped_metadata:
return Failed(message='Unable to enrich metadata using ELSST.')

import_response = dataverse_import(mapped_metadata, settings_dict, doi)
if not import_response:
return Failed(message='Unable to import dataset into Dataverse')
Expand Down

0 comments on commit b41239a

Please sign in to comment.