{ "translatorID": "8c1f42d5-02fa-437b-b2b2-73afc768eb07", "label": "HighWire 2.0", "creator": "Matt Burton", "target": "^[^?#]+(?:/content/(?:[0-9]+[A-Z\\-]*/(?:suppl_)?[A-Z]?[0-9]|current|firstcite|early)|/search\\?.*?\\bsubmit=|/search(?:/results)?\\?fulltext=|/cgi/collection/.)", "minVersion": "3.0", "maxVersion": "", "priority": 250, "inRepository": true, "translatorType": 4, "browserSupport": "gcsv", "lastUpdated": "2014-08-26 03:44:11" } /* Translator for several Highwire journals. Example URLs: 1. Ajay Agrawal, Iain Cockburn, and John McHale, “Gone but not forgotten: knowledge flows, labor mobility, and enduring social relationships,” Journal of Economic Geography 6, no. 5 (November 2006): 571-591. http://joeg.oxfordjournals.org/content/6/5/571 : 2. Gordon L. Clark, Roberto Durán-Fernández, and Kendra Strauss, “‘Being in the market’: the UK house-price bubble and the intended structure of individual pension investment portfolios,” Journal of Economic Geography 10, no. 3 (May 2010): 331-359. http://joeg.oxfordjournals.org/content/10/3/331.abstract 3. Hans Maes, “Intention, Interpretation, and Contemporary Visual Art,” Brit J Aesthetics 50, no. 2 (April 1, 2010): 121-138. http://bjaesthetics.oxfordjournals.org/cgi/content/abstract/50/2/121 4. M L Giger et al., “Pulmonary nodules: computer-aided detection in digital chest images.,” Radiographics 10, no. 1 (January 1990): 41-51. http://radiographics.rsna.org/content/10/1/41.abstract 5. Mitch Leslie, "CLIP catches enzymes in the act," The Journal of Cell Biology 191, no. 1 (October 4, 2010): 2. http://jcb.rupress.org/content/191/1/2.2.short */ function getSearchResults(doc, url, checkOnly) { var xpaths = [ { searchx: '//li[contains(@class, "toc-cit") and \ not(ancestor::div/h2/a/text() = "Correction" or \ ancestor::div/h2/a/text() = "Corrections")]', titlex: './/h4' }, { searchx: '//div[@id="normal-search-results"]\ //*[contains(@class, "results-cit cit")]', titlex: './/*[contains(@class, "cit-title")]' }, { searchx: '//div[contains(@class, "toc-level level3")]\ //ul[@class="cit-list"]/div', titlex: './/span[contains(@class, "cit-title")]' }, { searchx: '//div[contains(@class,"main-content-wrapper")]\ //div[contains(@class, "highwire-article-citation")]', titlex: './/a[contains(@class, "highwire-cite-linked-title")]' } ]; var found = false, items = {}, linkx = '(.//a[not(contains(@href, "hasaccess.xhtml"))])[1]'; for(var i=0; i