Closed Zack-83 closed 2 years ago
Thanks for posting, we will fix that. There will be a new version of rdmo this week.
To make it more clear: options should contain
This is basically the same as https://github.com/rdmorganiser/rdmo/issues/479
OK, what I wanted is solved applying a condition within the view https://rdmo.readthedocs.io/en/latest/management/views.html#render-values
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