{
"translatorID": "fe728bc9-595a-4f03-98fc-766f1d8d0936",
"label": "Wiley Online Library",
"creator": "Sean Takats, Michael Berkowitz, Avram Lyon and Aurimas Vinckevicius",
"target": "^https?://onlinelibrary\\.wiley\\.com[^\\/]*/(?:book|doi|advanced/search|search-web/cochrane|cochranelibrary/search|o/cochrane/(clcentral|cldare|clcmr|clhta|cleed|clabout)/articles/.+/sect0.html)",
"minVersion": "3.1",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsib",
"lastUpdated": "2014-04-24 04:17:46"
}
/*
Wiley Online Translator
Copyright (C) 2011 CHNM, Avram Lyon and Aurimas Vinckevicius
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 fixCase(authorName) {
if(typeof authorName != 'string') return authorName;
if(authorName.toUpperCase() == authorName ||
authorName.toLowerCase() == authorName) {
return ZU.capitalizeTitle(authorName, true);
}
return authorName;
}
function addCreators(item, creatorType, creators) {
if( typeof(creators) == 'string' ) {
creators = [creators];
} else if( !(creators instanceof Array) ) {
return;
}
for(var i=0, n=creators.length; i]+?src="([^"]+)"/i);
if(m) {
m[1] = ZU.unescapeHTML(m[1]);
Z.debug(m[1]);
item.attachments.push({url: m[1], title: 'Full Text PDF', mimeType: 'application/pdf'});
} else {
Z.debug('Could not determine PDF URL.');
m = text.match(/