Skip to content

Commit

Permalink
Update IEEE Xplore.js
Browse files Browse the repository at this point in the history
Co-authored-by: zoe-translates <[email protected]>
  • Loading branch information
dstillman and zoe-translates authored Sep 24, 2023
1 parent cdad93a commit 70de2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IEEE Xplore.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async function scrape(doc, url = doc.location.href) {
let bibtexURL = "/rest/search/citation/format?recordIds=" + arnumber + "&fromPage=&citations-format=citation-abstract&download-format=download-bibtex";
Z.debug(bibtexURL);
// metadata is downloaded in a JSON data field
let bibtex = await requestJSON(bibtexURL);
let bibtex = await requestJSON(bibtexURL, { headers: { Referer: url} });
bibtex = bibtex.data;
bibtex = ZU.unescapeHTML(bibtex.replace(/(&[^\s;]+) and/g, '$1;'));
// remove empty tag - we can take this out once empty tags are ignored
Expand Down

0 comments on commit 70de2f9

Please sign in to comment.