Skip to content

Commit

Permalink
feat: add computational tool metadata compatibility fields
Browse files Browse the repository at this point in the history
  • Loading branch information
candicecz committed Feb 5, 2025
1 parent 5f59cb4 commit be729c3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/components/metadata-completeness-badge/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,38 @@ export const getMetadataListByType = (type: FormattedResource['@type']) => {
'hasDownload',
]);
return { required, recommended };
} else if (type === 'ComputationalTool') {
const required = [
'date',
'includedInDataCatalog',
'funding',
'author',
'description',
'name',
];
const recommended = [
'citedBy',
'doi',
'topicCategory',
'codeRepository',
'programmingLanguage',
'applicationCategory',
'applicationSubCategory',
'input',
'output',
'featureList',
'operatingSystem',
'softwareRequirements',
'softwareVersion',
'citation',
'conditionsOfAccess',
'dateModified',
'interactionStatistic',
'license',
'identifier',
'url',
];
return { required, recommended };
}

return { required: REQUIRED_FIELDS, recommended: RECOMMENDED_FIELDS };
Expand Down

0 comments on commit be729c3

Please sign in to comment.