.*<\/strong>/)[0].replace(//g, "$").replace(/<\/sup>/g, "$"); aus = aus.replace(/\$[^$]*\$/g, ""); aus = aus.replace(/]*>/g, "$").replace(/<\/a[^>]*>/g, "$"); aus = aus.replace(/\$[^$]*\$/g, ""); aus = Zotero.Utilities.cleanTags(aus); aus = aus.split(/(,|and)/); for (var a in aus) { if (aus[a] != "," && aus[a] != "and" && aus[a].match(/\w+/)) { item.creators.push(Zotero.Utilities.cleanAuthor(Zotero.Utilities.unescapeHTML(Zotero.Utilities.trimInternal(aus[a]), "author"))); } } } catch(e) { Zotero.debug("No Authors listed."); } item.complete(); next(); }); }; var callbacks = [first, second]; if(detectWeb(doc, url) == "journalArticle") { second({item:unauthScrape(doc)}, function() {Zotero.done()}); } else { Zotero.Utilities.processAsync(sets, callbacks, function() {Zotero.done()}); } } Zotero.wait(); }