Newer
Older
web-dumps / openalex-dumps / 02-download.ini
@Nicolas Thouvenin Nicolas Thouvenin on 21 Feb 1 KB add open-alex dumps
append = pack

[use]
plugin = basics
plugin = conditor
plugin = analytics

[TXTConcat]

[env]
; [G] to get more about mailto see https://docs.openalex.org/how-to-use-the-api/rate-limits-and-authentication;the-polite-pool
path = mailto
value = env('mail', 'you@example.com')

; before change see https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/paging
path = per-page
value = 200

; before change see https://docs.openalex.org/api-entities/works
path = url
value = https://api.openalex.org/works

path = query
value = self().trim()

[replace]
path = filter
value = env('query')

path = per-page
value = env('per-page')

path = mailto
value = env('mailto')

[OAFetch]
timeout = 60000
retries = 1

; Add contextual metadata related to the import
[assign]
path = lodexStamp.importedDate
value = fix(new Date()).thru(d => new Intl.DateTimeFormat('fr-FR', { year: 'numeric', month: 'long', day: 'numeric' }).format(d))
path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.query
value = env('query')
; si la requete contient un identifiant, on récupère ici l'identifiant contenu dans la requête afin de l'utiliser comme valeur dynamique dans [A] et [E]
path = lodexStamp.queryIdentifier
value = env('query').thru(string => string.match(/i\d+/)).toUpper()