diff --git a/conditor-dumps/04-enrich.ini b/conditor-dumps/04-enrich.ini index 486aa7a..59f75c8 100644 --- a/conditor-dumps/04-enrich.ini +++ b/conditor-dumps/04-enrich.ini @@ -40,27 +40,13 @@ value = get("ws.loterre2xk") \ .map((orga) => orga.value["skos$prefLabel/$t"] ?? "n/a") -; [assign] -; path = ApilWsIsCnrs -; value = get("ws.rnsr").map("value").flatten() \ -; .map("etabAssoc").flatten() \ -; .map("etab.sigle") \ -; .filter(sigle => sigle === "CNRS") \ -; .thru(arr => Boolean(arr.length)) +[assign] ; path = ApilWsLaboSigle ; value = get("ws.rnsr").map("value").flatten().map("sigle") -; path = ApilWsLaboIntitule -; value = get("ws.rnsr").map("value").flatten().map("intitule") - -; [assign] -; path = tmp.authorsAffiliationsRnsr -; value = get("authors") \ -; .map("affiliations") \ -; .map(affiliations => affiliations.map( \ -; affiliation => affiliation.rnsr) \ -; ) +path = ApilWsLaboIntitule +value = get("authors").flatMap("affiliations").flatMap("ApilWsLaboIntitule").uniq() [assign] # Concatène et dédoublonne tous les RNSR @@ -70,10 +56,10 @@ # Supprime les accents et met en majuscules path = tmp.ApilWsLaboIntitule value = get("ApilWsLaboIntitule") \ - .map(str => str \ - .normalize("NFKD").replace(/[\u0300-\u036f]/g, "") \ - .toUpperCase() \ - ) + .map(str => str \ + .normalize("NFKD").replace(/[\u0300-\u036f]/g, "") \ + .toUpperCase() \ + ) [assign] path = ApilWsSigleLaboIntitule