{ "translatorID": "99b62ba4-065c-4e83-a5c0-d8cc0c75d388", "label": "Open Journal Systems", "creator": "Aurimas Vinckevicius", "target": "/article/view/", "minVersion": "2.1.9", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2014-02-23 00:53:05" } function detectWeb(doc, url) { if(ZU.xpathText(doc, '//a[@id="developedBy"]/@href') == 'http://pkp.sfu.ca/ojs/') { //some sites remove this return 'journalArticle'; } } function doWeb(doc, url) { //use Embeded Metadata var trans = Zotero.loadTranslator('web'); trans.setTranslator('951c027d-74ac-47d4-a107-9c3069ab7b48'); trans.setDocument(doc); trans.setHandler('itemDone', function(obj, item) { //abstract is supplied in DC:description, so it ends up in extra //abstractNote is pulled from description, which is same as title item.abstractNote = item.extra; item.extra = undefined; //if we still don't have abstract, we can try scraping from page if(!item.abstractNote) { item.abstractNote = ZU.xpathText(doc, '//div[@id="articleAbstract"]/div[1]'); } //some journals link to a PDF view page in the header, not the PDF itself for(var i=0; i