{
  "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",
            "enum": [
              "Agricultural Survey",
              "Child Labour Survey",
              "Priority Survey",
              "Population Survey"
            ]
          },
          "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": {
            "title": "Kind of Data",
            "type": "string",
            "enum": [
              "Sample survey data[ssd]",
              "Census/enumeration data[cen]",
              "Administrative records data[adm]",
              "Aggregate data[agg]",
              "Event/transaction data[even]",
              "Observation data/ratings[obs]"
            ]
          },
          "anlyUnit": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/anlyUnit"
          },
          "desciptionscope": {
            "title": "Description of Scope",
            "type": "string"
          },
          "topcClas": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/topcClas"
          },
          "keywords": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/topcClas"
          },
          "country": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/nation"
          },
          "geogCover": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/geogCover"
          },
          "geogUnit": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/geogUnit"
          },
          "universe": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/universe"
          },
          "primaryInvest": {
            "$ref": "schema_ddi.json#/properties/docDscr/properties/authEnty"
          },
          "otherproducer": {
            "$ref": "schema_ddi.json#/properties/docDscr/properties/producer"
          },
          "funding": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/fundAg"
          },
          "otheracklgmnt": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/othId"
          },
          "sampProc": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/sampProc"
          },
          "deviat": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/deviat"
          },
          "respRate": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/respRate"
          },
          "weight": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/weight"
          },
          "datesofcollection": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/collDate"
          },
          "frequenc": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/frequenc"
          },
          "timePrd": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/timePrd"
          },
          "dataSrc": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/dataSrc"
          },
          "collMode": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/collMode"
          },
          "notesofdata": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/studyInfo/properties/notes"
          },
          "questionaire": {
            "title": "Questionaire",
            "type": "string"
          },
          "datacollection": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/method/properties/dataCollector"
          },
          "supervision": {
            "title": "Supervision",
            "type": "string"
          },
          "dataentry": {
            "title": "Data entry and Editing",
            "type": "string"
          },
          "othrprocessing": {
            "title": "Other Processing",
            "type": "string"
          },
          "estimatesamperr": {
            "title": "Estimates of sampling error",
            "type": "string"
          },
          "otherformdataappr": {
            "title": "Other Form of data Appr",
            "type": "string"
          },
          "accesauthority": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess_useStmt/properties/contact"
          },
          "conf": {
            "title": "Confidentiality",
            "type": "string"
          },
          "confDec": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess_useStmt/properties/confDec"
          },
          "accesscond": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess_useStmt/properties/Conditions"
          },
          "citReq": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess_useStmt/properties/citReq"
          },
          "doi": {
            "title": "Digital Object Identifer",
            "type": "string"
          },
          "location": {
            "type": "array",
            "description": "Location where the data collection is currently stored",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "title": "Name",
                  "type": "string"
                },
                "uri": {
                  "title": "URI",
                  "type": "string"
                }
              }
            }
          },
          "origArch": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess/properties/origArch"
          },
          "avlStatus": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess/properties/avlStatus"
          },
          "deposReq": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess_useStmt/properties/deposReq"
          },
          "disclaimer": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess_useStmt/properties/disclaimer"
          },
          "copyright": {
            "$ref": "schema_ddi.json#/properties/docDscr/properties/copyright"
          },
          "contact": {
            "$ref": "schema_ddi.json#/properties/stdyDscr/properties/dataAccess_useStmt/properties/contact"
          }
        }
      }
    }
  },
  "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": "table",
              "htmlClass": "table table-bordered",
              "title": "Metdata Producers",
              "expandable": false,
              "items": [
                {
                  "key": "producer[].name",
                  "title": "Name"
                },
                {
                  "key": "producer[].abbr",
                  "title": "Abbreviation"
                },
                {
                  "key": "producer[].role",
                  "title": "Role"
                },
                {
                  "key": "producer[].affiliation",
                  "title": "Affiliation"
                }
              ]
            },
            {
              "key": "depositr",
              "type": "table",
              "htmlClass": "table table-bordered",
              "title": "DDI Depositors",
              "expandable": false,
              "items": [
                {
                  "key": "depositr[].name",
                  "title": "Name",
                  "type": "text"
                },
                {
                  "key": "depositr[].abbr",
                  "title": "Abbreviation",
                  "type": "text"
                },
                {
                  "key": "depositr[].affiliation",
                  "title": "Affiliation",
                  "type": "text"
                }
              ]
            },
            {
              "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": "dataCollector",
              "type": "table",
              "htmlClass": "table table-bordered",
              "title": "Collection(s)",
              "expandable": false,
              "items": [
                {
                  "key": "dataCollector[].name",
                  "title": "Name",
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "fieldHtmlClass": "form-control"
                },
                {
                  "key": "dataCollector[].affiliation",
                  "title": "Affiliation",
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "fieldHtmlClass": "form-control"
                },
                {
                  "key": "dataCollector[].role",
                  "title": "Role",
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "fieldHtmlClass": "form-control"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "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",
              "fieldHtmlClass":"formWidgets",
              "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",
                  "fieldHtmlClass": "form-control"
                },
                {
                  "key": "depositr[].abbr",
                  "title": "Abbreviation",
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "fieldHtmlClass": "form-control"
                },
                {
                  "key": "depositr[].affiliation",
                  "title": "Affiliation",
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "fieldHtmlClass": "form-control"
                }
              ]
            },
            {
              "key": "depDate",
              "type": "date",
              "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": "textarea",
              "title": "Description"
            },
            {
              "key": "prodDate",
              "type": "date",
              "title": "Production Date"
            },
            {
              "key": "notes",
              "type": "textarea",
              "title": "Notes"
            }
          ]
        },
        {
          "key": "overview",
          "type": "fieldset",
          "title": "Overview",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "abstract",
              "type": "textarea",
              "title": "Abstract"
            },
            {
              "key": "dataKind",
              "title": "Kind of Data"
            },
            {
              "key": "anlyUnit",
              "type": "textarea",
              "title": "Unit of Analysis"
            }
          ]
        },
        {
          "key": "scope",
          "type": "fieldset",
          "title": "Scope",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "desciptionscope",
              "type": "textarea",
              "title": "Description of Scope"
            },
            {
              "key": "topcClas",
              "type": "array",
              "title": "Topic Classifications",
              "expandable": false,
              "items": [
                {
                  "key": "topcClas[].topic",
                  "title": "Text",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "topcClas[].vocab",
                  "title": "Vocabulary",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "topcClas[].vocabURI",
                  "title": "Vocabulary URI",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                }
              ]
            },
            {
              "key": "keywords",
              "type": "array",
              "title": "Keywords",
              "expandable": false,
              "items": [
                {
                  "key": "keywords[].topic",
                  "title": "Text",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "keywords[].vocab",
                  "title": "Vocabulary",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "keywords[].vocabURI",
                  "title": "Vocabulary URI",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                }
              ]
            }
          ]
        },
        {
          "key": "coverage",
          "type": "fieldset",
          "title": "Coverage",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "country",
              "type": "table",
              "title": "Country",
              "expandable": false,
              "items": [
                {
                  "key": "country[].name",
                  "title": "Name",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-6",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "country[].abbreviation",
                  "title": "Abbreviation",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-6",
                  "labelHtmlClass": "customClass"
                }
              ]
            },
            {
              "key": "geogCover",
              "type": "textarea",
              "title": "Geographic Coverage"
            },
            {
              "key": "geogUnit",
              "type": "textarea",
              "title": "Geographic Unit"
            },
            {
              "key": "universe",
              "type": "textarea",
              "title": "Universe"
            }
          ]
        },
        {
          "key": "producersponsor",
          "type": "fieldset",
          "title": "Producers and Sponsors",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "primaryInvest",
              "type": "array",
              "title": "Primary Investigator",
              "expandable": false,
              "items": [
                {
                  "key": "primaryInvest[].name",
                  "title": "Name",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-6",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "primaryInvest[].affiliation",
                  "title": "Affiliation",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-6",
                  "labelHtmlClass": "customClass"
                }
              ]
            },
            {
              "key": "otherproducer",
              "type": "array",
              "title": "Other Producers",
              "expandable": false,
              "items": [
                {
                  "key": "otherproducer[].name",
                  "title": "Name",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-3",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "otherproducer[].abbr",
                  "title": "Abbreviation",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-3",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "otherproducer[].role",
                  "title": "Role",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-3",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "otherproducer[].affiliation",
                  "title": "Affiliation",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-3",
                  "labelHtmlClass": "customClass"
                }
              ]
            },
            {
              "key": "funding",
              "type": "array",
              "title": "Funding",
              "expandable": false,
              "items": [
                {
                  "key": "funding[].name",
                  "title": "Name",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "funding[].abbr",
                  "title": "Abbreviation",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "funding[].role",
                  "title": "Role",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                }
              ]
            },
            {
              "key": "otheracklgmnt",
              "type": "array",
              "title": "Other Acknowlegments",
              "expandable": false,
              "items": [
                {
                  "key": "otheracklgmnt[].name",
                  "title": "Name",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "otheracklgmnt[].affiliation",
                  "title": "Affiliation",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                },
                {
                  "key": "otheracklgmnt[].role",
                  "title": "Role",
                  "notitle": true,
                  "type": "text",
                  "htmlClass": "col-xs-4",
                  "labelHtmlClass": "customClass"
                }
              ]
            }
          ]
        },
        {
          "key": "sampling",
          "type": "fieldset",
          "title": "Sampling",
          "isVirtual": true,
          "expandable": true,
          "items": [
            {
              "key": "sampProc",
              "type": "textarea",
              "title": "Sampling Procedure"
            },
            {
              "key": "deviat",
              "type": "textarea",
              "title": "Deviations from Sample Design"
            },
            {
              "key": "respRate",
              "type": "textarea",
              "title": "Response Rates"
            },
            {
              "key": "weight",
              "type": "textarea",
              "title": "Weighting"
            }
          ]
        }
      ]
    }
  ]
}