{ "translatorID": "9e306d5d-193f-44ae-9dd6-ace63bf47689", "label": "IngentaConnect", "creator": "Michael Berkowitz", "target": "^https?://(www\\.)?ingentaconnect\\.com", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2014-09-17 04:55:38" } function detectWeb(doc, url) { if (url.indexOf("article?") != -1 || url.indexOf("article;") != -1 || url.indexOf("/art") != -1) { return "journalArticle"; } //permalinks else if (url.indexOf("/content/") != -1 && getRisUrl(doc) ) { return "journalArticle"; } else if ((url.indexOf("search?") !=-1 || url.indexOf("search;") != -1) && getSearchResults(doc)) { return "multiple"; } } function getRisUrl(doc) { return ZU.xpathText(doc, '//div[contains(@class,"export-formats")]/ul/li/a[@title="EndNote Export"]/@href'); } function getSearchResults(doc) { var items = {}, found = false; var rows = doc.getElementsByClassName('searchResultTitle'); for (var i=0; i