From 8037e6509e09c8c3efdbd6464a42b47ef16157f0 Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 19 Apr 2019 23:45:22 +0300 Subject: [PATCH] + english author info uploading --- src/importer.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/importer.js b/src/importer.js index e9b3ac8..a286296 100644 --- a/src/importer.js +++ b/src/importer.js @@ -207,6 +207,7 @@ class Importer { const $individInfo_eng = $author.find("individInfo[lang=ENG]"); const authorInfo_rus = this.getAuthorInfo($individInfo_rus); + const authorInfo_eng = this.getAuthorInfo($individInfo_eng); var authorInfo = {}; authorInfo.firstName = authorInfo_rus.firstName; @@ -216,6 +217,12 @@ class Importer { authorInfo['affiliation[ru_RU]'] = authorInfo_rus.affiliation; authorInfo['biography[ru_RU]'] = authorInfo_rus.biography; + + if ($individInfo_eng) { + authorInfo['affiliation[en_US]'] = authorInfo_eng.affiliation; + authorInfo['biography[en_US]'] = authorInfo_eng.biography; + } + authorInfoCollection.push(authorInfo); });