Admin guide
Projects
Structure and choices

Structure

The structure of the capture model aims to make it easier to contribute values to the document values by splitting down the fields into chunks. For example, you may be transcribing a document while also identifying people, place names and allowing people to write comments or notes. Instead of presenting the user with one giant form with all of these values, you can use a structure to split these up into a set of choices:

  • What would you like to Annotate?
    • Transcribe the text
    • Identify entity
      • Person
      • Place
    • Write a note

The user could click through these options and only see the fields they need to see. Some of these may overlap, for example you may have the notes under the transcription. This is all supported when setting up the structure.

The structure itself is a nested set of JSON objects. There are 2 types of objects, choices and models:

Choices

A choice is simply a group of other choices and models displayed as selectable options to the user. In our example above "What would you like to Annotate" and "Identify entity" are both choices. Choices contain display information, such as labels and descriptions to the user that they will see when selecting their choice.

Models

A model is a form, from a users perspective. The model contains a list of the fields from the document that should be shown in the form.

Examples

Default single choice.

{
  "id": "9c2c6558-703d-4276-ac44-01c78e66ecef",
  "type": "model",
  "label": "Default",
  "fields": [
    "firstName",
    "familyName"
  ]
}

Splitting the same document into 2 choices.

This is not a realistic example as these two fields would be better inside of a single contribution.