{
  "schema": {
    "type": "object",
    "properties": {
      "docDscr": {
        "type": "object",
        "title": "Document Description",
        "properties": {
          "producer": {
            "$ref": "schema_ddi.json#/properties/docDscr/properties/producer"
          },
          "depositr": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/distStmt/properties/depositr"
          },
          "prodDate": {
            "$ref": "schema_ddi.json#/properties/docDscr/properties/prodDate"
          },
          "documentVersion": {
            "type": "string",
            "title": "DDI Document Version",
            "description": "Documenting a dataset is not a trivial exercise. Producing metadata is probably impossible."
          },
          "documentIDNumber": {
            "type": "string",
            "title": "DDI Document ID Number"
          },
          "dataCollector": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/dataCollector"
          }
        }
      },
      "stdyDscr": {
        "type": "object",
        "description": "Study Description",
        "properties": {
          "titl": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/titl"
          },
          "subTitl": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/subTitl"
          },
          "abbreviation": {
            "title": "Abbreviation",
            "type": "string"
          },
          "studytype": {
            "title": "Study Type",
            "type": "string"
          },
          "serInfo": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/serStmt/properties/serInfo"
          },
          "translatedtitle": {
            "title": "Translated Title",
            "type": "string"
          },
          "Idnum": {
            "title": "ID Number",
            "type": "string"
          },
          "depositr": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/distStmt/properties/depositr"
          },
          "depDate": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/distStmt/properties/depDate"
          },
          "projectinfo ": {
            "title": "Project Information",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "prodDate": {
            "$ref": "schema_ddi.json#/properties/docDscr/properties/prodDate"
          },
          "notes": {
            "$ref": "schema_ddi.json#/properties/docDscr/properties/verStmt/properties/notes"
          },
          "abstract": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/abstract"
          },
          "dataKind": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/dataKind"
          },
          "anlyUnit": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/anlyUnit"
          }
        }
      }
    }
  },
  "form": [
    {
      "key": "docDscr",
      "type": "fieldset",
      "title": "Document Description",
      "expandable": true,
      "items": [
        {
          "key": "MetadataPreparation",
          "type": "fieldset",
          "title": "Metadata Preparation",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "producer",
              "type": "array",
              "title": "Metdata Producers",
              "expandable": false,
              "items": [
                {
                  "key": "producer[].name",
                  "title": "Name",
                  "type": "text",
                  "htmlClass": "col-xs-3"
                },
                {
                  "key": "producer[].abbr",
                  "title": "Abbreviation",
                  "type": "text",
                  "htmlClass": "col-xs-3"
                },
                {
                  "key": "producer[].role",
                  "title": "Role",
                  "type": "text",
                  "htmlClass": "col-xs-3"
                },
                {
                  "key": "producer[].affiliation",
                  "title": "Affiliation",
                  "type": "text",
                  "htmlClass": "col-xs-3"
                }
              ]
            },
            {
              "key": "depositr",
              "type": "array",
              "title": "DDI Depositors",
              "expandable": false,
              "items": [
                {
                  "key": "depositr[].name",
                  "title": "Name",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                },
                {
                  "key": "depositr[].abbr",
                  "title": "Abbreviation",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                },
                {
                  "key": "depositr[].affiliation",
                  "title": "Affiliation",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                }
              ]
            },
            {
              "key": "prodDate",
              "type": "date",
              "title": "Date of Production"
            },
            {
              "key": "documentVersion",
              "type": "textarea",
              "title": "DDI Document Version"
            },
            {
              "key": "documentIDNumber",
              "type": "text",
              "title": "DDI Document ID Number"
            },
            {
              "key": "collection",
              "type": "array",
              "title": "Collection(s)",
              "expandable": false,
              "items": [
                {
                  "key": "collection[].name",
                  "title": "Name",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                },
                {
                  "key": "producer[].affiliation",
                  "title": "Affiliation",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                },
                {
                  "key": "collection[].role",
                  "title": "Role",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "key": "stdyDscr",
      "type": "fieldset",
      "title": "Study Description",
      "expandable": true,
      "items": [
        {
          "key": "Identification",
          "type": "fieldset",
          "title": "Identification",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "titl",
              "type": "text",
              "title": "Title"
            },
            {
              "key": "subTitl",
              "type": "text",
              "title": "Subtitle"
            },
            {
              "key": "abbreviation",
              "type": "text",
              "title": "Abbreviation"
            },
            {
              "key": "studytype",
              "type": "text",
              "title": "Study Type"
            },
            {
              "key": "serInfo",
              "type": "textarea",
              "title": "Series Information"
            },
            {
              "key": "translatedtitle",
              "type": "text",
              "title": "Translated Title"
            },
            {
              "key": "idnum",
              "type": "text",
              "title": "ID Number"
            },
            {
              "key": "depositr",
              "type": "array",
              "title": "Data Depositors",
              "expandable": false,
              "items": [
                {
                  "key": "depositr[].name",
                  "title": "Name",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                },
                {
                  "key": "depositr[].abbr",
                  "title": "Abbreviation",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                },
                {
                  "key": "depositr[].affiliation",
                  "title": "Affiliation",
                  "type": "text",
                  "htmlClass": "col-xs-4"
                }
              ]
            },
            {
              "key": "depDate",
              "type": "text",
              "title": "Date of Deposit"
            },
            {
              "key": "projectinfo",
              "type": "text",
              "title": "Project Information"
            }
          ]
        },
        {
          "key": "version",
          "type": "fieldset",
          "title": "Version",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "description",
              "type": "text",
              "title": "Description"
            },
            {
              "key": "prodDate",
              "type": "text",
              "title": "Production Date"
            },
            {
              "key": "notes",
              "type": "text",
              "title": "Notes"
            }
          ]
        },
        {
          "key": "overview",
          "type": "fieldset",
          "title": "Overview",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "abstract",
              "type": "text",
              "title": "Abstract"
            },
            {
              "key": "dataKind",
              "type": "text",
              "title": "Kind of Data"
            },
            {
              "key": "anlyUnit",
              "type": "textarea",
              "title": "Unit of Analysis"
            }
          ]
        }
      ]
    }
  ]
}