Skip to content

Rework the string representation of some vocabulary models #169

Description

@aperrin66

Generally, the string representation of vocabulary instances relies on their short name, but some don't have one.
For example:

OrderedDict([('Category', 'Earth Remote Sensing Instruments'),
             ('Class', 'Active Remote Sensing'),
             ('Type', 'Altimeters'),
             ('Subtype', ''),
             ('Short_Name', ''),
             ('Long_Name', '')])

In the case of instruments and platforms, it can be a problem because then the source shows as "/" in the web viewer.
We can maybe have something that tries the fields one by one, by decreasing order of priority and stops when it finds a non-empty field.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions