if (child.tagName=="STRONG"|| (child.nodeType==1&&ZU.xpathText(child, './/strong'))) {
if (abstractFound) {
break;// stop when another strong tag is found
} else {
abstractFound =true;
continue;// exclude the label "Abstract"
}
}
if (newItem.abstractNote) {
if (newItem.abstractNote.slice(-1) !=="\n") {
newItem.abstractNote+="\n\n";
}
newItem.abstractNote+=child.textContent;
} else {
newItem.abstractNote=child.textContent;
}
}
}
//attach PDF
var pdfUrl =ZU.xpath(doc, '//*[@id="mainRightN1"]/div[2]/a')[0].href;
@@ -139,7 +159,7 @@ function scrape(doc, url) {
confCode: ['رمز/شفرة الاجتماع', '会议代码', 'Meeting symbol/code', 'Symbole/code de la réunion', 'Cимвол/код мероприятия', 'Código/Símbolo de la reunión'],
session: ['Session', 'undefined', 'session'], //web page bug: in Russian page, session name is 'undefined'
tags: ['المعجم الكلمات الموضوع', 'AGROVOC', 'Agrovoc', 'АГРОВОК']
}
};
var existingMeta = {};
for (var i =0; i <metaText.length; i++) {
for (var key in textVariable) {
@@ -263,7 +283,7 @@ function getSearchResults(doc, checkOnly) {
var found =false;
var rows =ZU.xpath(doc, '//*[@class="item-image"]');
0 comments on commit
8b288f3