Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const teams = Utils.find_value_with_path(aff, 'teams'.split('.')) || [];
if (!iname) {
aff.full = 'NC';
} else {
const teams_str = teams.map(t => `#POS#LANG${t._id}`).join('\n');
aff.full = `${iname}\n${teams_str}`;
}
aff.status = aff.ined_status ? `#POS#LANG${aff.ined_status}` : 'NC';
return aff;
});
}
const mapping = {
'denormalization.type.label': CSVPipeline.mapping['denormalization.type.label'],
subtype: CSVPipeline.mapping.subtype,
'title.content': CSVPipeline.mapping['title.content'],
subtitles: CSVPipeline.mapping.subtitles,
lang: CSVPipeline.mapping.lang,
'denormalization.journal': CSVPipeline.mapping['denormalization.journal'],
'denormalization.conference': CSVPipeline.mapping['denormalization.conference'],
'denormalization.contributors': {
__default: {
transformers: [],
picker: async (c, pub, lang, key, memoizer) => {
if (!('authors' in memoizer)) {
memoizer.authors = {};
}
const arr = [];
let idx = 0;
for (const i in c) {
const co = c[i];
if (!co || !co.label) {