Skip to content

Commit ff5dce4

Browse files
committed
ScienceDirect: Support redesign
Not fully rolled out yet (and I'm not getting it), but this should do the trick. https://forums.zotero.org/discussion/130388/cannot-pull-authors-from-new-sciencedirect-site
1 parent e734f42 commit ff5dce4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ScienceDirect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"inRepository": true,
1010
"translatorType": 4,
1111
"browserSupport": "gcsibv",
12-
"lastUpdated": "2025-12-02 18:01:21"
12+
"lastUpdated": "2026-03-19 20:29:30"
1313
}
1414

1515
function detectWeb(doc, url) {
@@ -500,7 +500,7 @@ async function scrape(doc, url, isSearchResult = false) {
500500
// On newer pages, there is an GET formular which is only there if
501501
// the user click on the export button, but we know how the url
502502
// in the end will be built.
503-
form = ZU.xpath(doc, '//div[@id="export-citation"]//button')[0];
503+
form = ZU.xpath(doc, '//div[@id="export-citation"]//button')[0] || doc.querySelector('#export-citation-popover');
504504
if (form) {
505505
Z.debug("Fetching RIS via GET form (new)");
506506
var pii = ZU.xpathText(doc, '//meta[@name="citation_pii"]/@content');

0 commit comments

Comments
 (0)