Changeset View
Changeset View
Standalone View
Standalone View
index.html
Show All 22 Lines | <body> | ||||
<form id="inputForm"> | <form id="inputForm"> | ||||
<fieldset id="fieldsetSoftwareItself"> | <fieldset id="fieldsetSoftwareItself"> | ||||
<legend>The software itself</legend> | <legend>The software itself</legend> | ||||
<p title="The name of the software"> | <p title="The name of the software"> | ||||
<label for="name">Name</label> | <label for="name">Name</label> | ||||
<input type="text" name="name" id="name" | <input type="text" name="name" id="name" | ||||
placeholder="My Software" required="true" /> | placeholder="My Software" required="true" /> | ||||
<description>the software title</description> | |||||
</p> | </p> | ||||
<p title="A unique identifier"> | <p title="Unique identifier"> | ||||
<label for="identifier">Unique identifier</label> | <label for="identifier">Unique identifier</label> | ||||
<input type="text" name="identifier" id="identifier" | <input type="text" name="identifier" id="identifier" | ||||
placeholder="?????" /> | placeholder="10.151.xxxxx" /> | ||||
</p> <!-- TODO:define better--> | <description>such as ISBNs, GTIN codes, UUIDs etc.. <a href="http://schema.org/identifier">http://schema.org/identifier</a> </description> | ||||
</p> | |||||
<!-- TODO:define better | |||||
I looked at the schema.org definition of identifier (https://schema.org/identifier), | |||||
it can be text, url or PropertyValue. | |||||
Used as follows in data representation with microdata: | |||||
<div property="identifier" typeof="PropertyValue"> | |||||
<span property="propertyID">DOI</span>: | |||||
<span property="value">10.151.xxxxx</span> | |||||
</div> | |||||
we can use that with identifier-type and identifier-value to have a clearer idea | |||||
of what needs to be in the input. | |||||
--> | |||||
<p title="Type of the software application"> | <p title="Type of the software application"> | ||||
<label for="applicationCategory">Application category</label> | <label for="applicationCategory">Application category</label> | ||||
<input type="text" name="applicationCategory" id="applicationCategory" | <input type="text" name="applicationCategory" id="applicationCategory" | ||||
placeholder="Astronomy" /> | placeholder="Astronomy" /> | ||||
</p> | </p> | ||||
<p title="a brief description of the software"> | <p title="a brief description of the software"> | ||||
Show All 16 Lines | <form id="inputForm"> | ||||
<input type="text" name="datePublished" id="datePublished" | <input type="text" name="datePublished" id="datePublished" | ||||
placeholder="YYYY-MM-DD" pattern="\d{4}-\d{2}-\d{2}" /> | placeholder="YYYY-MM-DD" pattern="\d{4}-\d{2}-\d{2}" /> | ||||
</p> | </p> | ||||
<p> | <p> | ||||
<label for="license">License</label> | <label for="license">License</label> | ||||
<input list="licenses" name="license" id="license"> | <input list="licenses" name="license" id="license"> | ||||
<datalist id="licenses"> | <datalist id="licenses"> | ||||
</datalist> | </datalist> <!-- TODO: insert placeholder --> | ||||
</p> | <description>from <a href="https://spdx.org/license-list">SPDX licence list</a></description> | ||||
</fieldset> | |||||
<fieldset id="fieldsetDevelopmentCommunity"> | |||||
<legend>Additional Info</legend> | |||||
<p title="Funding"> | |||||
<label for="funding">Funding</label> | |||||
<input type="text" name="funding" id="funding" | |||||
placeholder="software funded by...(e.g. specific grant)" /> | |||||
</p> | |||||
<p title="Runtime Platform"> | |||||
<label for="runtimePlatform">Runtime Platform</label> | |||||
<input type="text" name="runtimePlatform" id="runtimePlatform" | |||||
placeholder="Operating system" /> | |||||
</p> | |||||
<p title="Development Status"> | |||||
<label for="developmentStatus">Development Status</label> | |||||
<input type="text" name="developmentStatus" id="developmentStatus" | |||||
placeholder="Concept/WIP/Suspended/Abandoned/Active/Inactive/Unsupported/Moved - (www.repostatus.org)" /> | |||||
</p> | |||||
<p title="Programming Language"> | |||||
<label for="programmingLanguage">Programming Language</label> | |||||
<input type="text" name="programmingLanguage" id="programmingLanguage" | |||||
placeholder="C#" /> | |||||
</p> | |||||
<p title="Part of"> | |||||
<label for="isPartOf">Funding</label> | |||||
<input type="text" name="isPartOf" id="isPartOf" | |||||
placeholder="part of ... project" /> | |||||
</p> | </p> | ||||
</fieldset> | </fieldset> | ||||
<fieldset id="fieldsetDevelopmentCommunity"> | <fieldset id="fieldsetDevelopmentCommunity"> | ||||
<legend>Development community / tools</legend> | <legend>Development community / tools</legend> | ||||
<p title="Link to the repository where the un-compiled, human readable code and related code is located (SVN, Git, GitHub, CodePlex, institutional GitLab instance, etc.)."> | <p title="Link to the repository where the un-compiled, human readable code and related code is located (SVN, Git, GitHub, CodePlex, institutional GitLab instance, etc.)."> | ||||
<label for="codeRepository">Code repository</label> | <label for="codeRepository">Code repository</label> | ||||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | <!--TODO: referencePublication as ScholarlyArticle array --> | ||||
<input type="hidden" id="contributor_nb" value="0" /> | <input type="hidden" id="contributor_nb" value="0" /> | ||||
<div id="addRemoveContributor"> | <div id="addRemoveContributor"> | ||||
<input type="button" id="contributor_add" value="Add one" | <input type="button" id="contributor_add" value="Add one" | ||||
onclick="addPerson('contributor', 'Contributor');" /> | onclick="addPerson('contributor', 'Contributor');" /> | ||||
<input type="button" id="contributor_remove" value="Remove last" | <input type="button" id="contributor_remove" value="Remove last" | ||||
onclick="removePerson('contributor');" /> | onclick="removePerson('contributor');" /> | ||||
</div> | </div> | ||||
</fieldset> | </fieldset> | ||||
<fieldset id="fieldsetAdditionalInfo"> | |||||
<legend>Additional Info</legend> | |||||
<p title="Funding"> | |||||
<label for="funding">Funding</label> | |||||
<input type="text" name="funding" id="funding" | |||||
placeholder="Università di Pisa (PRA_2018_73)"/> | |||||
<description>software funded by (e.g. specific grant)</description> | |||||
</p> | |||||
<p title="Runtime Platform"> | |||||
<label for="runtimePlatform">Runtime Platform</label> | |||||
<input type="text" name="runtimePlatform" id="runtimePlatform" | |||||
placeholder="Python2.3" /> | |||||
</p> | |||||
<p title="Operating System"> | |||||
<label for="operatingSystem">Operating System</label> | |||||
<input type="text" name="operatingSystem" id="operatingSystem" | |||||
placeholder="Android 1.6" /> | |||||
</p> | |||||
<p title="Development Status"> | |||||
<label for="developmentStatus">Development Status</label> | |||||
<datalist id="developmentStatuses"> | |||||
<option value="Concept"> | |||||
<option value="WIP"> | |||||
<option value="Suspended"> | |||||
<option value="Abandoned"> | |||||
<option value="Active"> | |||||
<option value="Inactive"> | |||||
<option value="Unsupported"> | |||||
<option value="Moved"> | |||||
</datalist> | |||||
<input list="developmentStatuses" id="developmentStatus" | |||||
pattern="Concept|WIP|Suspended|Abandoned|Active|Inactive|Unsupported|Moved"> | |||||
<description>see <a href="http://www.repostatus.org">www.repostatus.org</a> for details</description> | |||||
</p> | |||||
<p title="Programming Language"> | |||||
<label for="programmingLanguage">Programming Language</label> | |||||
<input type="text" name="programmingLanguage" id="programmingLanguage" | |||||
placeholder="C#" /> | |||||
</p> <!-- TODO: We should add support for multiple languages, eg. by splitting on commas when exporting. --> | |||||
<p title="Part of"> | |||||
<label for="isPartOf">I part of </label> | |||||
<input type="URL" name="isPartOf" id="isPartOf" | |||||
placeholder="http://The.Bigger.Framework.org" /> | |||||
</p> | |||||
</fieldset> | |||||
</form> | </form> | ||||
<form> | <form> | ||||
<input type="button" id="generateCodemeta" value="Generate Codemeta" /> | <input type="button" id="generateCodemeta" value="Generate Codemeta" /> | ||||
<input type="button" id="resetForm" value="Reset form" /> | <input type="button" id="resetForm" value="Reset form" /> | ||||
<input type="button" id="importCodemeta" value="Import Codemeta" /> | <input type="button" id="importCodemeta" value="Import Codemeta" /> | ||||
</form> | </form> | ||||
<p id="errorMessage"> | <p id="errorMessage"> | ||||
Show All 10 Lines |