{
"translatorID": "d1ac3b4f-1aa7-4a76-a97e-cf3580a41c37",
"label": "REDALYC",
"creator": "Sebastian Karcher",
"target": "^https?://(www.)?redalyc\\.(uaemex\\.mx|org)",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2017-06-04 09:52:26"
}
/*
Translator
Copyright (C) 2013 Sebastian Karcher
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
function detectWeb(doc,url) {
if (url.indexOf('articulo.oa?id=')>-1) {
return "journalArticle";
} else if (getSearchResults(doc, true)) {
return "multiple";
}
}
function getSearchResults(doc, checkOnly) {
var items = {};
var found = false;
var rows = ZU.xpath(doc, '//a[contains(@href, "articulo.oa?id=") and span]');
for (var i=0; i>>Political parties",
"Partidos políticos",
"comportamento eleitoral",
"electoral behavior",
"eleições presidenciais",
"presidential ele...",
"simpatia partidária"
],
"notes": [],
"seeAlso": []
}
]
},
{
"type": "web",
"url": "http://www.redalyc.org/BusquedaAutorPorNombre.oa?q=%22Maria%20do%20Socorro%20%20Sousa%20Braga%22",
"items": "multiple"
}
]
/** END TEST CASES **/