Newer
Older
web-dumps / halinria-dumps / 04-refine.ini
@Nicolas Thouvenin Nicolas Thouvenin on 9 Nov 2022 770 bytes refactory: like others makefile
prepend = unpack
append = pack

[use]
plugin = basics
plugin = conditor
plugin = lodex

[assign]
path = tei
value = get('business.sourceUidChain').prepend('https://corhal-api.inist.fr/mergedDocuments/').append('.tei')

path = title
value = get('title.default')

path = host
value = get('host').omit('pages', 'specialIssue', 'range', 'language', 'part', 'conference', 'editors')

[assign]
path = links
value = get('sourceUids').filter(i => (i.indexOf('hal') === 0)).map(i => i.replace(/^hal\$/, 'https://hal.archives-ouvertes.fr/')).join(' ; ')


[exchange]
value = self().omit(['authors', 'origins', 'business', 'files', 'keywords', 'enrichments', 'classifications', 'funders', 'sourceUids', 'abstract', 'technical', 'title', 'pmcId', 'articleNumber', 'pii', 'pmId' ])