rdmorganiser / rdmo

A tool to support the planning, implementation, and organization of research data management.
https://rdmorganiser.github.io
Apache License 2.0
103 stars 49 forks source link

Usage of keys for multiple options to make script language-independent #74

Closed Zack-83 closed 2 years ago

Zack-83 commented 6 years ago

When a variable possessing an optionset is used as a condition, the result is depending on the language: ex. to check if the licence is "share-alike", only one of these will work: either {% if values.project.dataset.sharing.conditions == "Share-alike (SA)" %} or {% if values.project.dataset.sharing.conditions == "Weitergabe unter gleichen Bedingungen (SA)" %} Moreover, the strings to search are quite verbose. Is it possible to recall the key, or the URI, of the value? (in this case "75")

Dankeschön Giacomo

share-alike

jochenklar commented 6 years ago

Thanks for posting, we will fix that. There will be a new version of rdmo this week.

Zack-83 commented 6 years ago

To make it more clear: options should contain

jochenklar commented 2 years ago

This is basically the same as https://github.com/rdmorganiser/rdmo/issues/479

Zack-83 commented 2 years ago

OK, what I wanted is solved applying a condition within the view https://rdmo.readthedocs.io/en/latest/management/views.html#render-values