RESQUE-Framework / website

The Research Quality Evaluation Scheme
https://resque-framework.github.io/website/
MIT License
2 stars 3 forks source link

Allow conditions across different core-X.jsons #63

Closed nicebread closed 7 months ago

nicebread commented 7 months ago

In core-pubs.json, I want to condition on a value from core-meta.json:

"condition": "$P_Suitable === 'Yes' && $P_ReproducibleScripts =|= ['YesParts', 'YesEntire' && $RaterType === 'Applicant']"

The last past, && $RaterType === 'Applicant' does not work yet. (I want to hide indicators that cannot be rated by external raters).

alpkaanaksu commented 7 months ago

We could create a new prefix, e.g. meta$RaterType, we already have the global prefix.

alpkaanaksu commented 7 months ago

Done in fd8c54546168b796fd108ef82affb75463922081.

"condition": "$P_Suitable === 'Yes' && $P_ReproducibleScripts =|= ['YesParts', 'YesEntire'] && meta$RaterType === 'Applicant'" should work now.