diff --git a/Springer Link.js b/Springer Link.js index e5656221857..ad47f8c4dbb 100644 --- a/Springer Link.js +++ b/Springer Link.js @@ -9,7 +9,7 @@ "inRepository": true, "translatorType": 4, "browserSupport": "gcsbv", - "lastUpdated": "2020-07-29 10:39:21" + "lastUpdated": "2020-09-18 10:39:21" } function detectWeb(doc, url) { @@ -184,6 +184,7 @@ function complementItem(doc, item) { } item.abstractNote = abstract.trim(); + if (item.abstractNote.match(/^null/)) item.abstractNote = ''; } else { let absSections = ZU.xpath(doc, '//*[(@id = "Abs2-content")]//p'); let sectionTitles = ZU.xpath(doc, '//*[(@id = "Abs2-content")]//*[contains(concat( " ", @class, " " ), concat( " ", "c-article__sub-heading", " " ))]'); @@ -196,7 +197,7 @@ function complementItem(doc, item) { item.abstractNote = abs.trim(); } item.abstractNote = titleTextGerman + "\n\n" + ZU.trimInternal(abs).replace(/^Abstract[:\s]*/, ""); - if (item.abstractNote == null) item.abstractNote = ''; + if (item.abstractNote.match(/^null/)) item.abstractNote = ''; } let tags = ZU.xpathText(doc, '//span[@class="Keyword"] | //*[contains(concat( " ", @class, " " ), concat( " ", "c-article-subject-list__subject", " " ))]//span');