home.form-configuration.simpleform.json Maven / Gradle / Ivy
{
"stages":{
"inbox":{
"divs":[
{
"heading":"Content",
"fields":[
{
"component-type": "text-block",
"type": "h3",
"content": "Title"
},
{
"component-type": "text-input",
"field-name": "dc:title",
"label": ""
"validation": {
"save-rules": ["required"],
"validation-id": "dc:title",
"focus-id": "dc:title",
"validation-messages":{"required": "Title is required"}
}
},
{
"component-type":"text-block",
"type":"h3",
"content":"Descriptions"
},
{
"component-type":"repeatable-container",
"containter-for":"rif:description",
"sub-elements":{"settings":[
{"jaffaDropDown":{"label":"Type",
"suffix":"type",
"field":"type",
"label-field":"rif:description.0.label",
"json-data-url":"http://127.0.0.1:9000/redbox/default/workflows/forms/data/types.json",
"data-id-key":"id",
"data-label-key":"label",
"data-list-key":"results",
"mandatory":"true",
"help-content":"[id='data-source-dropdown-help-type']"}},
{"jaffaText":{"label": "Description","class-list":"jaffa-field","suffix": "value"}}
]
},
"additional-classes":"containerLayout"
},
{
"component-type":"text-block",
"type":"h3",
"content":"Collection Type"
},
{
"component-type":"data-source-dropdown",
"label":"",
"field-name":"dc:type.rdf:PlainLiteral",
"field-name-label":"dc:type.skos:prefLabel",
"sourceUrl":"workflows/forms/data/types.json",
"mandatory":"true",
"idKey":"id",
"labelKey":"label",
"listKey":"results"
},
{
"component-type":"text-block",
"type":"h3",
"content":"Access/Rights"
},
{
"component-type":"text-input",
"field-name":"dc:accessRights.skos:prefLabel",
"label":"Access Rights/Conditions"
},
{
"component-type":"text-input",
"field-name":"dc:accessRights.dc:identifier",
"label":"Access Rights/Conditions - URI:"
},
{
"component-type":"text-input",
"field-name":"dc:accessRights.dc:RightsStatement.skos:prefLabel",
"label":"Rights"
},
{
"component-type":"text-input",
"field-name":"dc:license.dc:identifier",
"label":"Rights - URI:"
},
{
"component-type":"native-html",
"content":""
}
]
},
{
"heading":"Coverage",
"fields":[
{
"component-type":"text-block",
"type":"h3",
"content":"Coverage Date"
},
{
"component-type":"text-input",
"field-name":"dc:coverage.vivo:DateTimeInterval.vivo:start",
"label":"From:",
"additional-classes":"dateYMD"
},
{
"component-type":"text-input",
"field-name":"dc:coverage.vivo:DateTimeInterval.vivo:end",
"label":"To:",
"additional-classes":"dateYMD"
},
{
"component-type":"text-input",
"field-name":"dc:coverage.redbox:timePeriod",
"label":"Time Period"
},
{
"component-type":"native-html",
"content":"
Use double-click to 'close' your polygon.
"
},
{
"component-type":"repeatable-container",
"containter-for":"dc:coverage.vivo:GeographicLocation",
"additional-classes":"redboxGeoData",
"add-item-text":"Add location",
"sub-elements":{"settings":[
{"jaffaDropDown":{"label":"Location Type", "suffix":"type", "field":"type", "label-field":"dc:type",
"json-data-url":"http://127.0.0.1:9000/redbox/default/workflows/forms/data/locationTypes.json",
"data-id-key":"id", "data-label-key":"label", "data-list-key":"results", "mandatory":"true",
"help-content":"[id='data-source-dropdown-help-dc:type']", "class-list":"locationType"}},
{"jaffaText":{"label":"","type":"hidden","class-list":"jaffa-field redboxGeoDataFid","suffix": "redbox:Fid"}},
{"jaffaText":{"label":"","type":"hidden","class-list":"jaffa-field redboxGeoDataWkt","suffix": "redbox:wktRaw"}},
{"jaffaText":{"label":"","type":"text","class-list":"jaffa-field redboxGeoDataOutput autocomplete-geonames","suffix":"rdf:PlainLiteral",
"placeholder":"eg. coordinates or placename","size":"60"}},
{"jaffaText":{"label":"","type":"hidden","class-list":"jaffa-field","suffix":"dc:identifier"}},
{"jaffaText":{"label":"","type":"hidden","class-list":"jaffa-field","suffix":"geo:long"}},
{"jaffaText":{"label":"","type":"hidden","class-list":"jaffa-field","suffix":"geo:lat"}}
]
}
},
{
"component-type":"native-html",
"content":"
"
},
{
"component-type":"native-html",
"content":""
}
]
},
{
"heading":"Data Location",
"fields":[
{
"component-type":"text-block",
"type":"h3",
"content":"Additional Identifiers"
},
{
"component-type":"native-html",
"content":""
},
{
"component-type":"data-source-dropdown",
"label":"Type",
"field-name":"dc:identifier.dc:type.rdf:PlainLiteral",
"field-name-label":"dc:identifier.dc:type.skos:prefLabel",
"sourceUrl":"workflows/forms/data/identifierTypes.json",
"mandatory":"true",
"idKey":"id",
"labelKey":"label",
"listKey":"results"
},
{
"component-type":"text-input",
"field-name":"dc:identifier.rdf:PlainLiteral",
"label":"Identifier"
},
{
"component-type":"text-input",
"field-name":"redbox:retentionPeriod",
"label":"Retention Period"
},
{
"component-type":"native-html",
"content":""
}
]
},
{
"heading":"Associations",
"fields":[
{
"component-type":"text-block",
"type":"h3",
"content":"Creators"
},
{
"component-type":"data-source-dropdown",
"label":"Relationship Types",
"field-name":"dc:creator.foaf:Person.0.jcu:relationshipType",
"field-name-label":"dc:creator.foaf:Person.0.jcu:relationshipLabel",
"sourceUrl":"workflows/forms/data/types.json",
"mandatory":"true",
"idKey":"id",
"labelKey":"label",
"listKey":"results"
},
{
"component-type":"text-input",
"field-name":"locrel:prc.foaf:Person.foaf:title",
"label":"Title:"
},
{
"component-type":"text-input",
"field-name":"locrel:prc.foaf:Person.foaf:givenName",
"label":"Given name:"
},
{
"component-type":"text-input",
"field-name":"locrel:prc.foaf:Person.foaf:familyName",
"label":"Family name:"
},
{
"component-type":"data-source-dropdown",
"label":"Affiliation",
"field-name":"dc:creator.foaf:Person.0.foaf:Organization.dc:identifier",
"field-name-label":"dc:creator.foaf:Person.0.foaf:Organization.skos:prefLabel",
"sourceUrl":"proxyGet.script?ns=Parties_Groups&qs=count%3D9999",
"mandatory":"true",
"idKey":"dc:identifier",
"labelKey":"rdfs:label",
"listKey":"results"
},
{
"component-type":"paragraph",
"content":"Related Activities - same as Type of Research Activities ??"
},
{
"component-type":"data-source-dropdown",
"label":"Type of Research Activity",
"field-name":"dc:subject.anzsrc:toa.rdf:resource",
"field-name-label":"dc:subject.anzsrc:toa.skos:prefLabel",
"sourceUrl":"workflows/forms/data/researchTypes.json",
"mandatory":"true",
"idKey":"id",
"labelKey":"label",
"listKey":"results"
},
{
"component-type":"text-block",
"type":"h3",
"content":"Collaborators"
},
{
"component-type":"repeatable-container",
"containter-for":"dc:contributor.locrel:clb",
"sub-elements":{"settings":[
{"jaffaText":{"label":"", "class-list":"jaffa-field", "suffix":"foaf:Agent"}}
]
}
},
{
"component-type":"text-block",
"type":"h3",
"content":"Related Publications"
},
{
"component-type":"repeatable-container",
"containter-for":"dc:relation.swrc:Publication",
"sub-elements":{"settings":[
{"jaffaText":{"label":"URL: ", "class-list":"jaffa-field", "suffix":"dc:identifier"}},
{"jaffaText":{"label":"Title: ", "class-list":"jaffa-field", "suffix":"dc:title"}},
{"jaffaText":{"label":"Notes: ", "class-list":"jaffa-field", "suffix":"skos:note"}}
]
}
},
{
"component-type":"text-block",
"type":"h3",
"content":"Related Websites"
},
{
"component-type":"repeatable-container",
"containter-for":"dc:relation.bibo:Website",
"sub-elements":{"settings":[
{"jaffaText":{"label":"URL: ", "class-list":"jaffa-field", "suffix":"dc:identifier"}},
{"jaffaText":{"label":"Title: ", "class-list":"jaffa-field", "suffix":"dc:title"}},
{"jaffaText":{"label":"Notes: ", "class-list":"jaffa-field", "suffix":"skos:note"}}
]
}
},
{
"component-type":"native-html",
"content":""
}
]
},
{
"heading":"Keywords",
"fields":[
{
"component-type":"text-block",
"content":"Fields of Research",
"type":"h3"
},
{
"component-type":"repeatable-container",
"containter-for":"dc:subject.anzsrc:for",
"sub-elements":{"settings":[
]
}
},
{
"component-type":"repeatable-anzsrc-selection",
"label":"",
"fieldName":"dc:subject.anzsrc:for.0.rdf:resource",
"fieldNameLabel":"dc:subject.anzsrc:for.0.skos:prefLabel",
"sourceUrl":"proxyGet.script?ns=ANZSRC_FOR&qs=count%3D999%26level%3D",
"dataLevel":"top",
"mandatory":"false",
"idKey":"rdf:about",
"labelKey":"skos:prefLabel",
"listKey":"results",
"defaultValue":"skos:narrower",
"anzsrcType":"for"
},
{
"component-type":"text-block",
"type":"h3",
"content":"Socio-Economic Objective"
},
{
"component-type":"repeatable-anzsrc-selection",
"label":"",
"fieldName":"dc:subject.anzsrc:seo.0.rdf:resource",
"fieldNameLabel":"dc:subject.anzsrc:seo.0.skos:prefLabel",
"sourceUrl":"proxyGet.script?ns=ANZSRC_SEO&qs=count%3D999%26level%3D",
"dataLevel":"top",
"mandatory":"false",
"idKey":"rdf:about",
"labelKey":"skos:prefLabel",
"listKey":"results",
"defaultValue":"skos:narrower",
"anzsrcType":"seo"
},
{
"component-type":"text-block",
"type":"h3",
"content":"Research Themes"
},
{
"component-type":"native-html",
"content":""
},
{
"component-type":"native-html",
"content":""
},
{
"component-type":"native-html",
"content":""
},
{
"component-type":"native-html",
"content":""
},
{
"component-type":"native-html",
"content":""
},
{
"component-type":"text-block",
"type":"h3",
"content":"Keywords"
},
{
"component-type":"repeatable-container",
"containter-for":"dc:subject.vivo:keyword",
"sub-elements":{"settings":[
{"jaffaText":{"label":"Keyword: ", "class-list":"jaffa-field", "suffix":"rdf:PlainLiteral"}}
]
}
},
{
"component-type":"native-html",
"content":""
}
]
},
{
"heading":"Final",
"fields":[
{
"component-type":"native-html",
"content":""
},
{
"component-type":"textarea",
"label":"Jay, see Marianne as this will contain some legal declarion about Researchers own work. e.g true and correct to my best knowledge",
"field-name":"Extra.Collection.Methodology",
"content":"",
"additional-class":""
},
{
"component-type":"native-html",
"content":""
},
{
"component-type":"native-html",
"content":""
},
{
"component-type":"native-html",
"content":""
}
]
}
],
"buttons":[
],
"form-footer":"simpleform-footer",
"validation":{
"required":"title"
}
},
"investigation":{
"fields":[
{
"component-type":"text-input",
"field-name":"title",
"label":"Name",
"additional-classes":""
},
{
"component-type":"text-input",
"field-name":"dc:description",
"label":"Description",
"additional-classes":""
},
{
"component-type":"text-input",
"field-name":"type",
"label":"Type",
"additional-classes":""
},
{
"component-type":"text-input",
"field-name":"website",
"label":"Website",
"additional-classes":""
},
{
"component-type":"text-input",
"field-name":"website",
"label":"Website",
"additional-classes":""
}
],
"buttons":[
{
"component-type":"standard-button",
"button-name":"save",
"action":"save",
"label":"Save"
},
{
"component-type":"standard-button",
"button-name":"next",
"action":"next",
"label":"Next>"
}
],
"validation":{
"required":"title"
}
}
}
}