Skip to content

Commit

Permalink
https://github.com/ubtue/DatenProbleme/issues/1059
Browse files Browse the repository at this point in the history
  • Loading branch information
socheres authored Sep 18, 2020
1 parent ab971fb commit bcf6f4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Springer Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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", " " ))]');
Expand All @@ -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');
Expand Down

0 comments on commit bcf6f4c

Please sign in to comment.