Converting field to dropdown.

Hey all.

When editing metadata in INSPIRE view, there is a section called “Restrictions on access and use”, which contains textfield entries for “Access constraints”.

I would like to convert this textfield into dropdown with values selectable from some codelist.

  1. What is the best way to modify the field in the config-editor.xml so the dropdown will be shown instead of the textfield?

This is the field (in config-editor), i’d like to convert this to dropdown:

          <field name="accessConstraints"
                 xpath="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/
            gmd:resourceConstraints/gmd:MD_LegalConstraints/gmd:otherConstraints"
                 if="count(gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification) > 0"/>
  1. Where do i store the codelist entries? In the codelists.xml?

Thanks!