Permalink
Browse files

ScienceDirect: fixes a buggy pdf query selector (#1661)

  • Loading branch information...
adomasven authored and zuphilip committed May 21, 2018
1 parent 18c3990 commit 85ecb63b799cd8a583fd8bf1a8ad4c2f13631349
Showing with 2 additions and 2 deletions.
  1. +2 −2 ScienceDirect.js
View
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2018-04-24 22:49:12"
"lastUpdated": "2018-05-21 08:53:02"
}
// attr()/text() v2
@@ -65,7 +65,7 @@ function getPDFLink(doc, onDone) {
// Some pages still have the PDF link available
var pdfURL = attr(doc, '#pdfLink', 'href');
if (!pdfURL) pdfURL = attr(doc, '[name="citation_pdf_url', 'content');
if (!pdfURL) pdfURL = attr(doc, '[name="citation_pdf_url"]', 'content');
if (pdfURL && pdfURL != '#') {
parseIntermediatePDFPage(pdfURL, onDone);
return;

0 comments on commit 85ecb63

Please sign in to comment.