Opened 13 years ago

Closed 12 years ago

#931 closed enhancement (fixed)

Editor / Codelist / Add new editor field type

Reported by: fxp Owned by: geonetwork-devel@…
Priority: major Milestone: v2.10.0 RC0
Component: General Version:
Keywords: Cc:

Description (last modified by fxp)

Currently, codelist editing is a simple combo box. Add capability to customize editor control per codelist type.

Configuration is made in <schema>/loc/<lang>/codelists.xml using editorMode attribute to the codelist element:

  <codelist name="gmd:CI_DateTypeCode" editorMode="radio">

Type of controls are:

  • - not set -: simple combo box (default)
  • radio : radio button in one line
  • radio_linebreak : radio button with line break
  • radio_withdesc : radion button with line break and codelist entry description
  • select : select box with size set to the number of items if lower than 7 entries. If element cardinality is greater than one, the selection list allows multiple selection (editor does not need to use (+) control to add more than one element).

Attachments (2)

editor_controls.png (69.5 KB ) - added by fxp 13 years ago.
931.patch (31.6 KB ) - added by fxp 13 years ago.

Download all attachments as: .zip

Change History (4)

by fxp, 13 years ago

Attachment: editor_controls.png added

comment:1 by fxp, 13 years ago

Description: modified (diff)

by fxp, 13 years ago

Attachment: 931.patch added
Note: See TracTickets for help on using tickets.