{ "translatorID": "bdaac15c-b0ee-453f-9f1d-f35d00c7a994", "label": "AMS Journals", "creator": "Michael Berkowitz", "target": "^https?://www\\.ams\\.org/journals/", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2016-09-03 20:50:31" } function detectWeb(doc, url) { if (url.match(/home\.html|\d{4}[^\/]*\/.+/)) { return "journalArticle"; } else if (getSearchResults(doc, true)) { return "multiple"; } } function getSearchResults(doc, checkOnly) { var items = {}; var found = false; //This is tailored for the issue pages and may need //adjusted for search (when this works again). var rows = ZU.xpath(doc, '//div[@class="contentList"]/dl'); for (var i=0; i