diff --git a/conditor-dumps/02-download.ini b/conditor-dumps/02-download.ini index 88db004..d005bcf 100644 --- a/conditor-dumps/02-download.ini +++ b/conditor-dumps/02-download.ini @@ -40,22 +40,41 @@ path = affiliations [map/map/assign] -path = ApilRnsr +path = ApilRnsr1 value = get("rnsr") [map/map/swing] -test = get("ApilRnsr").isEmpty() - +test = get("ApilRnsr1").isEmpty() [map/map/swing/assign] path = ApilRnsr 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.*) +# dans allAuthorsRnsr +[assign] +path=ApilRnsr2 +value= get("authors").map("rnsr").flatten() + +[assign] +path = allApilRnsr1 +; value= get("authors").map("affiliations").map("ApilRnsr1") +value= get("authors").flatMap("affiliations").flatMap("ApilRnsr1") + +[assign] +path= ApilRnsr +value= get("allApilRnsr1").concat(self.ApilRnsr2).compact().uniq() + # Garde un identifiant [assign] path = sourceUidChain value = get("business.sourceUidChain") +#On ajoute un objet pour attribuer 'OA - Inconnu' aux null ou undefined +path = enrichments/openAccess/unpaywall/oaLocations +value = get("enrichments.openAccess.unpaywall.oaLocations",[{"hostType":"OA - Inconnu"}]) + # Supprime les champs inutiles pour les études bibliométriques [exchange] -value = omit(['business','origins','technical']) +value = omit(['business','origins','technical','allApilRnsr1','ApilRnsr2'])