Select Git revision
fields.js 47.67 KiB
import uuid from "./uuid";
import inputFormats from "./inputFormats";
const fields = [
{
id: "pharma-title",
predicate: "dce:title",
label: "Title",
type: "bf:Title",
title: "",
component: "pharma-title",
language: "eng",
formValidation: true,
required: true,
info: "title info here",
warning: true
},
{
id: "date",
fieldname: "Date",
predicate: "date",
component: "date",
multiplicable: true,
label: "Date",
value: "",
dateLabel: "",
type: "dcterms:date",
hideType: false,
formValidation: true,
warning: false,
definition:
"A point or period of time associated with an event in the lifecycle of the resource."
},
{
id: "abstract",
header: "",
predicate: "bf:note",
label: "Description/Abstract",
value: "",
type: "bf:Note",
component: "text-field",
info: "Abstract",
infoRef: "",
multiline: true,
multilingual: true,
language: "eng",
required: true,
formValidation: true,
warning: true
},
{
id: "contributors",
header: "Contributors",
label: "Contributions",
type: "schema:Person",
predicate: "role",
firstname: "",
lastname: "",
role: "role:aut",
email: "",
orcid: "",
institution: [],
required: true,
component: "entity",
multiplicable: true,
ordered: true,
ordergroup: "entity",
formValidation: true,
info: "contributors to the project",
warning: true