Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
![](https://scholarlyorphans.org/memento/20200720134642im_/https://github.githubassets.com/images/spinners/octocat-spinner-32-EAF2F5.gif)
{ | |
"translatorID": "17c974e6-7c4f-4ac8-93af-8d74debca110", | |
"label": "OhioLINK", | |
"creator": "Aurimas Vinckevicius", | |
"target": "^https?://journals\\.ohiolink\\.edu/ejc/article\\.cgi\\?", | |
"minVersion": "3.0", | |
"maxVersion": "", | |
"priority": 100, | |
"inRepository": true, | |
"translatorType": 4, | |
"browserSupport": "gcs", | |
"lastUpdated": "2017-01-01 15:28:48" | |
} | |
function detectWeb(doc, url) { | |
if (getRISLink(doc)) return "journalArticle"; | |
} | |
function getRISLink(doc) { | |
return ZU.xpathText(doc, '//p[@id="ris-export"]/a/@href'); | |
} | |
function doWeb(doc, url) { | |
ZU.doGet(getRISLink(doc), function(text) { | |
var trans = Zotero.loadTranslator('import'); | |
// RIS | |
trans.setTranslator('32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7'); | |
trans.setString(text); | |
trans.setHandler('itemDone', function(obj, item) { | |
var pdf = ZU.xpath(doc, '//div[@id="manifest"]/a[contains(@title,"PDF")]')[0]; | |
if (pdf) { | |
item.attachments.push({ | |
title: 'Full Text PDF', | |
url: pdf.href, | |
mimeType: 'application/pdf' | |
}); | |
} | |
item.complete(); | |
}); | |
trans.translate(); | |
}); | |
} |