diff --git a/codemeta_generation.js b/codemeta_generation.js --- a/codemeta_generation.js +++ b/codemeta_generation.js @@ -36,6 +36,24 @@ 'issueTracker', 'name', 'version', + 'identifier', + 'description', + 'applicationCategory', + //keywords TODO:keywords array + 'releaseNotes', + 'funding', + 'runtimePlatform', + //softwareRequiremnts, + 'operatingSystem', + '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, @@ -44,6 +62,7 @@ 'givenName', 'familyName', 'email', + 'affiliation' ]; function generatePerson(idPrefix) { diff --git a/dynamic_form.js b/dynamic_form.js --- a/dynamic_form.js +++ b/dynamic_form.js @@ -35,6 +35,11 @@

+

+ + +

`; return fieldset; diff --git a/fields_data.js b/fields_data.js --- a/fields_data.js +++ b/fields_data.js @@ -10,6 +10,7 @@ var SPDX_LICENSES = null; var SPDX_LICENSE_IDS = null; + function initSpdx() { var xhr = new XMLHttpRequest(); xhr.open('GET', './data/spdx/licenses.json', true); diff --git a/index.html b/index.html --- a/index.html +++ b/index.html @@ -26,10 +26,48 @@

- +

the software title

+ +

+ + +

such as ISBNs, GTIN codes, UUIDs etc.. http://schema.org/identifier
+

+ + +

+ + +

+ +

+ +
+ +

+ +

- + - + +

from SPDX licence list

@@ -86,8 +125,77 @@

+ +

+ +
+ +

+ + + + + + + + +
+ Additional Info +

+ + +

software funded by (e.g. specific grant)
+

+ +

+ + +

+ +

+ + +

+ +

+ + + + +

see www.repostatus.org for details
+

+ +

+ + +

+ +

+ + +

+
+
Authors @@ -115,6 +223,7 @@ onclick="removePerson('contributor');" />
+
diff --git a/style.css b/style.css --- a/style.css +++ b/style.css @@ -5,11 +5,12 @@ * See top-level LICENSE file for more information */ + .person { display: inline-block; } -#fieldsetSoftwareItself, #fieldsetDevelopmentCommunity, #fieldsetCurrentVersion { +#fieldsetSoftwareItself, #fieldsetDevelopmentCommunity, #fieldsetCurrentVersion, #fieldsetAdditionalInfo { display: inline-block; } @@ -18,10 +19,19 @@ min-width: 20em; } +#funding { + /* Funding names are long */ + min-width: 20em; +} + input[type=URL] { /* URLs are longer than the other fields */ min-width: 20em; } +.field-description { + color : rgb(100, 104, 103); + font-size: small; +} #codemetaText { width: 100%; @@ -32,3 +42,8 @@ #errorMessage { color: red; } + +input:invalid { + color: red; +} +