+ More debug messages
This commit is contained in:
parent
0fe9f486e5
commit
ca59a2d6ca
|
|
@ -71,7 +71,7 @@ class Importer {
|
||||||
// Create journal if needed
|
// Create journal if needed
|
||||||
const exists = await this.client.journalExists(journalSlug);
|
const exists = await this.client.journalExists(journalSlug);
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
// console.error(`Journal with slug ${journalSlug} doesnt exist`);
|
console.info(`Creating journal ${journalSlug}`);
|
||||||
|
|
||||||
const journalTitle_rus = $xml("journalInfo[lang=RUS]")
|
const journalTitle_rus = $xml("journalInfo[lang=RUS]")
|
||||||
.find("title")
|
.find("title")
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ class Client {
|
||||||
|
|
||||||
if (!jsonData) Promise.reject();
|
if (!jsonData) Promise.reject();
|
||||||
|
|
||||||
console.log("Parsing journals..");
|
// console.log("Parsing journals..");
|
||||||
var journals = [];
|
var journals = [];
|
||||||
|
|
||||||
const $ = cheerio.load(jsonData.content);
|
const $ = cheerio.load(jsonData.content);
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ class Submission {
|
||||||
})
|
})
|
||||||
.then(jsonData => {
|
.then(jsonData => {
|
||||||
// TODO Check JSON has certain info
|
// TODO Check JSON has certain info
|
||||||
console.info("addAuthor result:", jsonData);
|
// console.info("addAuthor result:", jsonData);
|
||||||
|
|
||||||
if (!jsonData) Promise.reject();
|
if (!jsonData) Promise.reject();
|
||||||
})
|
})
|
||||||
|
|
@ -431,7 +431,7 @@ class Submission {
|
||||||
.then(data => {
|
.then(data => {
|
||||||
data = { ...data[0], ...data[1] };
|
data = { ...data[0], ...data[1] };
|
||||||
|
|
||||||
console.log("Galley data:", data);
|
// console.log("Galley data:", data);
|
||||||
this.galleyUpload(
|
this.galleyUpload(
|
||||||
this.info.materialFilePath,
|
this.info.materialFilePath,
|
||||||
data.genreId,
|
data.genreId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user