{ "translatorID": "9575e804-219e-4cd6-813d-9b690cbfc0fc", "label": "PLoS Journals", "creator": "Michael Berkowitz, Rintze Zelle, and Sebastian Karcher", "target": "^https?://(www\\.plos(one|ntds|compbiol|pathogens|genetics|medicine|biology)\\.org|journals\\.plos\\.org(/\\w+)?)/(search|\\w+/article)", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2017-01-22 19:28:36" } /* ***** BEGIN LICENSE BLOCK ***** Copyright © 2012-2016 Rintze Zelle, Michael Berkowitz, and Sebastian Karcher This file is part of Zotero. Zotero is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Zotero is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Zotero. If not, see . ***** END LICENSE BLOCK ***** */ function detectWeb(doc, url) { if (url.indexOf("Search.action") != -1 || url.indexOf("browse.action") != -1 || url.indexOf("browseIssue.action") != -1 || url.indexOf("/search?") != -1 || url.indexOf("/search/") != -1 || url.indexOf("/issue") != -1) { return getSearchResults(doc, url, true) ? "multiple" : false; } else if (ZU.xpathText(doc, '//meta[@name="citation_title"]/@content')) { return "journalArticle"; } } function getSearchResults(doc, url, checkOnly) { var articlex = '//article//a[contains(@href, "/article?id=")]'; var articles = ZU.xpath(doc, articlex), items = {}, found = false; for (var i=0; i