{ "translatorID": "f26cfb71-efd7-47ae-a28c-d4d8852096bd", "label": "Cell Press", "creator": "Michael Berkowitz, Sebastian Karcher, Aurimas Vinckevicius", "target": "^https?://([^/]*\\.)?cell\\.com", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2014-03-31 15:18:16" } /* Cell Journals Translator Copyright (C) 2011 Sebastian Karcher and Aurimas Vinckevicius This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ function detectWeb(doc, url) { if(ZU.xpathText(doc, '//meta[@name="citation_journal_title"]/@content')) { return 'journalArticle'; } else if(url.indexOf('doSearch?') != -1 && ZU.xpath(doc, '//form[contains(@id, "Search")]\ //a[contains(@href, "abstract") or contains(@href, "fulltext")]') ) { return 'multiple'; } } function scrape(doc, url) { //use Embedded Metadata var translator = Zotero.loadTranslator('web'); translator.setTranslator('951c027d-74ac-47d4-a107-9c3069ab7b48'); translator.setDocument(doc); translator.setHandler('itemDone', function(obj, item) { //occasionally creators are not supplied, //but we can get them from the page if(!item.creators.length) { var creators = ZU.xpath(doc, '//div[@id="article_meta"]\ //p[./a[starts-with(@href,"mailto:")]]/strong'); for(var i=0, n=creators.length; i