+ More debug messages
This commit is contained in:
parent
0fe9f486e5
commit
ca59a2d6ca
|
|
@ -35,7 +35,7 @@ class Importer {
|
|||
when: answers => {
|
||||
return answers.selectedJournal == "[New journal]";
|
||||
},
|
||||
validate: function(value) {
|
||||
validate: function (value) {
|
||||
if (!value.match(/^[a-zA-Z0-9\/._-]+$/))
|
||||
return "Slug can only contain numbers, english letters, dashes (-) and underscores (_)";
|
||||
else if (journalChoices.includes(value))
|
||||
|
|
@ -71,7 +71,7 @@ class Importer {
|
|||
// Create journal if needed
|
||||
const exists = await this.client.journalExists(journalSlug);
|
||||
if (!exists) {
|
||||
// console.error(`Journal with slug ${journalSlug} doesnt exist`);
|
||||
console.info(`Creating journal ${journalSlug}`);
|
||||
|
||||
const journalTitle_rus = $xml("journalInfo[lang=RUS]")
|
||||
.find("title")
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ class Client {
|
|||
|
||||
if (!jsonData) Promise.reject();
|
||||
|
||||
console.log("Parsing journals..");
|
||||
// console.log("Parsing journals..");
|
||||
var journals = [];
|
||||
|
||||
const $ = cheerio.load(jsonData.content);
|
||||
|
|
|
|||
|
|
@ -370,7 +370,7 @@ class Submission {
|
|||
})
|
||||
.then(jsonData => {
|
||||
// TODO Check JSON has certain info
|
||||
console.info("addAuthor result:", jsonData);
|
||||
// console.info("addAuthor result:", jsonData);
|
||||
|
||||
if (!jsonData) Promise.reject();
|
||||
})
|
||||
|
|
@ -431,7 +431,7 @@ class Submission {
|
|||
.then(data => {
|
||||
data = { ...data[0], ...data[1] };
|
||||
|
||||
console.log("Galley data:", data);
|
||||
// console.log("Galley data:", data);
|
||||
this.galleyUpload(
|
||||
this.info.materialFilePath,
|
||||
data.genreId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user