You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preserve existing DatasetDOI and auto-sync title to DOI metadata #256
During the publish workflow (admin.ts:3436), we unconditionally replace DatasetDOI with the NEMAR concept DOI:
datasetDesc.DatasetDOI=conceptDoi;
If a dataset was imported from another source (e.g., OpenNeuro, Zenodo) and already has a DatasetDOI, that original DOI is lost. It should be preserved as a related identifier.
2. DOI title drifts when BIDS Name changes
When dataset_description.json is updated and LLM enrichment runs (webhooks.ts:666-692), we sync the BIDS Name to:
D1 datasets.name
GitHub repo description
But we do NOT update the DOI metadata. The DOI title stays as whatever it was at minting time.
Proposed Solution
Preserve existing DatasetDOI
Before overwriting DatasetDOI in the publish workflow:
Check if DatasetDOI already exists and differs from the NEMAR concept DOI
If it exists, append it to SourceDatasets (if not already present):
Activity
Preserve DatasetDOI, sync title, add uploader contributor
Preserve DatasetDOI, sync title, add uploader contributor (#258)