Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

        <field>
          <dc-element>contributor</dc-element>
          <dc-qualifier>department</dc-qualifier>
          <label>Author Department</label>
          <input-type>onebox</input-type>
          <repeatable>true</repeatable>
          <parent>dc_contributor_author</parent>
          <required></required>
          <hint>Enter an affiliation for each author.</hint>
        </field>

Here how the UI looks like with such configuration

Image Added

you can see such configuration in the "Other materials" collection of the DSpace-CRIS demo and testdrive.

the child field must be in the same page than the parent metadata. All the child fields mush be repeatable or less as the parent child. It is not possible to configure a child metadata as repeatable itself, i.e. to allow the user to input several values for a single metadata all associated to the same value of the parent metadata. A possible workaround to this limitation is to configure multiple children metadata such as contributor.department, contributor.department2, etc.

...