[Trunk | Explore]: 1. parsingFunctions.class.ts: a. [Bug fix] Make sure content of subjects is string | b. Commented unnecessary logs. 2. sitemaps/: Update sitemaps files (run on 7/10/2021).

This commit is contained in:
Konstantina Galouni 2021-10-08 10:37:40 +03:00
parent f854849462
commit aafe917099
1 changed files with 6 additions and 6 deletions

View File

@ -532,12 +532,12 @@ export class ParsingFunctions {
classifiedSubjects.get(subject.classname).push(subject.content);
} else {
if (subject.classid == "keyword") {
let content: string = subject.content;
console.log("keyword subject: "+content);
let content: string = subject.content+"";
// console.log("keyword subject: "+content);
if(content && content.toLowerCase().includes(this.notebookKeyword)) {
// console.log("included in keyword subject: "+content);
console.log("included");
// console.log("included");
this.notebookInSubjects = true;
if (classifiedSubjects == undefined) {
@ -554,14 +554,14 @@ export class ParsingFunctions {
subjects.push(content);
}
} else {
let content: string = subject.content;
let content: string = subject.content+"";
let classname: string = subject.classname;
console.log("other subject: "+classname + ": " +content);
// console.log("other subject: "+classname + ": " +content);
if( (content && content.toLowerCase().includes(this.notebookKeyword) ||
(classname && classname.toLowerCase().includes(this.notebookKeyword)))) {
// console.log("included in other subject: "+classname + ": "+content);
console.log("included");
// console.log("included");
this.notebookInSubjects = true;