[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:
parent
f854849462
commit
aafe917099
|
@ -532,12 +532,12 @@ export class ParsingFunctions {
|
||||||
classifiedSubjects.get(subject.classname).push(subject.content);
|
classifiedSubjects.get(subject.classname).push(subject.content);
|
||||||
} else {
|
} else {
|
||||||
if (subject.classid == "keyword") {
|
if (subject.classid == "keyword") {
|
||||||
let content: string = subject.content;
|
let content: string = subject.content+"";
|
||||||
console.log("keyword subject: "+content);
|
// console.log("keyword subject: "+content);
|
||||||
|
|
||||||
if(content && content.toLowerCase().includes(this.notebookKeyword)) {
|
if(content && content.toLowerCase().includes(this.notebookKeyword)) {
|
||||||
// console.log("included in keyword subject: "+content);
|
// console.log("included in keyword subject: "+content);
|
||||||
console.log("included");
|
// console.log("included");
|
||||||
this.notebookInSubjects = true;
|
this.notebookInSubjects = true;
|
||||||
|
|
||||||
if (classifiedSubjects == undefined) {
|
if (classifiedSubjects == undefined) {
|
||||||
|
@ -554,14 +554,14 @@ export class ParsingFunctions {
|
||||||
subjects.push(content);
|
subjects.push(content);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let content: string = subject.content;
|
let content: string = subject.content+"";
|
||||||
let classname: string = subject.classname;
|
let classname: string = subject.classname;
|
||||||
console.log("other subject: "+classname + ": " +content);
|
// console.log("other subject: "+classname + ": " +content);
|
||||||
|
|
||||||
if( (content && content.toLowerCase().includes(this.notebookKeyword) ||
|
if( (content && content.toLowerCase().includes(this.notebookKeyword) ||
|
||||||
(classname && classname.toLowerCase().includes(this.notebookKeyword)))) {
|
(classname && classname.toLowerCase().includes(this.notebookKeyword)))) {
|
||||||
// console.log("included in other subject: "+classname + ": "+content);
|
// console.log("included in other subject: "+classname + ": "+content);
|
||||||
console.log("included");
|
// console.log("included");
|
||||||
|
|
||||||
this.notebookInSubjects = true;
|
this.notebookInSubjects = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue