Skip to content

Commit

Permalink
https://github.com/ubtue/DatenProbleme/issues/800
Browse files Browse the repository at this point in the history
  • Loading branch information
socheres authored Sep 29, 2020
1 parent bcf6f4c commit f16f60d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SAGE Journals.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2020-08-14 09:16:25"
"lastUpdated": "2020-08-14 12:47:25"
}

/*
Expand Down Expand Up @@ -48,10 +48,10 @@ function detectWeb(doc, url) {
function getSearchResults(doc, checkOnly) {
var items = {};
var found = false;
var rows = ZU.xpath(doc, '//span[contains(@class, "art_title")]/a[contains(@href, "/doi/full/10.") or contains(@href, "/doi/abs/10.") or contains(@href, "/doi/pdf/10.")][1]');
var rows = ZU.xpath(doc, '//span[contains(@class, "art_title")]/a[contains(@href, "/doi/full/10.") or contains(@href, "/doi/abs/10.") or contains(@href, "/doi/pdf/10.")][1] | //a[contains(concat( " ", @class, " " ), concat( " ", "ref", " " )) and contains(concat( " ", @class, " " ), concat( " ", "nowrap", " " ))] | //*[contains(concat( " ", @class, " " ), concat( " ", "hlFld-Title", " " ))]');
for (var i = 0; i < rows.length; i++) {
var href = rows[i].href;
var title = ZU.trimInternal(rows[i].textContent);
var title = ZU.trimInternal(rows[i].textContent.replace(/Citation|ePub.*|Abstract/, ''));
if (!href || !title) continue;
if (checkOnly) return true;
found = true;
Expand Down

0 comments on commit f16f60d

Please sign in to comment.