diff --git a/wos-dumps/03-enrich.ini b/wos-dumps/03-enrich.ini index a4dbcf7..62daa79 100644 --- a/wos-dumps/03-enrich.ini +++ b/wos-dumps/03-enrich.ini @@ -125,25 +125,33 @@ [assign] path = AuthorsToPut -value = get("AuthorsNamesOnly").xor(self.AuthorsHasAddress).map(auth =>`${auth}: Unknown` ) +value = get("AuthorsNamesOnly") \ + .xor(self.AuthorsHasAddress) \ + .map(auth => `${auth}: Unknown`) [assign] -path = AuthorsWithAddressesHtml +path = AuthorsWithAddressesDisplay value = get("AuthorsWithAddress") \ - .groupBy("full_name") \ - .map((entries, author) => ({ \ - author: `${author}:`, \ - addresses: entries.flatMap(e => e.addresses.map(a => _.get(a, 'full_address', 'Unknown address'))).join("
- ")})) \ - .map(e => `${e.author} ${e.addresses}`).concat(self.AuthorsToPut) + .groupBy("full_name") \ + .map((entries, author) => ({ \ + author, \ + addresses: entries \ + .flatMap(e => e.addresses.map(a => _.get(a, 'full_address', 'Unknown address'))) \ + .join(" || ") \ + })) \ + .map(e => `${e.author}: ${e.addresses}`) \ + .concat(self.AuthorsToPut) [assign] -path = ReprintAddressesHtml +path = ReprintAddressesDisplay value = get("ReprintAddresses") \ - .map(entry => ({ \ - author: `${entry.full_name}:`, \ - addresses: entry.addresses.map(a => _.get(a, 'full_address', 'Unknown address')).join("
- ") \ - })) \ - .map(e => `${e.author} ${e.addresses}`) + .map(entry => ({ \ + author: entry.full_name, \ + addresses: entry.addresses \ + .map(a => _.get(a, 'full_address', 'Unknown address')) \ + .join(" || ") \ + })) \ + .map(e => `${e.author}: ${e.addresses}`) [exchange] value = omit(["Unpaywall","AuthorsNamesOnly","AuthorsHasAddress","AuthorsToPut"])