Skip to content

Allow ordering of OMERO clients to be overridden in the tree view #108

@manics

Description

@manics

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions