diff options
author | adam3smith <karcher@u.northwestern.edu> | 2014-10-30 22:41:04 -0500 |
---|---|---|
committer | adam3smith <karcher@u.northwestern.edu> | 2014-10-30 22:41:04 -0500 |
commit | 570034a8eaaea9fdd3e6de1f86ef1ebea20063ca (patch) | |
tree | 677b4be4e6ebb9e6a3ec7298e1a279bf1ad393ba | |
parent | a99a6ab287483895facfc4be8dc3910f78f74040 (diff) | |
download | zotero-translators-master.tar.gz zotero-translators-master.zip |
-rw-r--r-- | PLoS Journals.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/PLoS Journals.js b/PLoS Journals.js index 7be0b80..1d168c3 100644 --- a/PLoS Journals.js +++ b/PLoS Journals.js @@ -9,7 +9,7 @@ "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", - "lastUpdated": "2014-04-03 18:52:52" + "lastUpdated": "2014-10-31 03:37:51" } function detectWeb(doc, url) { @@ -61,10 +61,12 @@ function processTexts(texts) { for (var i in texts) { texts[i] = texts[i].replace(/;jsessionid[^;]+/, ""); //Strip sessionID string texts[i] = texts[i].replace(/\?.*/, ""); //Strip referrer messes + texts[i] = texts[i].replace(/#.*/, ""); //Strip page anchors in the URL var risLink = texts[i].replace("info", "getRisCitation.action?articleURI=info"); var pdfURL = texts[i].replace("info", "fetchObject.action?uri=info") + '&representation=PDF'; (function(risLink, pdfURL) { + Z.debug(pdfURL) ZU.doGet(risLink, function (text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); |