diff --git a/conditor-dumps/02-download.ini b/conditor-dumps/02-download.ini index 88db004..2602606 100644 --- a/conditor-dumps/02-download.ini +++ b/conditor-dumps/02-download.ini @@ -32,7 +32,7 @@ value = get('funders').castArray().filter(Boolean).thru(arr => Boolean(arr.length)) # Quand les RNSR ne sont pas fournis dans authors.*.affiliations.*.rnsr -# on utilise les enrichissements et on les met au même niveau dans ApilRnsr +# on utilise les enrichments.rnsr et on les met au même niveau dans ApilRnsr [map] path = authors @@ -51,6 +51,21 @@ value = get("enrichments.rnsr", []) \ .filter(rnsr => !["200612821P", "200018571R", "199812965F", "201523784S"].includes(rnsr)) +# On rassemble tous les RNSR au niveau de la notice (ceux en provenance de +# authors.*.rnsr et ceux en provenance de authors.*.affiliations.*.ApilRnsr) +# dans allAuthorsRnsr +[assign] +path = allAuthorsRnsr +value = get("authors").map("rnsr").flatten().uniq().filter(Boolean) + +[assign] +path = allApilRnsr +value = get("authors").map("affiliations").flatten().map("ApilRnsr").flatten() + +[assign] +path = allRnsr +value = get("allAuthorsRnsr").concat(self.allApilRnsr).uniq().filter(Boolean) + # Garde un identifiant [assign] path = sourceUidChain @@ -58,4 +73,4 @@ # Supprime les champs inutiles pour les études bibliométriques [exchange] -value = omit(['business','origins','technical']) +value = omit(['business','origins','technical', 'allAuthorsRnsr', 'allApilRnsr'])