Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework the string representation of some vocabulary models #169

Open
aperrin66 opened this issue Aug 5, 2021 · 0 comments
Open

Rework the string representation of some vocabulary models #169

aperrin66 opened this issue Aug 5, 2021 · 0 comments

Comments

@aperrin66
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant