Changeset View
Changeset View
Standalone View
Standalone View
codemeta_generation.js
Show All 30 Lines | const directCodemetaFields = [ | ||||
'codeRepository', | 'codeRepository', | ||||
'contIntegration', | 'contIntegration', | ||||
'dateCreated', | 'dateCreated', | ||||
'datePublished', | 'datePublished', | ||||
'dateModified', | 'dateModified', | ||||
'issueTracker', | 'issueTracker', | ||||
'name', | 'name', | ||||
'version', | 'version', | ||||
'identifier', | |||||
'description', | |||||
'applicationCategory', | |||||
//keywords TODO:keywords array | |||||
'releaseNotes', | |||||
'funding', | |||||
moranegg: you can add `operatingSystem` if you fix line 86 :-) | |||||
'runtimePlatform', | |||||
//softwareRequiremnts | |||||
'developmentStatus', | |||||
//relatedLink | |||||
'programmingLanguage', | |||||
'isPartOf', | |||||
//'referencePublication' | |||||
// "@type": "ScholarlyArticle", | |||||
// "idendifier": "https://doi.org/xx.xxxx/xxxx.xxxx.xxxx", | |||||
// "name": "title of publication" | |||||
]; | ]; | ||||
// Names of codemeta properties with a matching HTML field name, | // Names of codemeta properties with a matching HTML field name, | ||||
// in a Person object | // in a Person object | ||||
const directPersonCodemetaFields = [ | const directPersonCodemetaFields = [ | ||||
'givenName', | 'givenName', | ||||
'familyName', | 'familyName', | ||||
'email', | 'email', | ||||
'affiliation' | |||||
]; | ]; | ||||
function generatePerson(idPrefix) { | function generatePerson(idPrefix) { | ||||
var doc = { | var doc = { | ||||
"@type": "Person", | "@type": "Person", | ||||
"@id": getIfSet(`#${idPrefix}_id`), | "@id": getIfSet(`#${idPrefix}_id`), | ||||
} | } | ||||
directPersonCodemetaFields.forEach(function (item, index) { | directPersonCodemetaFields.forEach(function (item, index) { | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |
you can add operatingSystem if you fix line 86 :-)