summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PLoS Journals.js4
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");