Closed luis100 closed 8 years ago
The "labels" and "labelI18nKeyPrefix" must be renamed to "optionsLabels" and "optionsLabelI18NKeyPrefix" to avoid confusion with the label of the field.
Updated @ 4798e72551e62c8aabce30a14bb4d65cd42edf9f
NOTE: Templates used in implementations needs to be updated!
Example of field:
{{~field
name="statusDescription"
order="470"
type="list"
value="final"
options="[\"final\",\"revised\",\"draft\"]"
optionsLabels="{\"final\": {\"en\":\"Final\", \"pt_PT\":\"Final\"},\"revised\": {\"en\":\"Revised\", \"pt_PT\":\"Verificado\"},\"draft\": {\"en\":\"Draft\", \"pt_PT\":\"Rascunho\"}}"
optionsLabelI18nKeyPrefix="crosswalks.dissemination.html.ead.statusDescription"
label="{\"en\": \"Status description\", \"pt_PT\": \"Estado da descrição\"}"
xpath="/*:ead/*:archdesc/*:odd[@type='statusDescription']/*:p/string()"
~}}
checked
For template fields of type list, have the arguments:
options: ["opt1","opt2"]
labels: {"opt1": {"en": "Option 1", "pt_PT": "Opção 1"}, "opt2": {"en": "Option 2", "pt_PT": "Opção 2"}}
labelI18nKeyPrefix: "example.label."