Newer
Older
web-dumps / apil-dumps / 03-enrichment-address.ini
@Nicolas Thouvenin Nicolas Thouvenin on 21 Oct 2022 914 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.affiliations
size = env('size')

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

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

;[expand/expand/expand/debug]
;text = address


[expand/expand/expand/URLConnect]
url = env('url', 'https://affiliations-tools.services.inist.fr/v1/expand')
retries = env('retries')
timeout = env('timeout')
noerror = true

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