Newer
Older
web-dumps / doiwos-dumps / 09-detect-cnrs.ini
# Usage: npx ezs detect-cnrs.ini < data/corpus-simple-label-pascal.json > data/corpus-simple-cnrs.json

# To see the enriched notices:
# $ fx < data/corpus-simple-cnrs.json '.filter(o => o.ws.rnsr[0]?.length)'


[use]
# JSONParse
plugin = basics

[JSONParse]

[assign]
path = ws.cnrs
value = get('affiliations').filter(a => a.includes('CNRS') || a.includes('UMR')).thru(affiliations => affiliations.length ? "oui" : "non")

[dump]
indent = true