Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1986 closed enhancement (fixed)

Exporting annotation type columns

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 3.8
Component: web Version:
Keywords: Cc:

Description (last modified by Nicklas Nordborg)

The table exporter for annotation types need to improve how values are exported. There are some values that need to be transformed:

  • Value type: Is currently exported as an integer but it should be transformed to the values that are displayed in the GUI (but uppercase).
  • Item types: Is currently not exported at all. Should be exported as a comma-separated list of item type names.
  • Enumeration: Is currently exported as a boolean value but should export the actual enumeration values.
  • Min/max value: Is not included in the list at all.

Change History (8)

comment:1 by Nicklas Nordborg, 8 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 8 years ago

(In [7087]) References #1986: Exporting annotation type columns

Added ValueTypeFormatter for transforming the "Value type" integers to names.

Last edited 8 years ago by Nicklas Nordborg (previous) (diff)

comment:3 by Nicklas Nordborg, 8 years ago

(In [7088]) References #1986: Exporting annotation type columns

Added support for the "Item types" column. The AnnotationTypeItemsTypesLoader use AnnotationType.getEnabledItems() to get the items which are then formatted by the EnumFormatter.

comment:4 by Nicklas Nordborg, 8 years ago

(In [7089]) References #1986: Exporting annotation type columns

Added support for exporting the enumeration values. It is handled by the AnnotationTypeEnumerationLoader which uses the AnnotationType.getValues() to return a list with the allowed values.

comment:5 by Nicklas Nordborg, 8 years ago

(In [7103]) References #1986: Exporting annotation type columns

Added columns for 'Min value' and 'Max value'. The values are stored in a Map with String keys.

Support for exporting has been implemented using the MapValueLoader which can be automatically used by setting the exportproperty attribute to the following syntax: @map-name(key-name). The key may be an integer or a (quoted) string.

Filtering is not yet supported.

comment:6 by Nicklas Nordborg, 8 years ago

(In [7104]) References #1986: Exporting annotation type columns

Displaying min/max value information also on the single-item view page.

comment:7 by Nicklas Nordborg, 8 years ago

Description: modified (diff)

comment:8 by Nicklas Nordborg, 8 years ago

Resolution: fixed
Status: assignedclosed

Filtering support for "Min value" and "Max value" implemented in #1991.

Last edited 8 years ago by Nicklas Nordborg (previous) (diff)
Note: See TracTickets for help on using tickets.