-
Notifications
You must be signed in to change notification settings - Fork 15
Description
The ordering of top-level containers in the OMERO.web Left-hand tree can be modified using omero.client.ui.tree.type_order
to not separate Projects and Screens. This is currently used in the IDR to ensure studies are ordered by number irrespective of whether they are Screens or Projects.
This does not allow more fine-grained ordering, for example
idr0001/ExperimentA
idr0002/ScreenA
idr0002/ExperimentB
idr0002/ScreenC
idr0003/ScreenA
Would be displayed in alphanumeric order as
idr0001/ExperimentA
idr0002/ExperimentB
idr0002/ScreenA
idr0002/ScreenC
idr0003/ScreenA
Possible solution
Add an optional annotation on each container that is used as the sorting key. The default value of the key would be the container name.
E.g. using MapAnnotations (name-value pairs) in namespace openmicroscopy.org/client/display
(to allow for further display customisation)
Project idr0002/ExperimentB MapAnnotation:
name: container-order-key
value: idr0002-2
Screen idr0002/ScreenA MapAnnotation:
name: container-order-key
value: idr0002-1
Screen idr0002/ScreenC MapAnnotation:
name: container-order-key
value: idr0002-3
name | sort-key |
---|---|
idr0001/ExperimentA | idr0001/ExperimentA (default name) |
idr0002/ScreenA | idr0002-1 (container-order-key) |
idr0002/ExperimentB | idr0002-2 (container-order-key) |
idr0002/ScreenC | idr0002-3 (container-order-key) |
idr0003/ScreenA | idr0003/ScreenA (default name) |
If omero.client.ui.tree.type_order=false
the containers would be ordered by sort-key