From 570034a8eaaea9fdd3e6de1f86ef1ebea20063ca Mon Sep 17 00:00:00 2001
From: adam3smith <karcher@u.northwestern.edu>
Date: Thu, 30 Oct 2014 22:41:04 -0500
Subject: fix PDF download for PLoS

---
 PLoS Journals.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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");
-- 
cgit v1.2.3