Newer
Older
web-dumps / apil-dumps / 03-enrichment-rnsr.ini
@Nicolas Thouvenin Nicolas Thouvenin on 21 Oct 2022 852 bytes feat: introduce fake mode
prepend = unpack
append = pack

[use]
plugin = basics

[expand]
path = authors
size = env('size')

# Ensure to process an array
[expand/assign]
path = value
value = get('value',[]).concat(null).filter(Boolean)
[expand/exploding]
;[expand/debug]
;text = authors

[expand/expand]
path = value.rnsr
size = env('size')

# Expand array :
[expand/expand/assign]
path = value
value = get('value',[]).concat(null).filter(Boolean)
[expand/expand/exploding]
;[expand/expand/debug]
;text = rnsr

[expand/expand/expand]
path = value
size = env('size')
cacheName = env('cache').thru(x => x ? 'mapping-tools-tools-v1-rnsr-2022-json' : null)

[expand/expand/expand/URLConnect]
url = env('url', 'https://mapping-tools.services.inist.fr/v1/rnsr/2022/json')
retries = env('retries')
timeout = env('timeout')
noerror = false

[expand/expand/aggregate]
[expand/aggregate]