rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
function (args) { let arg = args.literalArg; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); liberator.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(window.content, arg); },
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title);
function (args) { let arg = args.literalArg; let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title); liberator.assert(!arg || titles.indexOf(arg) >= 0, "E475: Invalid argument: " + arg); if (options["usermode"]) options["usermode"] = false; window.stylesheetSwitchAll(window.content, arg); },
l=0,q=b.length;l<q;l++){if(k.indexOf(" "+b[l]+" ")<0)h.className+=" "+b[l]}else h.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(p){var o=d(this);o.removeClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string"||a===v)for(var b=(a||"").split(W),e=0,g=this.length;e<g;e++){var h=this[e];if(h.nodeType===1&&h.className)if(a){for(var k=(" "+h.className+" ").replace(ia," "),l=0,q=b.length;l<q;l++)k=k.replace(" "+b[l]+" "," ");h.className=k.substring(1,
b){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&e.push(a);return e}});var ia=/[\n\t]/g,W=/\s+/,Ea=/\r/g,Fa=/href|src|style/,Ga=/(button|input)/i,Ha=/(button|input|object|select|textarea)/i,Ia=/^(a|area)$/i,ja=/radio|checkbox/;c.fn.extend({attr:function(a,b){return S(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(p){var o=c(this);o.addClass(a.call(this, p,o.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(W),e=0,f=this.length;e<f;e++){var h=this[e];if(h.nodeType===1)if(h.className)for(var k=" "+h.className+" ",l=0,q=b.length;l<q;l++){if(k.indexOf(" "+b[l]+" ")<0)h.className+=" "+b[l]}else h.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var o=c(this);o.removeClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string"||a===v)for(var b=(a||"").split(W),e=0,f=this.length;e<f;e++){var h=
l=0,q=b.length;l<q;l++){if(k.indexOf(" "+b[l]+" ")<0)h.className+=" "+b[l]}else h.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(p){var o=d(this);o.removeClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string"||a===v)for(var b=(a||"").split(W),e=0,g=this.length;e<g;e++){var h=this[e];if(h.nodeType===1&&h.className)if(a){for(var k=(" "+h.className+" ").replace(ia," "),l=0,q=b.length;l<q;l++)k=k.replace(" "+b[l]+" "," ");h.className=k.substring(1,
window.setTimeout(function ()
run_new_query = (function ()
window.setTimeout(function () { BF.include("js/secondary.js", { settings: settings, topBar: viewPort.firstChild, viewPort_num: viewPort_num, page: page }); }, 1000);
BF.include("js/secondary.js", { settings: settings, topBar: viewPort.firstChild, viewPort_num: viewPort_num, page: page }); }, 1000);
function determine_search_type(search_terms) { var exclude_json = "", grammar_attribute_json = "", grammar_attributes, grammar_json = "", grammar_search_term, split_start, split_pos; if ((split_pos = search_terms.indexOf(BF.lang.grammar_marker)) != -1) { grammar_search_term = search_terms.slice(0, split_pos); if (grammar_search_term == "*") { grammar_search_term = ""; } grammar_json = '["' + window.encodeURIComponent(grammar_search_term.replace(/(["'])/g, "\\$1")) + '",['; grammar_attributes = search_terms.slice(split_pos + BF.lang.grammar_marker_len); split_start = 0; do { split_pos = grammar_attributes.indexOf(BF.lang.grammar_separator, split_start); if (grammar_attributes.slice(split_start, split_start + 1) === " ") { ++split_start; } if (grammar_attributes.slice(split_start, split_start + 1) == "-") { ++split_start; exclude_json += "1,"; } else { exclude_json += "0,"; } if (split_pos > -1) { grammar_attribute_json += BF.lang.grammar_keywords[grammar_attributes.slice(split_start, split_pos).trim()] + ","; split_start = split_pos + 1; } else { return [ { query: grammar_json + grammar_attribute_json + BF.lang.grammar_keywords[grammar_attributes.slice(split_start).trim()] + "],[" + exclude_json.slice(0, -1) + "]]", type: grammatical_search } ]; } } while (true); } return [ { query: window.encodeURIComponent(search_terms), type: standard_search } ]; } return function (raw_query) { var options = {raw_query: raw_query}, query = BF.lang.prepare_search(raw_query).trim(), verse_id; if (query === "") { return; } verse_id = BF.lang.determine_reference(query); if (verse_id !== false) { if (verse_id > 19003000 && verse_id < 19145002 && verse_id % 1000 === 1) { --verse_id; } options.verse = verse_id; options.type = verse_lookup; } else { query = determine_search_type(query); if (query.length > 1) { options.query = query; options.type = mixed_search; } else { options.query = query[0].query; options.type = query[0].type; } } query_manager.query(options); content_manager.clear_scroll(); document.title = raw_query + " - " + BF.lang.app_name; q_obj.onblur = function () {}; if (options.type !== verse_lookup) { options.highlight = BF.prepare_highlighter(query); } if (options.type !== verse_lookup || options.verse == "1001001") { content_manager.reached_top(); } }; }());
window.setTimeout(function () { BF.include("js/secondary.js", { settings: settings, topBar: viewPort.firstChild, viewPort_num: viewPort_num, page: page }); }, 1000);
mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, false, count);
function (count) { try { let author = gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor.toLowerCase(); mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, false, count); } catch (e) { liberator.beep(); } },
mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, false, count);
var leaveWhisper = new ServerReq('leavewhisper.php',function(response) { whisper.destroy(); $('content').setStyles(contentSize); });
response.whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); if(me.uid != whisperer.uid) addUser(whisperer,whisper); });
var leaveWhisper = new ServerReq('leavewhisper.php',function(response) { whisper.destroy(); $('content').setStyles(contentSize); });
$.getJSON('cgi-bin/graphdefs.cgi', function(data) { graph_def_values = data.graph_defs for ( var def in graph_def_values) { $('#graphdef-name').append( '<option value="' + def + '">' + def + '</option>'); } });
$('#hosts a, #plugins a').live('click', function() { $(this).addClass("selected"); });
$.getJSON('cgi-bin/graphdefs.cgi', function(data) { graph_def_values = data.graph_defs for ( var def in graph_def_values) { $('#graphdef-name').append( '<option value="' + def + '">' + def + '</option>'); } });
response.whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); if(me.uid != whisperer.uid) addUser(whisperer,whisper); });
var leaveWhisper = new ServerReq('leavewhisper.php',function(response) { whisper.destroy(); $('content').setStyles(contentSize); });
response.whisperers.each(function(whisperer) { whisperer.uid = whisperer.uid.toInt(); if(me.uid != whisperer.uid) addUser(whisperer,whisper); });
var request = new ServerReq('demote.php',function (response) {
div.addEvent('click', function(e) { e.stop(); if(e.control && e.alt) { var request = new ServerReq('demote.php',function (response) {
var request = new ServerReq('demote.php',function (response) { MBchat.updateables.poller.pollResponse(response); }).transmit({
'lid':MBchat.updateables.poller.getLastId(), 'rid':room.rid}); } });
var request = new ServerReq('demote.php',function (response) { MBchat.updateables.poller.pollResponse(response); }).transmit({
return this.each(function() { var form = $(this), validator = new Validator(form.find(":input"), form, conf); form.data("validator", validator); });
inputs.filter(":checkbox, select").filter("[required]").change(function(e) { var el = $(this); if (this.checked || (el.is("select") && $(this).val())) { effects[conf.effect][1].call(self, el, e); } });
return this.each(function() { var form = $(this), validator = new Validator(form.find(":input"), form, conf); form.data("validator", validator); });
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title);
.filter(function (engine) engine.supportsResponseType("application/x-suggestions+json"));
let titles = buffer.alternateStyleSheets.map(function (stylesheet) stylesheet.title);
var el = new Validator($(this), conf); $(this).data("validator", el); });
var form = $(this), validator = new Validator(form.find(":input"), form, conf); form.data("validator", validator); });
return this.each(function() { var el = new Validator($(this), conf); $(this).data("validator", el); });
k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var k=d(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=d(this),q=b,p=a.split(W);h=p[k++];){q=g?q:!l.hasClass(h);l[q?"addClass":"removeClass"](h)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||
p,o.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(W),e=0,f=this.length;e<f;e++){var h=this[e];if(h.nodeType===1)if(h.className)for(var k=" "+h.className+" ",l=0,q=b.length;l<q;l++){if(k.indexOf(" "+b[l]+" ")<0)h.className+=" "+b[l]}else h.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(p){var o=c(this);o.removeClass(a.call(this,p,o.attr("class")))});if(a&&typeof a==="string"||a===v)for(var b=(a||"").split(W),e=0,f=this.length;e<f;e++){var h=
k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var k=d(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=d(this),q=b,p=a.split(W);h=p[k++];){q=g?q:!l.hasClass(h);l[q?"addClass":"removeClass"](h)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||
function (count) { try { let author = gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor.toLowerCase(); mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, true, count); } catch (e) { liberator.beep(); } },
mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, false, count);
function (count) { try { let author = gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor.toLowerCase(); mail.selectMessage(function (msg) msg.mime2DecodedAuthor.toLowerCase().indexOf(author) == 0, true, true, true, count); } catch (e) { liberator.beep(); } },
closeBox.addEvent('click', function(e) { leaveWhisper.transmit({'wid': wid});
var leaveWhisper = new ServerReq('leavewhisper.php',function(response) { whisper.destroy(); $('content').setStyles(contentSize);
closeBox.addEvent('click', function(e) { leaveWhisper.transmit({'wid': wid}); });
span.addEvent('mousedown',function (e) { MBchat.updateables.whispers.whisperWith(user,span,e);
onlineReq = new ServerReq('client/online.php',function(response) { onlineList.removeClass('loading'); onlineList.addClass(room.type); currentRid = loadingRid; loadingRid = -1; onlineList.empty(); var users = response.online; if (users.length > 0 ) { users.each(function(user) { user.uid = user.uid.toInt(); addUser(user);
span.addEvent('mousedown',function (e) { MBchat.updateables.whispers.whisperWith(user,span,e); });
} lastId = response.lastid; });
span.addEvent('mousedown',function (e) { MBchat.updateables.whispers.whisperWith(user,span,e); });
$('#graphdef-name').change(function() { var gdef = $(this).val(); var values = graph_def_values[gdef]; $('#graphdef-content').val(values.join('\n')); });
$(window).scroll(function () { lazy_check(); });
$('#graphdef-name').change(function() { var gdef = $(this).val(); var values = graph_def_values[gdef]; $('#graphdef-content').val(values.join('\n')); });
var leaveWhisper = new ServerReq('leavewhisper.php',function(response) { whisper.destroy(); $('content').setStyles(contentSize);
closeBox.addEvent('click', function(e) { leaveWhisper.transmit({'wid': wid});
var leaveWhisper = new ServerReq('leavewhisper.php',function(response) { whisper.destroy(); $('content').setStyles(contentSize); });
span.addEvent('mousedown',function (e) { MBchat.updateables.whispers.whisperWith(user,span,e); });
var request = new ServerReq('demote.php',function (response) { MBchat.updateables.poller.pollResponse(response); }).transmit({
span.addEvent('mousedown',function (e) { MBchat.updateables.whispers.whisperWith(user,span,e); });
function (args) { tabs.reload(config.browser.mCurrentTab, args.bang); },
return engines.map(function (engine) [engine.alias, engine.description]);
function (args) { tabs.reload(config.browser.mCurrentTab, args.bang); },
k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var k=d(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=d(this),q=b,p=a.split(W);h=p[k++];){q=g?q:!l.hasClass(h);l[q?"addClass":"removeClass"](h)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className|| a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,e=this.length;b<e;b++)if((" "+this[b].className+" ").replace(ia," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(d.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(d.nodeName(b,"select")){var e=b.selectedIndex,g=[],h=b.options;b=b.type==="select-one";if(e<0)return null;var k=b?e:0;for(e=b?e+1:h.length;k<e;k++){var l=h[k];if(l.selected){a=
this[e];if(h.nodeType===1&&h.className)if(a){for(var k=(" "+h.className+" ").replace(ia," "),l=0,q=b.length;l<q;l++)k=k.replace(" "+b[l]+" "," ");h.className=k.substring(1,k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(h){var k=c(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=c(this),q=b,p=a.split(W);h=p[k++];){q=f?q:!l.hasClass(h);
k.length-1)}else h.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(d.isFunction(a))return this.each(function(h){var k=d(this);k.toggleClass(a.call(this,h,k.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var h,k=0,l=d(this),q=b,p=a.split(W);h=p[k++];){q=g?q:!l.hasClass(h);l[q?"addClass":"removeClass"](h)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,e=this.length;b<e;b++)if((" "+this[b].className+" ").replace(ia," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(d.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(d.nodeName(b,"select")){var e=b.selectedIndex,g=[],h=b.options;b=b.type==="select-one";if(e<0)return null;var k=b?e:0;for(e=b?e+1:h.length;k<e;k++){var l=h[k];if(l.selected){a=
var fieldContent = Zotero.Utilities.cleanString(lines[i].substr(6));
var fieldContent = Zotero.Utilities.trimInternal(lines[i].substr(6));
Zotero.Utilities.HTTP.doPost(url, post, function(text) { var lines = text.split("\n"); var haveStarted = false; var newItemRe = /^<[0-9]+>/; var newItem = new Zotero.Item("journalArticle"); for(var i in lines) { if(lines[i].substring(0,3) == "<1>") { haveStarted = true; } else if(newItemRe.test(lines[i])) { newItem.complete(); newItem = new Zotero.Item("journalArticle"); } else if(lines[i].substr(2, 4) == " - " && haveStarted) { var fieldCode = lines[i].substr(0, 2); var fieldContent = Zotero.Utilities.cleanString(lines[i].substr(6)); if(fieldCode == "TI") { newItem.title = fieldContent.replace(/\. \[\w+\]$/, ""); } else if(fieldCode == "AU") { var names = fieldContent.split(", "); if(names.length >= 2) { // get rid of the weird field codes if(names.length == 2) { names[1] = names[1].replace(/ [\+\*\S\[\]]+$/, ""); } names[1] = names[1].replace(/ (?:MD|PhD|[BM]Sc|[BM]A|MPH|MB)$/i, ""); newItem.creators.push({firstName:names[1], lastName:names[0], creatorType:"author"}); } else if (fieldContent.match(/^(.*) [A-Z]{1,3}$/)) { names = fieldContent.match(/^(.*) ([A-Z]{1,3})$/); newItem.creators.push({firstName:names[2], lastName:names[1], creatorType:"author"}); } else { newItem.creators.push({lastName:names[0], isInstitution:true, creatorType:"author"}); } } else if(fieldCode == "SO") { if (fieldContent.match(/\d{4}/)) { newItem.date = fieldContent.match(/\d{4}/)[0]; } if (fieldContent.match(/(\d+)\((\d+)\)/)) { var voliss = fieldContent.match(/(\d+)\((\d+)\)/); newItem.volume = voliss[1]; newItem.issue = voliss[2]; } if (fieldContent.match(/vol\.\s*(\d+)/)) { newItem.volume = fieldContent.match(/vol\.\s*(\d+)/)[1]; } if (fieldContent.match(/vol\.\s*\d+\s*,\s*no\.\s*(\d+)/)) { newItem.issue = fieldContent.match(/vol\.\s*\d+\s*,\s*no\.\s*(\d+)/)[1]; } if (fieldContent.match(/\d+\-\d+/)) newItem.pages = fieldContent.match(/\d+\-\d+/)[0]; if (fieldContent.match(/pp\.\s*(\d+\-\d+)/)) newItem.pages = fieldContent.match(/pp\.\s*(\d+\-\d+)/)[1]; if (fieldContent.match(/[J|j]ournal/)) { newItem.publicationTitle = fieldContent.match(/[J|j]ournal[-\s\w]+/)[0]; } else { newItem.publicationTitle = Zotero.Utilities.trimInternal(fieldContent.split(/(\.|;|(,\s*vol\.))/)[0]); } } else if(fieldCode == "SB") { newItem.tags.push(Zotero.Utilities.superCleanString(fieldContent)); } else if(fieldCode == "KW") { newItem.tags.push(fieldContent.split(/; +/)); } else if(fieldCode == "DB") { newItem.repository = "Ovid ("+fieldContent+")"; } else if(fieldCode == "DI") { newItem.DOI = fieldContent; } else if(fieldCode == "DO") { newItem.DOI = fieldContent; } else if(fieldCode == "DP") { newItem.date = fieldContent; } else if(fieldCode == "IS") { newItem.ISSN = fieldContent; } else if(fieldCode == "AB") { newItem.abstractNote = fieldContent; } } } // last item is complete if(haveStarted) { newItem.complete(); } Zotero.done(); });
tokens.each(function(tok) { if (tok.token !== '-') { if (scratch.length > 0) scratch += ' '; scratch += tok.token; } });
key.accidentals.each(function(acc) { acc.verticalPos -= 14; });
tokens.each(function(tok) { if (tok.token !== '-') { if (scratch.length > 0) scratch += ' '; scratch += tok.token; } });
if (item.values[0].type == "singleValue")
if (item.values[0].type == "singleValue") {
htmlFragment += generateRowFragmentFromArray('Parameters', record.rangeSet.axisDescriptions, 1, function(item) { if (item.values[0].type == "singleValue") return item.label + ': ' + item.values.length + ' singleValue elements'; else return item.label + ': ' + item.values.length + ' interval elements'; });
else
} else {
htmlFragment += generateRowFragmentFromArray('Parameters', record.rangeSet.axisDescriptions, 1, function(item) { if (item.values[0].type == "singleValue") return item.label + ': ' + item.values.length + ' singleValue elements'; else return item.label + ': ' + item.values.length + ' interval elements'; });
}
htmlFragment += generateRowFragmentFromArray('Parameters', record.rangeSet.axisDescriptions, 1, function(item) { if (item.values[0].type == "singleValue") return item.label + ': ' + item.values.length + ' singleValue elements'; else return item.label + ': ' + item.values.length + ' interval elements'; });
$.each("onBeforeSeek,onSeek,onAddItem".split(","), function(i, name) {
$.each(['onBeforeSeek', 'onSeek', 'onAddItem'], function(i, name) {
$.each("onBeforeSeek,onSeek,onAddItem".split(","), function(i, name) { // configuration if ($.isFunction(conf[name])) { $(self).bind(name, conf[name]); } self[name] = function(fn) { $(self).bind(name, fn); return self; }; });
$.post("/studydeck/decks/delete",{id:deckId},function(){$("#userDeckRow"+ deckId).hide("fast");});
$.post("/decks/delete",{id:deckId},function(){$("#userDeckRow"+ deckId).hide("fast");});
$.post("/studydeck/decks/delete",{id:deckId},function(){$("#userDeckRow"+ deckId).hide("fast");});
return $(this).text().match(/^X:/m);
return $(this).text().match(/^\s*X:/m);
var children = $(elem).children().filter(function() { return $(this).text().match(/^X:/m); });
}
};
return function () { oGeodesyMarker.yearChecked(year, yearChkId, yearHrefId, monthsDivId, datesDivId); }
var children = $(elem).children().filter(function() {
var newcurrentset = currentset.map(function(i,elem){ var children = $(elem).children().filter(function() {
var children = $(elem).children().filter(function() { var str = getABCText(this); return getABCText(this).match(/^\s*X:/m); });
if (children.length===0) { return elem; } else { cont = true; return children.get(); } });
var children = $(elem).children().filter(function() { var str = getABCText(this); return getABCText(this).match(/^\s*X:/m); });
acc.verticalPos -= 14;
acc.verticalPos -= 7; if (acc.verticalPos >= 11 || (acc.verticalPos === 10 && acc.acc === 'flat')) acc.verticalPos -= 7;
key.accidentals.each(function(acc) { acc.verticalPos -= 14; });
a)if(b=="delete"){l.cssRules?l.deleteRule(n):l.removeRule(n);return true}else return o;++n}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("href",a);f.setAttribute("type","text/css");f.setAttribute("rel","stylesheet");b!=""&&b!="all"&&f.setAttribute("media",
do{o=null;if(l.cssRules)o=l.cssRules[n];else if(l.rules)o=l.rules[n];if(o&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){l.cssRules?l.deleteRule(n):l.removeRule(n);return true}else return o;++n}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("href",
a)if(b=="delete"){l.cssRules?l.deleteRule(n):l.removeRule(n);return true}else return o;++n}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("href",a);f.setAttribute("type","text/css");f.setAttribute("rel","stylesheet");b!=""&&b!="all"&&f.setAttribute("media",
let mailargs = {}; mailargs.to = args.join(", "); mailargs.subject = args["-subject"]; mailargs.bcc = args["-bcc"]; mailargs.cc = args["-cc"]; mailargs.body = args["-text"]; mailargs.attachments = args["-attachment"] || [];
let count = Math.max(0, args.count - 1); let arg = args.literalArg || "Inbox";
function (args) { let mailargs = {}; mailargs.to = args.join(", "); mailargs.subject = args["-subject"]; mailargs.bcc = args["-bcc"]; mailargs.cc = args["-cc"]; mailargs.body = args["-text"]; mailargs.attachments = args["-attachment"] || []; let addresses = args; if (mailargs.bcc) addresses = addresses.concat(mailargs.bcc); if (mailargs.cc) addresses = addresses.concat(mailargs.cc); // TODO: is there a better way to check for validity? if (addresses.some(function (recipient) !(/\S@\S+\.\S/.test(recipient)))) return void liberator.echoerr("Exxx: Invalid e-mail address"); mail.composeNewMail(mailargs); },
let addresses = args; if (mailargs.bcc) addresses = addresses.concat(mailargs.bcc); if (mailargs.cc) addresses = addresses.concat(mailargs.cc); if (addresses.some(function (recipient) !(/\S@\S+\.\S/.test(recipient)))) return void liberator.echoerr("Exxx: Invalid e-mail address"); mail.composeNewMail(mailargs);
let folder = mail.getFolders(arg, true, true)[count]; if (!folder) liberator.echoerr("Exxx: Folder \"" + arg + "\" does not exist"); else if (liberator.forceNewTab) MsgOpenNewTabForFolder(folder.URI); else SelectFolder(folder.URI);
function (args) { let mailargs = {}; mailargs.to = args.join(", "); mailargs.subject = args["-subject"]; mailargs.bcc = args["-bcc"]; mailargs.cc = args["-cc"]; mailargs.body = args["-text"]; mailargs.attachments = args["-attachment"] || []; let addresses = args; if (mailargs.bcc) addresses = addresses.concat(mailargs.bcc); if (mailargs.cc) addresses = addresses.concat(mailargs.cc); // TODO: is there a better way to check for validity? if (addresses.some(function (recipient) !(/\S@\S+\.\S/.test(recipient)))) return void liberator.echoerr("Exxx: Invalid e-mail address"); mail.composeNewMail(mailargs); },
$('#addValue-'+ id).live('keypress', function(evt) {
$('#addValue-'+ id).live('keyup', function(evt) {
$('#addValue-'+ id).live('keypress', function(evt) { // grab code var code = (evt.which||evt.charCode||evt.keyCode); // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') $('#addButton-'+ id).addClass('disabledButton'); else $('#addButton-'+ id).removeClass('disabledButton'); });
},commit:function(h,i){if(this.getValue())i.setAttribute('summary',this.getValue());else i.removeAttribute('summary');}}]}]}]};};CKEDITOR.dialog.add('table',function(e){return d(e,'table');});CKEDITOR.dialog.add('tableProperties',function(e){return d(e,'tableProperties');});})();
},commit:function(i,j){if(this.getValue())j.setAttribute('cellSpacing',this.getValue());else j.removeAttribute('cellSpacing');}},{type:'text',id:'txtCellPad',style:'width:3em',label:e.lang.table.cellPad,'default':1,validate:CKEDITOR.dialog.validate.number(e.lang.table.invalidCellPadding),setup:function(i){this.setValue(i.getAttribute('cellPadding')||'');},commit:function(i,j){if(this.getValue())j.setAttribute('cellPadding',this.getValue());else j.removeAttribute('cellPadding');}}]}]},{type:'html',align:'right',html:''},{type:'vbox',padding:0,children:[{type:'text',id:'txtCaption',label:e.lang.table.caption,setup:function(i){var j=i.getElementsByTag('caption');if(j.count()>0){var k=j.getItem(0);k=k.getChild(0)&&k.getChild(0).getText()||'';k=CKEDITOR.tools.trim(k);this.setValue(k);}},commit:function(i,j){var k=this.getValue(),l=j.getElementsByTag('caption');if(k){if(l.count()>0){l=l.getItem(0);l.setHtml('');}else{l=new CKEDITOR.dom.element('caption',e.document);if(j.getChildCount())l.insertBefore(j.getFirst());else l.appendTo(j);}l.append(new CKEDITOR.dom.text(k,e.document));}else if(l.count()>0)for(var m=l.count()-1;m>=0;m--)l.getItem(m).remove();}},{type:'text',id:'txtSummary',label:e.lang.table.summary,setup:function(i){this.setValue(i.getAttribute('summary')||'');},commit:function(i,j){if(this.getValue())j.setAttribute('summary',this.getValue());else j.removeAttribute('summary');}}]}]},h&&h.createAdvancedTab(e)]};};CKEDITOR.dialog.add('table',function(e){return d(e,'table');});CKEDITOR.dialog.add('tableProperties',function(e){return d(e,'tableProperties');});})();
},commit:function(h,i){if(this.getValue())i.setAttribute('summary',this.getValue());else i.removeAttribute('summary');}}]}]}]};};CKEDITOR.dialog.add('table',function(e){return d(e,'table');});CKEDITOR.dialog.add('tableProperties',function(e){return d(e,'tableProperties');});})();
$('#metaData p').each(function()
$('input.block_extra_id').each(function()
$('#metaData p').each(function() { // hide if needed if(i >= itemsToShow) $(this).hide(); // show otherwise else $(this).show(); // increment i++; });
if(i >= itemsToShow) $(this).hide(); else $(this).show(); i++;
var value = $(this).val(); var id = $(this).attr('id').replace('blockExtraId', ''); jsBackend.pages.extras.changeExtra(value, id);
$('#metaData p').each(function() { // hide if needed if(i >= itemsToShow) $(this).hide(); // show otherwise else $(this).show(); // increment i++; });
var url = urls.shift(); var is = isRe.exec(url); var pu = puRe.exec(url); var arnumber = articleRe.exec(url);
translator.setHandler("itemDone", function(obj, item) { var url = urls.shift(); var is = isRe.exec(url); var pu = puRe.exec(url); var arnumber = articleRe.exec(url); if(item.notes[0] && item.notes[0].note) { item.abstractNote = item.notes[0].note; item.notes = new Array(); } var dupes = new Array(); for (var i = 0 ; i < item.creators.length - 1 ; i++) { if (item.creators[i].lastName + item.creators[i].firstName == item.creators[i+1].lastName + item.creators[i].firstName) { dupes.push(i + 1); } } for (var i in dupes) { delete item.creators[dupes[i]]; } var dupes = []; for (var i = 0 ; i < item.creators.length ; i++) { if (item.creators[i]) { dupes.push(item.creators[i]); } } item.creators = dupes; var newurls = [url]; Zotero.Utilities.processDocuments(newurls, function(newDoc) { var xpath = '//p[@class="bodyCopyBlackLargeSpaced"]'; var textElmt = newDoc.evaluate(xpath, newDoc, namespace, XPathResult.ANY_TYPE, null).iterateNext(); if (textElmt) { var m = textElmt.textContent.match(/Identifier:\s+([^\n]*)\n/); if (m){ item.DOI = m[1]; } } var pdfpath = '//td[2][@class="bodyCopyBlackLarge"]/a[@class="bodyCopy"][substring(text(), 1, 3) = "PDF"]'; var pdfurlElmt = newDoc.evaluate(pdfpath, newDoc, namespace, XPathResult.ANY_TYPE, null).iterateNext(); if (pdfurlElmt) { pdfurlElmt.href = pdfurlElmt.href.replace("/stamp.jsp", "PDF/getPDF.jsp"); item.attachments = [{url:pdfurlElmt.href, title:"IEEE Xplore Full Text PDF", mimeType:"application/pdf"}]; } item.complete(); }, function() {Zotero.done();}); });
var dupes = new Array(); for (var i = 0 ; i < item.creators.length - 1 ; i++) { if (item.creators[i].lastName + item.creators[i].firstName == item.creators[i+1].lastName + item.creators[i].firstName) { dupes.push(i + 1); } }
if(doi) { item.DOI = doi[1]; } if(ja) { item.journalAbbreviation = ja[1]; }
translator.setHandler("itemDone", function(obj, item) { var url = urls.shift(); var is = isRe.exec(url); var pu = puRe.exec(url); var arnumber = articleRe.exec(url); if(item.notes[0] && item.notes[0].note) { item.abstractNote = item.notes[0].note; item.notes = new Array(); } var dupes = new Array(); for (var i = 0 ; i < item.creators.length - 1 ; i++) { if (item.creators[i].lastName + item.creators[i].firstName == item.creators[i+1].lastName + item.creators[i].firstName) { dupes.push(i + 1); } } for (var i in dupes) { delete item.creators[dupes[i]]; } var dupes = []; for (var i = 0 ; i < item.creators.length ; i++) { if (item.creators[i]) { dupes.push(item.creators[i]); } } item.creators = dupes; var newurls = [url]; Zotero.Utilities.processDocuments(newurls, function(newDoc) { var xpath = '//p[@class="bodyCopyBlackLargeSpaced"]'; var textElmt = newDoc.evaluate(xpath, newDoc, namespace, XPathResult.ANY_TYPE, null).iterateNext(); if (textElmt) { var m = textElmt.textContent.match(/Identifier:\s+([^\n]*)\n/); if (m){ item.DOI = m[1]; } } var pdfpath = '//td[2][@class="bodyCopyBlackLarge"]/a[@class="bodyCopy"][substring(text(), 1, 3) = "PDF"]'; var pdfurlElmt = newDoc.evaluate(pdfpath, newDoc, namespace, XPathResult.ANY_TYPE, null).iterateNext(); if (pdfurlElmt) { pdfurlElmt.href = pdfurlElmt.href.replace("/stamp.jsp", "PDF/getPDF.jsp"); item.attachments = [{url:pdfurlElmt.href, title:"IEEE Xplore Full Text PDF", mimeType:"application/pdf"}]; } item.complete(); }, function() {Zotero.done();}); });
for (var i in dupes) { delete item.creators[dupes[i]]; } var dupes = []; for (var i = 0 ; i < item.creators.length ; i++) { if (item.creators[i]) { dupes.push(item.creators[i]); } } item.creators = dupes; var newurls = [url]; Zotero.Utilities.processDocuments(newurls, function(newDoc) { var xpath = ' var textElmt = newDoc.evaluate(xpath, newDoc, namespace, XPathResult.ANY_TYPE, null).iterateNext(); if (textElmt) { var m = textElmt.textContent.match(/Identifier:\s+([^\n]*)\n/); if (m){ item.DOI = m[1]; } } var pdfpath = ' var pdfurlElmt = newDoc.evaluate(pdfpath, newDoc, namespace, XPathResult.ANY_TYPE, null).iterateNext(); if (pdfurlElmt) { pdfurlElmt.href = pdfurlElmt.href.replace("/stamp.jsp", "PDF/getPDF.jsp"); item.attachments = [{url:pdfurlElmt.href, title:"IEEE Xplore Full Text PDF", mimeType:"application/pdf"}]; } item.complete(); }, function() {Zotero.done();});
pdfurl = "http: item.attachments.push({url:pdfurl, title:"IEEE Xplore PDF", mimeType:"application/pdf"}); item.complete();
translator.setHandler("itemDone", function(obj, item) { var url = urls.shift(); var is = isRe.exec(url); var pu = puRe.exec(url); var arnumber = articleRe.exec(url); if(item.notes[0] && item.notes[0].note) { item.abstractNote = item.notes[0].note; item.notes = new Array(); } var dupes = new Array(); for (var i = 0 ; i < item.creators.length - 1 ; i++) { if (item.creators[i].lastName + item.creators[i].firstName == item.creators[i+1].lastName + item.creators[i].firstName) { dupes.push(i + 1); } } for (var i in dupes) { delete item.creators[dupes[i]]; } var dupes = []; for (var i = 0 ; i < item.creators.length ; i++) { if (item.creators[i]) { dupes.push(item.creators[i]); } } item.creators = dupes; var newurls = [url]; Zotero.Utilities.processDocuments(newurls, function(newDoc) { var xpath = '//p[@class="bodyCopyBlackLargeSpaced"]'; var textElmt = newDoc.evaluate(xpath, newDoc, namespace, XPathResult.ANY_TYPE, null).iterateNext(); if (textElmt) { var m = textElmt.textContent.match(/Identifier:\s+([^\n]*)\n/); if (m){ item.DOI = m[1]; } } var pdfpath = '//td[2][@class="bodyCopyBlackLarge"]/a[@class="bodyCopy"][substring(text(), 1, 3) = "PDF"]'; var pdfurlElmt = newDoc.evaluate(pdfpath, newDoc, namespace, XPathResult.ANY_TYPE, null).iterateNext(); if (pdfurlElmt) { pdfurlElmt.href = pdfurlElmt.href.replace("/stamp.jsp", "PDF/getPDF.jsp"); item.attachments = [{url:pdfurlElmt.href, title:"IEEE Xplore Full Text PDF", mimeType:"application/pdf"}]; } item.complete(); }, function() {Zotero.done();}); });
if (text.match("L3")) { item.DOI = text.match(/L3\s+\-\s*(.*)/)[1];
if (text.match(/^L3\s+-\s*(.*)/m)) { item.DOI = text.match(/^L3\s+\-\s*(.*)/m)[1];
translator.setHandler("itemDone", function(obj, item) { if (text.match("L3")) { item.DOI = text.match(/L3\s+\-\s*(.*)/)[1]; } if (text.match("DO")) { item.DOI = text.match(/DO\s+\-\s*(.*)/)[1]; } if (text.match("T1")) { item.title = text.match(/T1\s+-\s*(.*)/)[1]; } item.itemType = "journalArticle"; item.url = false; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); });
if (text.match("DO")) { item.DOI = text.match(/DO\s+\-\s*(.*)/)[1];
if (text.match(/^DO\s+-\s*(.*)/m)) { item.DOI = text.match(/^DO\s+-\s*(.*)/m)[1];
translator.setHandler("itemDone", function(obj, item) { if (text.match("L3")) { item.DOI = text.match(/L3\s+\-\s*(.*)/)[1]; } if (text.match("DO")) { item.DOI = text.match(/DO\s+\-\s*(.*)/)[1]; } if (text.match("T1")) { item.title = text.match(/T1\s+-\s*(.*)/)[1]; } item.itemType = "journalArticle"; item.url = false; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); });
if (text.match("T1")) { item.title = text.match(/T1\s+-\s*(.*)/)[1];
if (text.match(/^T1\s+-/m)) { item.title = text.match(/^T1\s+-\s*(.*)/m)[1];
translator.setHandler("itemDone", function(obj, item) { if (text.match("L3")) { item.DOI = text.match(/L3\s+\-\s*(.*)/)[1]; } if (text.match("DO")) { item.DOI = text.match(/DO\s+\-\s*(.*)/)[1]; } if (text.match("T1")) { item.title = text.match(/T1\s+-\s*(.*)/)[1]; } item.itemType = "journalArticle"; item.url = false; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); });
item.itemType = "journalArticle";
translator.setHandler("itemDone", function(obj, item) { if (text.match("L3")) { item.DOI = text.match(/L3\s+\-\s*(.*)/)[1]; } if (text.match("DO")) { item.DOI = text.match(/DO\s+\-\s*(.*)/)[1]; } if (text.match("T1")) { item.title = text.match(/T1\s+-\s*(.*)/)[1]; } item.itemType = "journalArticle"; item.url = false; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); });
k():a.blur()}}else n.refilter()};d.lastChild.onclick=A;d.lastChild.onscroll=function(){if(o){clearTimeout(o);var a=c.getElement(e);a&&a.focus()}};this.delayHide=function(a){o=setTimeout(function(){o=null;if(d&&(a==null||e==a.id))k()},300)}});
9)&&d.style.display=="none"))if(b.keyCode==27||b.keyCode==37||b.keyCode==39){d.style.display="none";if(b.keyCode==27){f=null;$(a).hasClass("Wt-suggest-dropdown")?k():a.blur()}}else n.refilter()};d.lastChild.onclick=B;d.lastChild.onscroll=function(){if(o){clearTimeout(o);var a=c.getElement(f);a&&a.focus()}};this.delayHide=function(a){o=setTimeout(function(){o=null;if(d&&(a==null||f==a.id))k()},300)}});
k():a.blur()}}else n.refilter()};d.lastChild.onclick=A;d.lastChild.onscroll=function(){if(o){clearTimeout(o);var a=c.getElement(e);a&&a.focus()}};this.delayHide=function(a){o=setTimeout(function(){o=null;if(d&&(a==null||e==a.id))k()},300)}});
if (g_IsIE)
if (g_IsIE) {
GDownloadUrl(scalars_proxy, function(pData, pResponseCode) { if(pResponseCode == 200) { // Call the parse function to read the XML data from the file. var xmlDoc = GXml.parse(pData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var aScalars = rootNode.getElementsByTagName("Scalars"); var scalar_index = 0; for(var i=0; i < aScalars.length; i++) { var nvclStation = aScalars[i]; // Extract Name and ID for all Scalars var sScalarId = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Scalar_ID']")); var sScalarName = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Name']")); if (sScalarId != "" && sScalarName != "") { oNVCLMarker.maScalars[scalar_index] = sScalarId; oNVCLMarker.maScalarNames[sScalarId] = sScalarName; oNVCLMarker.maScalarSelected[sScalarId] = false; scalar_index++; } } // get vocab for (var i=0; i < oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; var scalarName = oNVCLMarker.maScalarNames[scalarId]; // NOTE oNVCLMarker has to be passed as updateCSWRecords parameter to this function // if it is called as "oNVCLMarker.getScalarNote" it will produce errors! NVCLMarker_getScalarNote(oNVCLMarker, scalarId, scalarName); } oNVCLMarker.createSummaryTabHtml(); oNVCLMarker.createMosaicTabHtml(); }else if(responseCode == -1) { selectedRecord.responseTooltip.addResponse(serviceUrl, "Data request timed out. Please try again later."); } else if ((responseCode >= 400) & (responseCode < 500)){ alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode < 506)){ alert('Requested service not available, not implemented or internal service error. Error code is: ' + responseCode); } else { alert('Remote server returned error code: ' + responseCode); } });
if (sScalarId != "" && sScalarName != "") {
if (sScalarId !== "" && sScalarName !== "") {
GDownloadUrl(scalars_proxy, function(pData, pResponseCode) { if(pResponseCode == 200) { // Call the parse function to read the XML data from the file. var xmlDoc = GXml.parse(pData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var aScalars = rootNode.getElementsByTagName("Scalars"); var scalar_index = 0; for(var i=0; i < aScalars.length; i++) { var nvclStation = aScalars[i]; // Extract Name and ID for all Scalars var sScalarId = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Scalar_ID']")); var sScalarName = GXml.value(nvclStation.selectSingleNode("*[local-name() = 'Name']")); if (sScalarId != "" && sScalarName != "") { oNVCLMarker.maScalars[scalar_index] = sScalarId; oNVCLMarker.maScalarNames[sScalarId] = sScalarName; oNVCLMarker.maScalarSelected[sScalarId] = false; scalar_index++; } } // get vocab for (var i=0; i < oNVCLMarker.maScalars.length; i++) { var scalarId = oNVCLMarker.maScalars[i]; var scalarName = oNVCLMarker.maScalarNames[scalarId]; // NOTE oNVCLMarker has to be passed as updateCSWRecords parameter to this function // if it is called as "oNVCLMarker.getScalarNote" it will produce errors! NVCLMarker_getScalarNote(oNVCLMarker, scalarId, scalarName); } oNVCLMarker.createSummaryTabHtml(); oNVCLMarker.createMosaicTabHtml(); }else if(responseCode == -1) { selectedRecord.responseTooltip.addResponse(serviceUrl, "Data request timed out. Please try again later."); } else if ((responseCode >= 400) & (responseCode < 500)){ alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode < 506)){ alert('Requested service not available, not implemented or internal service error. Error code is: ' + responseCode); } else { alert('Remote server returned error code: ' + responseCode); } });
while(n<o){m.push('<tr>');for(var r=0;r<k;r++,n++){if(p=l[n]){q='';p=p.replace(/\((.*?)\)/,function(s,t){q=t;return '';});q=q||p;m.push('<td class="cke_dark_background" style="cursor: default" role="presentation"><a href="javascript: void(0);" role="option" aria-posinset="'+(n+1)+'"',' aria-setsize="'+o+'"',' aria-labelledby="cke_specialchar_label_'+n+'"',' style="cursor: inherit; display: block; height: 1.25em; margin-top: 0.25em; text-align: center;" title="',CKEDITOR.tools.htmlEncode(q),'" onkeydown="CKEDITOR.tools.callFunction( '+j+', event, this )"'+' onclick="CKEDITOR.tools.callFunction('+f+', this); return false;"'+' tabindex="-1">'+'<span style="margin: 0 auto;cursor: inherit">'+p+'</span>'+'<span class="cke_voice_label" id="cke_specialchar_label_'+n+'">'+q+'</span></a>');}else m.push('<td class="cke_dark_background">&nbsp;');m.push('</td>');}m.push('</tr>');}m.push('</tbody></table>','<span id="specialchar_table_label" class="cke_voice_label">'+c.options+'</span>');this.getContentElement('info','charContainer').getElement().setHtml(m.join(''));},contents:[{id:'info',label:a.lang.common.generalTab,title:a.lang.common.generalTab,padding:0,align:'top',elements:[{type:'hbox',align:'top',widths:['320px','90px'],children:[{type:'html',id:'charContainer',html:'',onMouseover:h,onMouseout:i,focus:function(){var k=this.getElement().getElementsByTag('a').getItem(0);setTimeout(function(){k.focus();h(null,k);});},onShow:function(){var k=this.getElement().getChild([0,0,0,0,0]);setTimeout(function(){k.focus();h(null,k);});},onLoad:function(k){b=k.sender;}},{type:'hbox',align:'top',widths:['100%'],children:[{type:'vbox',align:'top',children:[{type:'html',html:'<div></div>'},{type:'html',id:'charPreview',className:'cke_dark_background',style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:'<div>&nbsp;</div>'},{type:'html',id:'htmlPreview',className:'cke_dark_background',style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:'<div>&nbsp;</div>'}]}]}]}]}]};});
while(o<p){n.push('<tr>');for(var s=0;s<k;s++,o++){if(q=l[o]){r='';q=q.replace(/\((.*?)\)/,function(u,v){r=v;return '';});r=r||q;var t='cke_specialchar_label_'+o+'_'+CKEDITOR.tools.getNextNumber();n.push('<td class="cke_dark_background" style="cursor: default" role="presentation"><a href="javascript: void(0);" role="option" aria-posinset="'+(o+1)+'"',' aria-setsize="'+p+'"',' aria-labelledby="'+t+'"',' style="cursor: inherit; display: block; height: 1.25em; margin-top: 0.25em; text-align: center;" title="',CKEDITOR.tools.htmlEncode(r),'" onkeydown="CKEDITOR.tools.callFunction( '+j+', event, this )"'+' onclick="CKEDITOR.tools.callFunction('+f+', this); return false;"'+' tabindex="-1">'+'<span style="margin: 0 auto;cursor: inherit">'+q+'</span>'+'<span class="cke_voice_label" id="'+t+'">'+r+'</span></a>');}else n.push('<td class="cke_dark_background">&nbsp;');n.push('</td>');}n.push('</tr>');}n.push('</tbody></table>','<span id="'+m+'" class="cke_voice_label">'+c.options+'</span>');this.getContentElement('info','charContainer').getElement().setHtml(n.join(''));},contents:[{id:'info',label:a.lang.common.generalTab,title:a.lang.common.generalTab,padding:0,align:'top',elements:[{type:'hbox',align:'top',widths:['320px','90px'],children:[{type:'html',id:'charContainer',html:'',onMouseover:h,onMouseout:i,focus:function(){var k=this.getElement().getElementsByTag('a').getItem(0);setTimeout(function(){k.focus();h(null,k);},0);},onShow:function(){var k=this.getElement().getChild([0,0,0,0,0]);setTimeout(function(){k.focus();h(null,k);},0);},onLoad:function(k){b=k.sender;}},{type:'hbox',align:'top',widths:['100%'],children:[{type:'vbox',align:'top',children:[{type:'html',html:'<div></div>'},{type:'html',id:'charPreview',className:'cke_dark_background',style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:'<div>&nbsp;</div>'},{type:'html',id:'htmlPreview',className:'cke_dark_background',style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:'<div>&nbsp;</div>'}]}]}]}]}]};});
while(n<o){m.push('<tr>');for(var r=0;r<k;r++,n++){if(p=l[n]){q='';p=p.replace(/\((.*?)\)/,function(s,t){q=t;return '';});q=q||p;m.push('<td class="cke_dark_background" style="cursor: default" role="presentation"><a href="javascript: void(0);" role="option" aria-posinset="'+(n+1)+'"',' aria-setsize="'+o+'"',' aria-labelledby="cke_specialchar_label_'+n+'"',' style="cursor: inherit; display: block; height: 1.25em; margin-top: 0.25em; text-align: center;" title="',CKEDITOR.tools.htmlEncode(q),'" onkeydown="CKEDITOR.tools.callFunction( '+j+', event, this )"'+' onclick="CKEDITOR.tools.callFunction('+f+', this); return false;"'+' tabindex="-1">'+'<span style="margin: 0 auto;cursor: inherit">'+p+'</span>'+'<span class="cke_voice_label" id="cke_specialchar_label_'+n+'">'+q+'</span></a>');}else m.push('<td class="cke_dark_background">&nbsp;');m.push('</td>');}m.push('</tr>');}m.push('</tbody></table>','<span id="specialchar_table_label" class="cke_voice_label">'+c.options+'</span>');this.getContentElement('info','charContainer').getElement().setHtml(m.join(''));},contents:[{id:'info',label:a.lang.common.generalTab,title:a.lang.common.generalTab,padding:0,align:'top',elements:[{type:'hbox',align:'top',widths:['320px','90px'],children:[{type:'html',id:'charContainer',html:'',onMouseover:h,onMouseout:i,focus:function(){var k=this.getElement().getElementsByTag('a').getItem(0);setTimeout(function(){k.focus();h(null,k);});},onShow:function(){var k=this.getElement().getChild([0,0,0,0,0]);setTimeout(function(){k.focus();h(null,k);});},onLoad:function(k){b=k.sender;}},{type:'hbox',align:'top',widths:['100%'],children:[{type:'vbox',align:'top',children:[{type:'html',html:'<div></div>'},{type:'html',id:'charPreview',className:'cke_dark_background',style:"border:1px solid #eeeeee;font-size:28px;height:40px;width:70px;padding-top:9px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:'<div>&nbsp;</div>'},{type:'html',id:'htmlPreview',className:'cke_dark_background',style:"border:1px solid #eeeeee;font-size:14px;height:20px;width:70px;padding-top:2px;font-family:'Microsoft Sans Serif',Arial,Helvetica,Verdana;text-align:center;",html:'<div>&nbsp;</div>'}]}]}]}]}]};});
el.pitches.each(function(p) { p.duration = p.duration * multilineVars.next_note_duration; });
tokens.each(function(tok) { scratch += tok.token; });
el.pitches.each(function(p) { p.duration = p.duration * multilineVars.next_note_duration; });
var symbol = (acc.acc === "sharp") ? "#" : (acc.acc === "natural") ? "n" : "b";
var symbol = (acc.acc === "sharp") ? "accidentals.sharp" : (acc.acc === "natural") ? "accidentals.nat" : "accidentals.flat";
elem.extraAccidentals.each(function(acc) { var symbol = (acc.acc === "sharp") ? "#" : (acc.acc === "natural") ? "n" : "b"; var notes = { 'A': 5, 'B': 6, 'C': 0, 'D': 1, 'E': 2, 'F': 3, 'G':4, 'a': 12, 'b': 13, 'c': 7, 'd': 8, 'e': 9, 'f': 10, 'g':11 }; abselem.addRight(new ABCRelativeElement(symbol, dx, this.glyphs.getSymbolWidth(symbol), notes[acc.note])); dx += this.glyphs.getSymbolWidth(symbol)+2; }, this);
value : 'classname', text : 'Classname Search',
value : 'gav', text : 'GAV Search',
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { searchTypes.push( { value : 'classname', text : 'Classname Search', scope : panel, // use the default store store : null, handler : panel.switchSearchType, quickSearchCheckHandler : function(panel, value) { return value.search(/^[a-z.]*[A-Z]/) == 0; }, quickSearchHandler : function(panel, value) { panel.getTopToolbar().items.itemAt(1).setRawValue(value); }, searchHandler : function(panel) { var value = panel.getTopToolbar().items.itemAt(1).getRawValue(); if (value) { panel.grid.store.baseParams = {}; panel.grid.store.baseParams['cn'] = value; panel.fetchRecords(panel); } }, applyBookmarkHandler : function(panel, data) { panel.getTopToolbar().items.itemAt(1).setRawValue(data[1]); panel.startSearch(panel, false); }, getBookmarkHandler : function(panel) { var result = panel.searchTypeButton.value; result += '~'; result += panel.getTopToolbar().items.itemAt(1).getRawValue(); return result; }, panelItems : [ { xtype : 'nexussearchfield', name : 'single-search-field', searchPanel : panel, width : 300 } ] });});
return value.search(/^[a-z.]*[A-Z]/) == 0;
return value.indexOf(':') > -1;
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { searchTypes.push( { value : 'classname', text : 'Classname Search', scope : panel, // use the default store store : null, handler : panel.switchSearchType, quickSearchCheckHandler : function(panel, value) { return value.search(/^[a-z.]*[A-Z]/) == 0; }, quickSearchHandler : function(panel, value) { panel.getTopToolbar().items.itemAt(1).setRawValue(value); }, searchHandler : function(panel) { var value = panel.getTopToolbar().items.itemAt(1).getRawValue(); if (value) { panel.grid.store.baseParams = {}; panel.grid.store.baseParams['cn'] = value; panel.fetchRecords(panel); } }, applyBookmarkHandler : function(panel, data) { panel.getTopToolbar().items.itemAt(1).setRawValue(data[1]); panel.startSearch(panel, false); }, getBookmarkHandler : function(panel) { var result = panel.searchTypeButton.value; result += '~'; result += panel.getTopToolbar().items.itemAt(1).getRawValue(); return result; }, panelItems : [ { xtype : 'nexussearchfield', name : 'single-search-field', searchPanel : panel, width : 300 } ] });});
panel.getTopToolbar().items.itemAt(1).setRawValue(value);
var parts = value.split(':'); var data = [ 'gav' ]; for ( var i = 0; i < parts.length; i++) { data.push(parts[i]); } gavPopulator(panel, data);
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { searchTypes.push( { value : 'classname', text : 'Classname Search', scope : panel, // use the default store store : null, handler : panel.switchSearchType, quickSearchCheckHandler : function(panel, value) { return value.search(/^[a-z.]*[A-Z]/) == 0; }, quickSearchHandler : function(panel, value) { panel.getTopToolbar().items.itemAt(1).setRawValue(value); }, searchHandler : function(panel) { var value = panel.getTopToolbar().items.itemAt(1).getRawValue(); if (value) { panel.grid.store.baseParams = {}; panel.grid.store.baseParams['cn'] = value; panel.fetchRecords(panel); } }, applyBookmarkHandler : function(panel, data) { panel.getTopToolbar().items.itemAt(1).setRawValue(data[1]); panel.startSearch(panel, false); }, getBookmarkHandler : function(panel) { var result = panel.searchTypeButton.value; result += '~'; result += panel.getTopToolbar().items.itemAt(1).getRawValue(); return result; }, panelItems : [ { xtype : 'nexussearchfield', name : 'single-search-field', searchPanel : panel, width : 300 } ] });});
var value = panel.getTopToolbar().items.itemAt(1).getRawValue(); if (value) { panel.grid.store.baseParams = {}; panel.grid.store.baseParams['cn'] = value; panel.fetchRecords(panel); } }, applyBookmarkHandler : function(panel, data) { panel.getTopToolbar().items.itemAt(1).setRawValue(data[1]); panel.startSearch(panel, false); }, getBookmarkHandler : function(panel) { var result = panel.searchTypeButton.value; result += '~'; result += panel.getTopToolbar().items.itemAt(1).getRawValue(); return result; }, panelItems : [ { xtype : 'nexussearchfield', name : 'single-search-field', searchPanel : panel, width : 300 } ]
var reverseSortResults = false; this.grid.store.baseParams = {}; var v = panel.getTopToolbar().items.itemAt(2).getRawValue(); if (v) { panel.grid.store.baseParams['g'] = v; } v = panel.getTopToolbar().items.itemAt(5).getRawValue(); if (v) { panel.grid.store.baseParams['a'] = v; } v = panel.getTopToolbar().items.itemAt(8).getRawValue(); if (v) { panel.grid.store.baseParams['v'] = v; } v = panel.getTopToolbar().items.itemAt(11).getRawValue(); if (v) { panel.grid.store.baseParams['p'] = v; } v = panel.getTopToolbar().items.itemAt(14).getRawValue(); if (v) { panel.grid.store.baseParams['c'] = v; } panel.grid.store.baseParams['collapseresults'] = true; if ( panel.extraData ) { var extras = panel.extraData.split( ',' ); for ( var i = 0 ; i < extras.length ; i++ ) { if ( extras[i] == 'kw' ) { reverseSortResults = true; } else if ( extras[i] == 'versionexpand' ) { panel.grid.store.baseParams['versionexpand'] = true; } else if ( extras[i] == 'packagingexpand' ) { panel.grid.store.baseParams['packagingexpand'] = true; } else if ( extras[i] == 'classifierexpand' ) { panel.grid.store.baseParams['classifierexpand'] = true; } } } if (panel.grid.store.baseParams['g'] == null && panel.grid.store.baseParams['a'] == null && panel.grid.store.baseParams['v'] == null) { panel.setWarningLabel('A group, an artifact or a version is required to run a search.'); return; } panel.clearWarningLabel(); panel.fetchRecords(panel, reverseSortResults); }, applyBookmarkHandler : function(panel, data) { gavPopulator(panel, data); panel.startSearch(this, false); }, getBookmarkHandler : function(panel) { var result = panel.searchTypeButton.value; result += '~'; var v = panel.getTopToolbar().items.itemAt(2).getRawValue(); if (v) { result += v; } result += '~'; v = panel.getTopToolbar().items.itemAt(5).getRawValue(); if (v) { result += v; } result += '~'; v = panel.getTopToolbar().items.itemAt(8).getRawValue(); if (v) { result += v; } result += '~'; v = panel.getTopToolbar().items.itemAt(11).getRawValue(); if (v) { result += v; } result += '~'; v = panel.getTopToolbar().items.itemAt(14).getRawValue(); if (v) { result += v; } return result; }, panelItems : [ 'Group:', { xtype : 'textfield', id : 'gavsearch-group', size : 80, listeners : { 'specialkey' : { fn : enterHandler, scope : panel } } }, { xtype : 'tbspacer' }, 'Artifact:', { xtype : 'textfield', id : 'gavsearch-artifact', size : 80, listeners : { 'specialkey' : { fn : enterHandler, scope : panel } } }, { xtype : 'tbspacer' }, 'Version:', { xtype : 'textfield', id : 'gavsearch-version', size : 80, listeners : { 'specialkey' : { fn : enterHandler, scope : panel } } }, { xtype : 'tbspacer' }, 'Packaging:', { xtype : 'textfield', id : 'gavsearch-packaging', size : 80, listeners : { 'specialkey' : { fn : enterHandler, scope : panel } } }, { xtype : 'tbspacer' }, 'Classifier:', { xtype : 'textfield', id : 'gavsearch-classifier', size : 80, listeners : { 'specialkey' : { fn : enterHandler, scope : panel } } }, { xtype : 'tbspacer' }, { icon : Sonatype.config.resourcePath + '/images/icons/search.gif', cls : 'x-btn-icon', scope : panel, handler : function() { this.startSearch(this, true); } } ]
Sonatype.Events.addListener('searchTypeInit', function(searchTypes, panel) { searchTypes.push( { value : 'classname', text : 'Classname Search', scope : panel, // use the default store store : null, handler : panel.switchSearchType, quickSearchCheckHandler : function(panel, value) { return value.search(/^[a-z.]*[A-Z]/) == 0; }, quickSearchHandler : function(panel, value) { panel.getTopToolbar().items.itemAt(1).setRawValue(value); }, searchHandler : function(panel) { var value = panel.getTopToolbar().items.itemAt(1).getRawValue(); if (value) { panel.grid.store.baseParams = {}; panel.grid.store.baseParams['cn'] = value; panel.fetchRecords(panel); } }, applyBookmarkHandler : function(panel, data) { panel.getTopToolbar().items.itemAt(1).setRawValue(data[1]); panel.startSearch(panel, false); }, getBookmarkHandler : function(panel) { var result = panel.searchTypeButton.value; result += '~'; result += panel.getTopToolbar().items.itemAt(1).getRawValue(); return result; }, panelItems : [ { xtype : 'nexussearchfield', name : 'single-search-field', searchPanel : panel, width : 300 } ] });});
$(self).bind(name, fn);
if (fn) { $(self).bind(name, fn); }
$.each(['onBeforeSeek', 'onSeek', 'onAddItem'], function(i, name) { // configuration if ($.isFunction(conf[name])) { $(self).bind(name, conf[name]); } self[name] = function(fn) { $(self).bind(name, fn); return self; }; });
var a=e.getElement(i);a&&a.focus()}};this.delayHide=function(a){B=setTimeout(function(){B=null;if(f&&(a==null||i==a.id))d()},300)}});
setTimeout(function(){B=null;if(f&&(a==null||i==a.id))d()},300)}});
var a=e.getElement(i);a&&a.focus()}};this.delayHide=function(a){B=setTimeout(function(){B=null;if(f&&(a==null||i==a.id))d()},300)}});
callback = isClick ? function() {
fn = isClick ? function() {
callback = isClick ? function() { e.type = "change"; fire.trigger(e, [v]); } : null;
publisher = Zotero.Utilities.cleanString(xml..Publisher[0].text().toString());
publisher = Zotero.Utilities.trimInternal(xml..Publisher[0].text().toString());
Zotero.Utilities.HTTP.doGet(uris, function(text) { text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); var texts = text.split("<Items>"); texts = texts[1].split("</ItemLookupResponse>"); text = "<Items>" + texts[0]; var xml = new XML(text); var publisher = ""; if (!xml..Errors.length()) { if (xml..Publisher.length()){ publisher = Zotero.Utilities.cleanString(xml..Publisher[0].text().toString()); }
$("#lstNewTag").change(function () { checkValidity("lstNewTag", "valNewTag")
$("#lstModGeo").change(function () { checkValidity("lstModGeo", "valModGeo")
$("#lstNewTag").change(function () { checkValidity("lstNewTag", "valNewTag")}) ;
the journal.*/ match = text.match(/=([^=]+)\">\s*Download citation/);
the journal. TODO We should rewrite this to not use regex! */ match = text.match(/=([^=]+)\">\s*Download (C|c)itation/);
Zotero.Utilities.HTTP.doGet(arts, function(text) { var id, match, newurl, pdfurl, get; /* Here, we have to use three phrasings because they all occur, depending on the journal.*/ match = text.match(/=([^=]+)\">\s*Download citation/); if (!match || match.length < 1) { match = text.match(/=([^=]+)\">\s*Download to citation manager/); if (!match || match.length < 1) { // Journal of Cell Biology match = text.match(/=([^=]+)\">\s*Add to Citation Manager/); } } id = match[1]; newurl = newurls.shift(); if (newurl.match("cgi/content")) { pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf"; } else { // This is not ideal...todo: brew a regex that grabs the correct URL pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf"; } get = host + 'citmgr?type=refman&gca=' + id; Zotero.Utilities.HTTP.doGet(get, function(text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); // Sometimes Highwire 2.0 has blank entries for N1 if (text.match(/N1\s+\-\s+(10\..*)\n/)) { var doi = text.match(/N1\s+\-\s+(.*)\n/)[1]; } translator.setHandler("itemDone", function(obj, item) { item.attachments = [ {url:newurl, title:"Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"Full Text PDF", mimeType:"application/pdf"} ]; if (doi) item.DOI = doi; if (item.notes) item.notes = []; item.complete(); }); translator.translate(); }); });
$('#defaultLanguageContainer').show();
$('#defaultLanguage option').attr('disabled', 'disabled'); $('#languages input:checked').each(function() { $('#defaultLanguage option[value='+ $(this).val() +']').attr('disabled', ''); });
$('#languageTypeMultiple').bind('click', function() { if($('#languageTypeMultiple').is(':checked')) { $('#languages').show(); $('#language').hide(); $('#defaultLanguageContainer').show(); } });
$(document).ready(function() { $("#loading").ajaxStart(function() { $(this).show(); }); $("#loading").ajaxStop(function() { $(this).hide(); $('.sortable').sortable(); }); $.getJSON('cgi-bin/collection.modified.cgi?action=hostlist_json', function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } }); $('#menu-tabs').tabs(); $(".date-field").datepicker(); $("#clock").jclock(); $('.ttip').hover(function() { var text = $(this).attr('rel'); $('#help-box').html(text).fadeIn(); }, function() { $('#help-box').html('').hide(); }); $.getJSON('cgi-bin/time.cgi', function(data) { $("#clock-server").jclock( { utc : true, utcOffset : parseInt(data.tz) }); }); $("#clock-server-slider").slider( { min : -12, max : 12, step : 0.5, change : function(event, ui) { $('#clock-server-gmt').html(get_gmt(ui.value)); } }); $('#clock-server-add').submit(function() { var offset = parseInt($('#clock-server-gmt').html()); var new_span = $(document.createElement("span")); var new_li = $(document.createElement("li")); new_span.jclock( { format : '%H:%M', utc : true, utcOffset : offset }); $(new_span).appendTo(new_li); new_li.append(' ' + $('#clock-server-add-label').val()); $(new_li).appendTo('#new-clock-container'); return false; }); $('button').button(); $('#show-ruler-checkbox').click(function() { if ($(this).attr('checked')) { $('#ruler').fadeIn(); } else { $('#ruler').fadeOut(); } }); $('#ruler').draggable( { axis : 'x' }); $('#hosts a, #plugins a').live('click', load_url); $('#select-all').live('click', function() { $('.selectable').addClass('selected'); return false; }); $('#select-none').live('click', function() { $('.selectable').removeClass('selected'); return false; }); $('li.graph-image .ui-icon-close').live('click', function() { $(this).parent().parent().parent().remove(); }); $('li.graph-image .ui-icon-star').live('click', function() { var section = $(this).parent().parent().next(); if ($(section).hasClass('selected')) { $(section).removeClass('selected'); } else { $(section).addClass('selected'); } }); $('li.graph-image .ui-icon-disk').live('click', function() { var img_tag = $(this).parent().parent().next().next(); $("#output-dialog a").each(function() { $this = $(this); var join_url = $(img_tag).attr('src') + $this.attr('href'); $this.attr('href', join_url); }); $("#output-dialog").dialog( { title : 'Select output format:', modal : true }); }); $("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("slow"); $(this).toggleClass("active"); return false; }); $('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); }); }); $("#host-filter").live('keyup', function() { var searchText = $(this).val(); $("#hosts li").hide(); if (searchText == "") { $("#hosts li").show(); } else { $("#hosts li:contains(" + searchText + ")").show(); } $(this).focus(); }); $('#hosts a, #plugins a').live('click', function() { $(this).addClass("selected"); }); $("#timespan-menu li").live( 'click', function() { $("#timespan-menu li").each(function() { $(this).removeClass("selected"); }); var timespan = $(this).html(); $("li.graph-image li").hide(); $("li.graph-image li." + timespan).show(); $("#timespan-menu li:contains(" + timespan + ")").addClass( "selected"); }); $('#load-graphdefs').click( function() { $.getJSON('cgi-bin/graphdefs.cgi', function(data) { graph_def_values = data.graph_defs for ( var def in graph_def_values) { $('#graphdef-name').append( '<option value="' + def + '">' + def + '</option>'); } }); }); $('#graphdef-name').change(function() { var gdef = $(this).val(); var values = graph_def_values[gdef]; $('#graphdef-content').val(values.join('\n')); }); $('#graph-view').change(function() { var selected_view = $(this).val(); if (selected_view == "grid") { $('#graph-container .sortable').css( { 'list-style-type' : 'none' }); $('#graph-container .sortable li').css( { 'float' : 'left', 'width' : '200px' }); $('#graph-container .sortable li img').css('width', '200px'); $('li.gc .gc-menu').css( { 'height' : '60px', 'width' : '120px' }); } else { $('#graph-container .sortable li').css( { 'float' : 'none', 'width' : '100%' }); $('#graph-container .sortable li img').css('width', ''); $('li.gc .gc-menu').css( { 'height' : '120px', 'width' : '60px' }); } }); });
$.getJSON('cgi-bin/collection.modified.cgi?action=pluginlist_json&host=' + $selected_host, function(data){ $("#plugins").html(''); $("#plugins").append(create_plugin_menu($selected_host, data)); $('#plugins ul li a').click(function(){ $('#plugins').data('selected_plugin', $(this).attr('rel')); }); });
$(document).ready(function() { $("#loading").ajaxStart(function() { $(this).show(); }); $("#loading").ajaxStop(function() { $(this).hide(); $('.sortable').sortable(); }); // $('#hosts').load('cgi-bin/collection.modified.cgi'); $.getJSON('cgi-bin/collection.modified.cgi?action=hostlist_json', function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } }); $('#menu-tabs').tabs(); $(".date-field").datepicker(); $("#clock").jclock(); $('.ttip').hover(function() { var text = $(this).attr('rel'); $('#help-box').html(text).fadeIn(); }, function() { $('#help-box').html('').hide(); }); $.getJSON('cgi-bin/time.cgi', function(data) { $("#clock-server").jclock( { utc : true, utcOffset : parseInt(data.tz) }); }); $("#clock-server-slider").slider( { min : -12, max : 12, step : 0.5, change : function(event, ui) { $('#clock-server-gmt').html(get_gmt(ui.value)); } }); $('#clock-server-add').submit(function() { var offset = parseInt($('#clock-server-gmt').html()); var new_span = $(document.createElement("span")); var new_li = $(document.createElement("li")); new_span.jclock( { format : '%H:%M', utc : true, utcOffset : offset }); $(new_span).appendTo(new_li); new_li.append(' ' + $('#clock-server-add-label').val()); $(new_li).appendTo('#new-clock-container'); return false; }); $('button').button(); $('#show-ruler-checkbox').click(function() { if ($(this).attr('checked')) { $('#ruler').fadeIn(); } else { $('#ruler').fadeOut(); } }); $('#ruler').draggable( { axis : 'x' }); $('#hosts a, #plugins a').live('click', load_url); $('#select-all').live('click', function() { $('.selectable').addClass('selected'); return false; }); $('#select-none').live('click', function() { $('.selectable').removeClass('selected'); return false; }); $('li.graph-image .ui-icon-close').live('click', function() { $(this).parent().parent().parent().remove(); }); $('li.graph-image .ui-icon-star').live('click', function() { var section = $(this).parent().parent().next(); if ($(section).hasClass('selected')) { $(section).removeClass('selected'); } else { $(section).addClass('selected'); } }); $('li.graph-image .ui-icon-disk').live('click', function() { var img_tag = $(this).parent().parent().next().next(); $("#output-dialog a").each(function() { $this = $(this); var join_url = $(img_tag).attr('src') + $this.attr('href'); $this.attr('href', join_url); }); $("#output-dialog").dialog( { title : 'Select output format:', modal : true }); }); $("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("slow"); $(this).toggleClass("active"); return false; }); $('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); }); }); $("#host-filter").live('keyup', function() { var searchText = $(this).val(); $("#hosts li").hide(); if (searchText == "") { $("#hosts li").show(); } else { $("#hosts li:contains(" + searchText + ")").show(); } $(this).focus(); }); $('#hosts a, #plugins a').live('click', function() { $(this).addClass("selected"); }); $("#timespan-menu li").live( 'click', function() { $("#timespan-menu li").each(function() { $(this).removeClass("selected"); }); var timespan = $(this).html(); $("li.graph-image li").hide(); $("li.graph-image li." + timespan).show(); $("#timespan-menu li:contains(" + timespan + ")").addClass( "selected"); }); $('#load-graphdefs').click( function() { $.getJSON('cgi-bin/graphdefs.cgi', function(data) { graph_def_values = data.graph_defs for ( var def in graph_def_values) { $('#graphdef-name').append( '<option value="' + def + '">' + def + '</option>'); } }); }); $('#graphdef-name').change(function() { var gdef = $(this).val(); var values = graph_def_values[gdef]; $('#graphdef-content').val(values.join('\n')); }); $('#graph-view').change(function() { var selected_view = $(this).val(); if (selected_view == "grid") { $('#graph-container .sortable').css( { 'list-style-type' : 'none' }); $('#graph-container .sortable li').css( { 'float' : 'left', 'width' : '200px' }); $('#graph-container .sortable li img').css('width', '200px'); $('li.gc .gc-menu').css( { 'height' : '60px', 'width' : '120px' }); } else { // selected_view == 'list' $('#graph-container .sortable li').css( { 'float' : 'none', 'width' : '100%' }); $('#graph-container .sortable li img').css('width', ''); $('li.gc .gc-menu').css( { 'height' : '120px', 'width' : '60px' }); } }); });
i.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,e,q)},i,m,h,0,0)}function o(c,e,h){var i=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,i,q,"Wt-hsh",function(B){b(c,e,B)},s,m,h,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c,
l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){h(c,f,q)},l,n,j,0,0)}function m(c,f,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,f,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function h(c,
i.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,e,q)},i,m,h,0,0)}function o(c,e,h){var i=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,i,q,"Wt-hsh",function(B){b(c,e,B)},s,m,h,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c,
(function(){CKEDITOR.dialog.add('pastetext',function(a){return{title:a.lang.pasteText.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?368:350,minHeight:240,onShow:function(){this.getContentElement('general','content').getInputElement().setValue('');},onOk:function(){var b=this.getContentElement('general','content').getInputElement().getValue(),c=this.getParentEditor();setTimeout(function(){c.fire('paste',{text:b});},0);},contents:[{label:a.lang.common.generalTab,id:'general',elements:[{type:'html',id:'pasteMsg',html:'<div style="white-space:normal;width:340px;">'+a.lang.clipboard.pasteMsg+'</div>'},{type:'html',id:'content',style:'width:340px;height:170px',html:'<textarea style="width:346px;height:170px;resize: none;border:1px solid black;background-color:white"></textarea>',onLoad:function(){var b=this.getDialog().getContentElement('general','pasteMsg').getElement(),c=this.getElement();c.setAttribute('aria-labelledby',b.$.id);},focus:function(){this.getElement().focus();}}]}]};});})();
return{title:i.lang.flash.title,minWidth:420,minHeight:310,onShow:function(){var z=this;z.fakeImage=z.objectNode=z.embedNode=null;l=new CKEDITOR.dom.element('embed',i.document);var n=z.getSelectedElement();if(n&&n.getAttribute('_cke_real_element_type')&&n.getAttribute('_cke_real_element_type')=='flash'){z.fakeImage=n;var o=i.restoreRealElement(n),p=null,q=null,r={};if(o.getName()=='cke:object'){p=o;var s=p.getElementsByTag('embed','cke');if(s.count()>0)q=s.getItem(0);var t=p.getElementsByTag('param','cke');for(var u=0,v=t.count();u<v;u++){var w=t.getItem(u),x=w.getAttribute('name'),y=w.getAttribute('value');r[x]=y;}}else if(o.getName()=='cke:embed')q=o;z.objectNode=p;z.embedNode=q;z.setupContent(p,q,r,n);}},onOk:function(){var x=this;var n=null,o=null,p=null;if(!x.fakeImage){if(j){n=CKEDITOR.dom.element.createFromHtml('<cke:object></cke:object>',i.document);var q={classid:'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',codebase:'http:
(function(){CKEDITOR.dialog.add('pastetext',function(a){return{title:a.lang.pasteText.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?368:350,minHeight:240,onShow:function(){this.getContentElement('general','content').getInputElement().setValue('');},onOk:function(){var b=this.getContentElement('general','content').getInputElement().getValue(),c=this.getParentEditor();setTimeout(function(){c.fire('paste',{text:b});},0);},contents:[{label:a.lang.common.generalTab,id:'general',elements:[{type:'html',id:'pasteMsg',html:'<div style="white-space:normal;width:340px;">'+a.lang.clipboard.pasteMsg+'</div>'},{type:'html',id:'content',style:'width:340px;height:170px',html:'<textarea style="width:346px;height:170px;resize: none;border:1px solid black;background-color:white"></textarea>',onLoad:function(){var b=this.getDialog().getContentElement('general','pasteMsg').getElement(),c=this.getElement();c.setAttribute('aria-labelledby',b.$.id);},focus:function(){this.getElement().focus();}}]}]};});})();
item.complete();
item.abstractNote = abstractNote; item.complete();
Zotero.Utilities.HTTP.doGet(biblink, function(text) { var trans = Zotero.loadTranslator("import"); trans.setTranslator("9cb70025-a888-4a29-a210-93ec52da40d4"); trans.setString(text); trans.setHandler("itemDone", function(obj, item) { item.url = newurl; item.attachments = [{url:item.url, title:item.title + " Snapshot", mimeType:"text/html"}]; item.tags = tags; item.complete(); }); trans.translate(); });
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function f(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function i(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function f(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function f(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function i(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
/* Here, we have to use two phrasings because they both occur, depending on
/* Here, we have to use three phrasings because they all occur, depending on
Zotero.Utilities.HTTP.doGet(arts, function(text) { var id, match, newurl, pdfurl, get; /* Here, we have to use two phrasings because they both occur, depending on the journal.*/ match = text.match(/=([^=]+)\">\s*Download citation/); if (!match || match.length < 1) { match = text.match(/=([^=]+)\">\s*Download to citation manager/); } id = match[1]; newurl = newurls.shift(); if (newurl.match("cgi/content")) { pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf"; } else { // This is not ideal...todo: brew a regex that grabs the correct URL pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf"; } get = host + 'citmgr?type=refman&gca=' + id; Zotero.Utilities.HTTP.doGet(get, function(text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); // Sometimes Highwire 2.0 has blank entries for N1 if (text.match(/N1\s+\-\s+(10\..*)\n/)) { var doi = text.match(/N1\s+\-\s+(.*)\n/)[1]; } translator.setHandler("itemDone", function(obj, item) { item.attachments = [ {url:newurl, title:"Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"Full Text PDF", mimeType:"application/pdf"} ]; if (doi) item.DOI = doi; if (item.notes) item.notes = []; item.complete(); }); translator.translate(); }); });
if (!match || match.length < 1) { match = text.match(/=([^=]+)\">\s*Add to Citation Manager/); }
Zotero.Utilities.HTTP.doGet(arts, function(text) { var id, match, newurl, pdfurl, get; /* Here, we have to use two phrasings because they both occur, depending on the journal.*/ match = text.match(/=([^=]+)\">\s*Download citation/); if (!match || match.length < 1) { match = text.match(/=([^=]+)\">\s*Download to citation manager/); } id = match[1]; newurl = newurls.shift(); if (newurl.match("cgi/content")) { pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf"; } else { // This is not ideal...todo: brew a regex that grabs the correct URL pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf"; } get = host + 'citmgr?type=refman&gca=' + id; Zotero.Utilities.HTTP.doGet(get, function(text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); // Sometimes Highwire 2.0 has blank entries for N1 if (text.match(/N1\s+\-\s+(10\..*)\n/)) { var doi = text.match(/N1\s+\-\s+(.*)\n/)[1]; } translator.setHandler("itemDone", function(obj, item) { item.attachments = [ {url:newurl, title:"Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"Full Text PDF", mimeType:"application/pdf"} ]; if (doi) item.DOI = doi; if (item.notes) item.notes = []; item.complete(); }); translator.translate(); }); });
}, function () { Zotero.done(); });
Zotero.done(); });
Zotero.Utilities.HTTP.doPost(url, post, function(text) { var lines = text.split("\n"); var haveStarted = false; var newItemRe = /^<[0-9]+>/; var newItem = new Zotero.Item("journalArticle"); for(var i in lines) { if(lines[i].substring(0,3) == "<1>") { haveStarted = true; } else if(newItemRe.test(lines[i])) { newItem.complete(); newItem = new Zotero.Item("journalArticle"); } else if(lines[i].substr(2, 4) == " - " && haveStarted) { var fieldCode = lines[i].substr(0, 2); var fieldContent = Zotero.Utilities.cleanString(lines[i].substr(6)); if(fieldCode == "TI") { newItem.title = fieldContent.replace(/\. \[\w+\]$/, ""); } else if(fieldCode == "AU") { var names = fieldContent.split(", "); if(names.length >= 2) { // get rid of the weird field codes if(names.length == 2) { names[1] = names[1].replace(/ [\+\*\S\[\]]+$/, ""); } names[1] = names[1].replace(/ (?:MD|PhD|[BM]Sc|[BM]A|MPH|MB)$/i, ""); newItem.creators.push({firstName:names[1], lastName:names[0], creatorType:"author"}); } else if (fieldContent.match(/^(.*) [A-Z]{1,3}$/)) { names = fieldContent.match(/^(.*) ([A-Z]{1,3})$/); newItem.creators.push({firstName:names[2], lastName:names[1], creatorType:"author"}); } else { newItem.creators.push({lastName:names[0], isInstitution:true, creatorType:"author"}); } } else if(fieldCode == "SO") { if (fieldContent.match(/\d{4}/)) { newItem.date = fieldContent.match(/\d{4}/)[0]; } if (fieldContent.match(/(\d+)\((\d+)\)/)) { var voliss = fieldContent.match(/(\d+)\((\d+)\)/); newItem.volume = voliss[1]; newItem.issue = voliss[2]; } if (fieldContent.match(/vol\.\s*(\d+)/)) { newItem.volume = fieldContent.match(/vol\.\s*(\d+)/)[1]; } if (fieldContent.match(/vol\.\s*\d+\s*,\s*no\.\s*(\d+)/)) { newItem.issue = fieldContent.match(/vol\.\s*\d+\s*,\s*no\.\s*(\d+)/)[1]; } if (fieldContent.match(/\d+\-\d+/)) newItem.pages = fieldContent.match(/\d+\-\d+/)[0]; if (fieldContent.match(/pp\.\s*(\d+\-\d+)/)) newItem.pages = fieldContent.match(/pp\.\s*(\d+\-\d+)/)[1]; if (fieldContent.match(/[J|j]ournal/)) { newItem.publicationTitle = fieldContent.match(/[J|j]ournal[-\s\w]+/)[0]; } else { newItem.publicationTitle = Zotero.Utilities.trimInternal(fieldContent.split(/(\.|;|(,\s*vol\.))/)[0]); } } else if(fieldCode == "SB") { newItem.tags.push(Zotero.Utilities.superCleanString(fieldContent)); } else if(fieldCode == "KW") { newItem.tags.push(fieldContent.split(/; +/)); } else if(fieldCode == "DB") { newItem.repository = "Ovid ("+fieldContent+")"; } else if(fieldCode == "DI") { newItem.DOI = fieldContent; } else if(fieldCode == "DO") { newItem.DOI = fieldContent; } else if(fieldCode == "DP") { newItem.date = fieldContent; } else if(fieldCode == "IS") { newItem.ISSN = fieldContent; } else if(fieldCode == "AB") { newItem.abstractNote = fieldContent; } } } // last item is complete if(haveStarted) { newItem.complete(); } }, function () { Zotero.done(); });
(function(){var a=CKEDITOR.document;CKEDITOR.dialog.add('templates',function(b){function c(h,i){h.setHtml('');for(var j=0;j<i.length;j++){var k=CKEDITOR.getTemplates(i[j]),l=k.imagesPath,m=k.templates,n=m.length;for(var o=0;o<n;o++){var p=m[o],q=d(p,l);q.setAttribute('aria-posinset',o+1);q.setAttribute('aria-setsize',n);h.append(q);}}};function d(h,i){var j=CKEDITOR.dom.element.createFromHtml('<a href="javascript:void(0)" tabIndex="-1" role="option" ><div class="cke_tpl_item"></div></a>'),k='<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';if(h.image&&i)k+='<td class="cke_tpl_preview_img"><img src="'+CKEDITOR.getUrl(i+h.image)+'"'+(CKEDITOR.env.ie6Compat?' onload="this.width=this.width"':'')+' alt="" title=""></td>';k+='<td style="white-space:normal;"><span class="cke_tpl_title">'+h.title+'</span><br/>';if(h.description)k+='<span>'+h.description+'</span>';k+='</td></tr></table>';j.getFirst().setHtml(k);j.on('click',function(){e(h.html);});return j;};function e(h){var i=CKEDITOR.dialog.getCurrent(),j=i.getValueOf('selectTpl','chkInsertOpt');if(j){b.on('contentDom',function(k){k.removeListener();i.hide();var l=new CKEDITOR.dom.range(b.document);l.moveToElementEditStart(b.document.getBody());l.select(true);setTimeout(function(){b.fire('saveSnapshot');},0);});b.fire('saveSnapshot');b.setData(h);}else{b.insertHtml(h);i.hide();}};function f(h){var i=h.data.getTarget(),j=g.equals(i);if(j||g.contains(i)){var k=h.data.getKeystroke(),l=g.getElementsByTag('a'),m;if(l){if(j)m=l.getItem(0);else switch(k){case 40:m=i.getNext();break;case 38:m=i.getPrevious();break;case 13:case 32:i.fire('click');}if(m){m.focus();h.data.preventDefault();}}}};CKEDITOR.skins.load(b,'templates');var g;return{title:b.lang.templates.title,minWidth:CKEDITOR.env.ie?440:400,minHeight:340,contents:[{id:'selectTpl',label:b.lang.templates.title,elements:[{type:'vbox',padding:5,children:[{type:'html',html:'<span>'+b.lang.templates.selectPromptMsg+'</span>'},{id:'templatesList',type:'html',focus:true,html:'<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="cke_tpl_list_label"><div class="cke_tpl_loading"><span></span></div></div><span class="cke_voice_label" id="cke_tpl_list_label">'+b.lang.templates.options+'</span>'},{id:'chkInsertOpt',type:'checkbox',label:b.lang.templates.insertOption,'default':b.config.templates_replaceContent}]}]}],buttons:[CKEDITOR.dialog.cancelButton],onShow:function(){var h=this.getContentElement('selectTpl','templatesList');g=h.getElement();
(function(){var a=CKEDITOR.document;CKEDITOR.dialog.add('templates',function(b){function c(i,j){i.setHtml('');for(var k=0;k<j.length;k++){var l=CKEDITOR.getTemplates(j[k]),m=l.imagesPath,n=l.templates,o=n.length;for(var p=0;p<o;p++){var q=n[p],r=d(q,m);r.setAttribute('aria-posinset',p+1);r.setAttribute('aria-setsize',o);i.append(r);}}};function d(i,j){var k=CKEDITOR.dom.element.createFromHtml('<a href="javascript:void(0)" tabIndex="-1" role="option" ><div class="cke_tpl_item"></div></a>'),l='<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';if(i.image&&j)l+='<td class="cke_tpl_preview_img"><img src="'+CKEDITOR.getUrl(j+i.image)+'"'+(CKEDITOR.env.ie6Compat?' onload="this.width=this.width"':'')+' alt="" title=""></td>';l+='<td style="white-space:normal;"><span class="cke_tpl_title">'+i.title+'</span><br/>';if(i.description)l+='<span>'+i.description+'</span>';l+='</td></tr></table>';k.getFirst().setHtml(l);k.on('click',function(){e(i.html);});return k;};function e(i){var j=CKEDITOR.dialog.getCurrent(),k=j.getValueOf('selectTpl','chkInsertOpt');if(k){b.on('contentDom',function(l){l.removeListener();j.hide();var m=new CKEDITOR.dom.range(b.document);m.moveToElementEditStart(b.document.getBody());m.select(true);setTimeout(function(){b.fire('saveSnapshot');},0);});b.fire('saveSnapshot');b.setData(i);}else{b.insertHtml(i);j.hide();}};function f(i){var j=i.data.getTarget(),k=g.equals(j);if(k||g.contains(j)){var l=i.data.getKeystroke(),m=g.getElementsByTag('a'),n;if(m){if(k)n=m.getItem(0);else switch(l){case 40:n=j.getNext();break;case 38:n=j.getPrevious();break;case 13:case 32:j.fire('click');}if(n){n.focus();i.data.preventDefault();}}}};CKEDITOR.skins.load(b,'templates');var g,h='cke_tpl_list_label_'+CKEDITOR.tools.getNextNumber();return{title:b.lang.templates.title,minWidth:CKEDITOR.env.ie?440:400,minHeight:340,contents:[{id:'selectTpl',label:b.lang.templates.title,elements:[{type:'vbox',padding:5,children:[{type:'html',html:'<span>'+b.lang.templates.selectPromptMsg+'</span>'},{id:'templatesList',type:'html',focus:true,html:'<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="'+h+'">'+'<div class="cke_tpl_loading"><span></span></div>'+'</div>'+'<span class="cke_voice_label" id="'+h+'">'+b.lang.templates.options+'</span>'},{id:'chkInsertOpt',type:'checkbox',label:b.lang.templates.insertOption,'default':b.config.templates_replaceContent}]}]}],buttons:[CKEDITOR.dialog.cancelButton],onShow:function(){var i=this.getContentElement('selectTpl','templatesList');
(function(){var a=CKEDITOR.document;CKEDITOR.dialog.add('templates',function(b){function c(h,i){h.setHtml('');for(var j=0;j<i.length;j++){var k=CKEDITOR.getTemplates(i[j]),l=k.imagesPath,m=k.templates,n=m.length;for(var o=0;o<n;o++){var p=m[o],q=d(p,l);q.setAttribute('aria-posinset',o+1);q.setAttribute('aria-setsize',n);h.append(q);}}};function d(h,i){var j=CKEDITOR.dom.element.createFromHtml('<a href="javascript:void(0)" tabIndex="-1" role="option" ><div class="cke_tpl_item"></div></a>'),k='<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';if(h.image&&i)k+='<td class="cke_tpl_preview_img"><img src="'+CKEDITOR.getUrl(i+h.image)+'"'+(CKEDITOR.env.ie6Compat?' onload="this.width=this.width"':'')+' alt="" title=""></td>';k+='<td style="white-space:normal;"><span class="cke_tpl_title">'+h.title+'</span><br/>';if(h.description)k+='<span>'+h.description+'</span>';k+='</td></tr></table>';j.getFirst().setHtml(k);j.on('click',function(){e(h.html);});return j;};function e(h){var i=CKEDITOR.dialog.getCurrent(),j=i.getValueOf('selectTpl','chkInsertOpt');if(j){b.on('contentDom',function(k){k.removeListener();i.hide();var l=new CKEDITOR.dom.range(b.document);l.moveToElementEditStart(b.document.getBody());l.select(true);setTimeout(function(){b.fire('saveSnapshot');},0);});b.fire('saveSnapshot');b.setData(h);}else{b.insertHtml(h);i.hide();}};function f(h){var i=h.data.getTarget(),j=g.equals(i);if(j||g.contains(i)){var k=h.data.getKeystroke(),l=g.getElementsByTag('a'),m;if(l){if(j)m=l.getItem(0);else switch(k){case 40:m=i.getNext();break;case 38:m=i.getPrevious();break;case 13:case 32:i.fire('click');}if(m){m.focus();h.data.preventDefault();}}}};CKEDITOR.skins.load(b,'templates');var g;return{title:b.lang.templates.title,minWidth:CKEDITOR.env.ie?440:400,minHeight:340,contents:[{id:'selectTpl',label:b.lang.templates.title,elements:[{type:'vbox',padding:5,children:[{type:'html',html:'<span>'+b.lang.templates.selectPromptMsg+'</span>'},{id:'templatesList',type:'html',focus:true,html:'<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="cke_tpl_list_label"><div class="cke_tpl_loading"><span></span></div></div><span class="cke_voice_label" id="cke_tpl_list_label">'+b.lang.templates.options+'</span>'},{id:'chkInsertOpt',type:'checkbox',label:b.lang.templates.insertOption,'default':b.config.templates_replaceContent}]}]}],buttons:[CKEDITOR.dialog.cancelButton],onShow:function(){var h=this.getContentElement('selectTpl','templatesList');g=h.getElement();
$(editor.getContainer()).addClass('tinyActive');
editor.onActivate.add(function(editor, otherEditor) { // hide click to edit $(editor.getContainer()).siblings('.clickToEdit').hide(); });
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function h(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function f(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function i(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function h(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() {
overlay.css("zIndex", conf.zIndex + 1).fadeIn(conf.fadeInSpeed, function() {
overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() { if (self.isOpened() && !$(this).index(overlay)) { onLoad.call(); } else { overlay.hide(); } });
$(this.form).submit(function() { return !blockSubmit; })
$('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } });
$(this.form).submit(function() { return !blockSubmit; })
9)&&d.style.display=="none"))if(b.keyCode==27||b.keyCode==37||b.keyCode==39){d.style.display="none";if(b.keyCode==27){f=null;$(a).hasClass("Wt-suggest-dropdown")?k():a.blur()}}else n.refilter()};d.lastChild.onclick=B;d.lastChild.onscroll=function(){if(o){clearTimeout(o);var a=c.getElement(f);a&&a.focus()}};this.delayHide=function(a){o=setTimeout(function(){o=null;if(d&&(a==null||f==a.id))k()},300)}});
null)if(m(a))if(!((b.keyCode==13||b.keyCode==9)&&d.style.display=="none"))if(b.keyCode==27||b.keyCode==37||b.keyCode==39){d.style.display="none";if(b.keyCode==27){f=null;$(a).hasClass("Wt-suggest-dropdown")?l():a.blur()}}else if(a.value!=s)n.refilter();else(a=k?c.getElement(k):null)&&v(a)};d.lastChild.onclick=D;d.lastChild.onscroll=function(){if(o){clearTimeout(o);var a=c.getElement(f);a&&a.focus()}};this.delayHide=function(a){o=setTimeout(function(){o=null;if(d&&(a==null||f==a.id))l()},300)}});
9)&&d.style.display=="none"))if(b.keyCode==27||b.keyCode==37||b.keyCode==39){d.style.display="none";if(b.keyCode==27){f=null;$(a).hasClass("Wt-suggest-dropdown")?k():a.blur()}}else n.refilter()};d.lastChild.onclick=B;d.lastChild.onscroll=function(){if(o){clearTimeout(o);var a=c.getElement(f);a&&a.focus()}};this.delayHide=function(a){o=setTimeout(function(){o=null;if(d&&(a==null||f==a.id))k()},300)}});
if (word_list.length !== 0) { if (word_list[0].skip) { switch (word_list[0].to) { case 'next': if (el.el_type === 'note' && el.pitches !== null && !inSlur) word_list.shift(); break; case 'slur': if (el.el_type === 'note' && el.pitches !== null) word_list.shift(); break; case 'bar': if (el.el_type === 'bar') word_list.shift(); break; } } else { if (el.el_type === 'note' && el.rest === undefined && !inSlur) { var lyric = word_list.shift(); if (el.lyric === undefined) el.lyric = [ lyric ]; else el.lyric.push(lyric); }
if (word_list.length !== 0) { if (word_list[0].skip) { switch (word_list[0].to) { case 'next': if (el.el_type === 'note' && el.pitches !== null && !inSlur) word_list.shift(); break; case 'slur': if (el.el_type === 'note' && el.pitches !== null) word_list.shift(); break; case 'bar': if (el.el_type === 'bar') word_list.shift(); break;
line.each(function(el) { if (word_list.length !== 0) { if (word_list[0].skip) { switch (word_list[0].to) { case 'next': if (el.el_type === 'note' && el.pitches !== null && !inSlur) word_list.shift(); break; case 'slur': if (el.el_type === 'note' && el.pitches !== null) word_list.shift(); break; case 'bar': if (el.el_type === 'bar') word_list.shift(); break; } } else { if (el.el_type === 'note' && el.rest === undefined && !inSlur) { var lyric = word_list.shift(); if (el.lyric === undefined) el.lyric = [ lyric ]; else el.lyric.push(lyric); } }// if (el.endSlur === true || el.endTie === true)// inSlur = false;// if (el.startSlur === true || el.startTie === true)// inSlur = true; } });
item.url = false;
translator.setHandler("itemDone", function(obj, item) { if (text.match("L3")) { item.DOI = text.match(/L3\s+\-\s*(.*)/)[1]; } if (text.match("T1")) { item.title = text.match(/T1\s+-\s*(.*)/)[1]; } item.itemType = "journalArticle"; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); });
uri = text.match(/&amp;url=([^']+)'/)
uri = text.match(/url=([^']+)'/)
Zotero.Utilities.HTTP.doPost(uri, poststring, function(text) { uri = host+"/us/lnacademic/delivery/refExport.do"; var disb = text.match(/<input type="hidden" name="disb" value="([^"]+)">/); poststring = "delRange="+delRange+"&selDocs=&disb="+disb[1]+"&initializationPage=0"; Zotero.Utilities.HTTP.doPost(uri, poststring, function(text) { uri = text.match(/&amp;url=([^']+)'/) uri = decodeURIComponent(uri[1]); uri = uri.replace(/http:\/\/[^/]*\//, host+"/"); var uris = new Array(); uris.push(uri); Zotero.Utilities.processDocuments(uris, function(newDoc){ var elmts =newDoc.evaluate('//html', newDoc, nsResolver, XPathResult.ANY_TYPE, null); var elmt; while (elmt = elmts.iterateNext()){ var newItem = new Zotero.Item("newspaperArticle"); var title = newDoc.evaluate('.//div[@class="HEADLINE"]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (title.textContent){ newItem.title = title.textContent; }else{ newItem.title = " "; } var date = newDoc.evaluate('.//meta[@name="_lndateissue"]/@content', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (date){ date = date.nodeValue; var m = date.match(/([^T]+)T/); date = m[1]; if (date.length == 8){ date = date.substr(0,4) + "-" + date.substr(4,2) + "-" + date.substr(6,2); } else if (date.length == 6){ date = date.substr(0,4) + "-" + date.substr(4,2); } newItem.date = date; } var publicationTitle = newDoc.evaluate('.//div[@class="PUB"]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (publicationTitle){ newItem.publicationTitle = publicationTitle.textContent; } var section = newDoc.evaluate('.//div[@class="SECTION-INFO"]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (section){ newItem.section = section.textContent; } var author = newDoc.evaluate('.//div[@class="BYLINE"]', elmt, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if (author){ newItem.creators.push(Zotero.Utilities.cleanAuthor(author.textContent, "author")); } newItem.repository = "lexisnexis.com"; newItem.url = url; newItem.complete() } Zotero.done(); }); }); });
j+"</div></body></html>";try{o=F.contentWindow.document;o.open();o.write(j);o.close();return true}catch(p){return false}}function k(){var j,o,p,w;if(!F.contentWindow||!F.contentWindow.document)setTimeout(k,10);else{j=F.contentWindow.document;p=(o=j.getElementById("state"))?o.innerText:null;w=a();setInterval(function(){var O,G;j=F.contentWindow.document;O=(o=j.getElementById("state"))?o.innerText:null;G=a();if(O!==p){p=O;f(p);G=p?p:D;w=location.hash=G;b()}else if(G!==w){w=G;n(G)}},50);B=true;z!=null&&
j+"</div></body></html>";try{o=F.contentWindow.document;o.open();o.write(j);o.close();return true}catch(p){return false}}function k(){var j,o,p,w;if(!F.contentWindow||!F.contentWindow.document)setTimeout(k,10);else{j=F.contentWindow.document;p=(o=j.getElementById("state"))?o.innerText:null;w=a();setInterval(function(){var P,G;j=F.contentWindow.document;P=(o=j.getElementById("state"))?o.innerText:null;G=a();if(P!==p){p=P;f(p);G=p?p:D;w=location.hash=G;b()}else if(G!==w){w=G;n(G)}},50);B=true;z!=null&&
j+"</div></body></html>";try{o=F.contentWindow.document;o.open();o.write(j);o.close();return true}catch(p){return false}}function k(){var j,o,p,w;if(!F.contentWindow||!F.contentWindow.document)setTimeout(k,10);else{j=F.contentWindow.document;p=(o=j.getElementById("state"))?o.innerText:null;w=a();setInterval(function(){var O,G;j=F.contentWindow.document;O=(o=j.getElementById("state"))?o.innerText:null;G=a();if(O!==p){p=O;f(p);G=p?p:D;w=location.hash=G;b()}else if(G!==w){w=G;n(G)}},50);B=true;z!=null&&
var id = text.match(/=([^=]+)\">\s*Download to citation manager/)[1]; var newurl = newurls.shift();
var id, match, newurl, pdfurl, get; match = text.match(/=([^=]+)\">\s*Download citation/); if (!match || match.length < 1) { match = text.match(/=([^=]+)\">\s*Download to citation manager/); } id = match[1]; newurl = newurls.shift();
Zotero.Utilities.HTTP.doGet(arts, function(text) { var id = text.match(/=([^=]+)\">\s*Download to citation manager/)[1]; var newurl = newurls.shift(); if (newurl.match("cgi/content")) { var pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf"; } else { // This is not ideal...todo: brew a regex that grabs the correct URL var pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf"; } var get = host + 'citmgr?type=refman&gca=' + id; Zotero.Utilities.HTTP.doGet(get, function(text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); if (text.match(/N1(.*)\n/)) { var doi = text.match(/N1\s+\-\s+(.*)\n/)[1]; } translator.setHandler("itemDone", function(obj, item) { item.attachments = [ {url:newurl, title:"Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"Full Text PDF", mimeType:"application/pdf"} ]; if (doi) item.DOI = doi; if (item.notes) item.notes = []; item.complete(); }); translator.translate(); }); });
var pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf";
pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf";
Zotero.Utilities.HTTP.doGet(arts, function(text) { var id = text.match(/=([^=]+)\">\s*Download to citation manager/)[1]; var newurl = newurls.shift(); if (newurl.match("cgi/content")) { var pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf"; } else { // This is not ideal...todo: brew a regex that grabs the correct URL var pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf"; } var get = host + 'citmgr?type=refman&gca=' + id; Zotero.Utilities.HTTP.doGet(get, function(text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); if (text.match(/N1(.*)\n/)) { var doi = text.match(/N1\s+\-\s+(.*)\n/)[1]; } translator.setHandler("itemDone", function(obj, item) { item.attachments = [ {url:newurl, title:"Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"Full Text PDF", mimeType:"application/pdf"} ]; if (doi) item.DOI = doi; if (item.notes) item.notes = []; item.complete(); }); translator.translate(); }); });
var pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf";
pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf";
Zotero.Utilities.HTTP.doGet(arts, function(text) { var id = text.match(/=([^=]+)\">\s*Download to citation manager/)[1]; var newurl = newurls.shift(); if (newurl.match("cgi/content")) { var pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf"; } else { // This is not ideal...todo: brew a regex that grabs the correct URL var pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf"; } var get = host + 'citmgr?type=refman&gca=' + id; Zotero.Utilities.HTTP.doGet(get, function(text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); if (text.match(/N1(.*)\n/)) { var doi = text.match(/N1\s+\-\s+(.*)\n/)[1]; } translator.setHandler("itemDone", function(obj, item) { item.attachments = [ {url:newurl, title:"Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"Full Text PDF", mimeType:"application/pdf"} ]; if (doi) item.DOI = doi; if (item.notes) item.notes = []; item.complete(); }); translator.translate(); }); });
var get = host + 'citmgr?type=refman&gca=' + id;
get = host + 'citmgr?type=refman&gca=' + id;
Zotero.Utilities.HTTP.doGet(arts, function(text) { var id = text.match(/=([^=]+)\">\s*Download to citation manager/)[1]; var newurl = newurls.shift(); if (newurl.match("cgi/content")) { var pdfurl = newurl.replace(/cgi\/content\/abstract/, "content") + ".full.pdf"; } else { // This is not ideal...todo: brew a regex that grabs the correct URL var pdfurl = newurl.slice(0, newurl.lastIndexOf(".")) + ".full.pdf"; } var get = host + 'citmgr?type=refman&gca=' + id; Zotero.Utilities.HTTP.doGet(get, function(text) { var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); if (text.match(/N1(.*)\n/)) { var doi = text.match(/N1\s+\-\s+(.*)\n/)[1]; } translator.setHandler("itemDone", function(obj, item) { item.attachments = [ {url:newurl, title:"Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"Full Text PDF", mimeType:"application/pdf"} ]; if (doi) item.DOI = doi; if (item.notes) item.notes = []; item.complete(); }); translator.translate(); }); });
hp.gracenotes.each(function(p) { p.verticalPos = p.pitch - mid2; });
hp.pitches.each(function(p) { p.verticalPos = p.pitch - mid; });
hp.gracenotes.each(function(p) { p.verticalPos = p.pitch - mid2; });
return;
runModalDialog(function() { if ($T(element).hasAction) { element.fire(Tapestry.ACTION_EVENT, event); return; } /* * A submit element (i.e., it has a click() method)? Try that * next. */ if (element.click) { interceptClickEvent = false; element.click(); } /* * Not a zone updater, so just do a full page refresh to the * indicated URL. */ window.location = element.href; });
item.abstractNote = abs;
if (abs) item.abstractNote = abs;
translator.setHandler("itemDone", function(obj, item) { if (item.itemID) { item.DOI = item.itemID; } item.attachments = [ {url:snapurl, title:"PROLA Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"PROLA Full Text PDF", mimeType:"application/pdf"} ]; item.abstractNote = abs; item.complete(); });
result.prime = NULL_CHECKER;
result.checker = NULL_CHECKER;
function(result) { result.prime = NULL_CHECKER; BigInteger.log( "stepping_fromNumber1.2.1.1: calling stepping_isProbablePrime" ); return self.stepping_isProbablePrime( certainty ); },
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=j-g.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){d(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(q.rows[0].childNodes[0],
F;++B){x=w.childNodes[B];if(x.className!="Wt-vrh"){if(x.colSpan==1&&D==e&&x.childNodes.length==1){w=x.firstChild;x=j-g.marginH(w);w.style.width=x+"px";break}D+=x.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){i(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,w=a.pxself(s.rows[0].childNodes[0],
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=j-g.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){d(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(q.rows[0].childNodes[0],
c.el.parentNode;c=r(c.el);var d=r(a),k=a.parentNode.childNodes.length,g=a.childNodes.length;b=b.shiftKey;for(var h=false,e=c,l;;){for(;b?e>=0:e<g;e=b?e-1:e+1)for(l=e==c&&!h?b?d-1:d+1:b?k-1:0;b?l>=0:l<k;l=b?l-1:l+1){if(e==c&&l==d)return;a=a.parentNode.childNodes[l];var o=$(a.childNodes[e]).find(":input");if(o.size()>0){setTimeout(function(){o.focus()},0);return}}e=b?g-1:0;h=true}}}else if(b.keyCode>=37&&b.keyCode<=40){h=b.target||b.srcElement;if(h.nodeName!="select"){c=q(b);if(c.el){a=c.el.parentNode;
g=a.childNodes.length;b=b.shiftKey;for(var j=false,e=c,l;;){for(;b?e>=0:e<g;e=b?e-1:e+1)for(l=e==c&&!j?b?d-1:d+1:b?k-1:0;b?l>=0:l<k;l=b?l-1:l+1){if(e==c&&l==d)return;a=a.parentNode.childNodes[l];var o=$(a.childNodes[e]).find(":input");if(o.size()>0){setTimeout(function(){o.focus()},0);return}}e=b?g-1:0;j=true}}}else if(b.keyCode>=37&&b.keyCode<=40){j=b.target||b.srcElement;if(j.nodeName!="select"){c=q(b);if(c.el){a=c.el.parentNode;c=r(c.el);d=r(a);k=a.parentNode.childNodes.length;g=a.childNodes.length;
c.el.parentNode;c=r(c.el);var d=r(a),k=a.parentNode.childNodes.length,g=a.childNodes.length;b=b.shiftKey;for(var h=false,e=c,l;;){for(;b?e>=0:e<g;e=b?e-1:e+1)for(l=e==c&&!h?b?d-1:d+1:b?k-1:0;b?l>=0:l<k;l=b?l-1:l+1){if(e==c&&l==d)return;a=a.parentNode.childNodes[l];var o=$(a.childNodes[e]).find(":input");if(o.size()>0){setTimeout(function(){o.focus()},0);return}}e=b?g-1:0;h=true}}}else if(b.keyCode>=37&&b.keyCode<=40){h=b.target||b.srcElement;if(h.nodeName!="select"){c=q(b);if(c.el){a=c.el.parentNode;
.filter(function() { return $(this).attr("rel").toLowerCase() == "stylesheet"; })
setTimeout(function(){ _callPrint(element); }, 50);
.filter(function() { return $(this).attr("rel").toLowerCase() == "stylesheet"; })
newItem.title = Zotero.Utilities.cleanString(article.headline.paragraph.text().toString()); newItem.publicationTitle = Zotero.Utilities.cleanString(article.sourceName.text().toString());
newItem.title = Zotero.Utilities.trimInternal(article.headline.paragraph.text().toString()); newItem.publicationTitle = Zotero.Utilities.trimInternal(article.sourceName.text().toString());
Zotero.Utilities.HTTP.doPost("http://global.factiva.com/pps/default.aspx?pp=XML", post, function(text) { // Remove xml parse instruction and doctype text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); // kill the XML namespace, too, because we have no way of knowing what it will be, which presents a problem text = text.replace(/<ppsArticleResponse xmlns="[^"]+">/, "<ppsArticleResponse>"); // kill hlt tags; they just make parsing harder text = text.replace(/<\/?hlt>/g, ""); var xml = new XML(text); // loop through articles for each(var ppsarticle in xml[0]..ppsarticle) { var article = ppsarticle.article; var newItem = new Zotero.Item("newspaperArticle"); newItem.title = Zotero.Utilities.cleanString(article.headline.paragraph.text().toString()); newItem.publicationTitle = Zotero.Utilities.cleanString(article.sourceName.text().toString()); for each(var tag in article..name) { newItem.tags.push(tag.text().toString()); }
$(document).ready(function() { jsBackend.users.init(); });
$('#nickname').keyup(function() { change = false; });
$(document).ready(function() { jsBackend.users.init(); });
rec.set('exposed', true); rec.set('userManaged', true);
Sonatype.Events.addListener('repositoryAddMenuInit', function(menu) { var sp = Sonatype.lib.Permissions; if (sp.checkPermission('nexus:repogroups', sp.CREATE)) { menu.add('-'); menu.add({ text : 'Repository Group', autoCreateNewRecord : true, handler : function(container, rec, item, e) { rec.beginEdit(); rec.set('repoType', 'group'); rec.commit(); rec.endEdit(); }, scope : this }); } });
return $(this).text().match(/^\s*X:/m);
var str = getABCText(this); return getABCText(this).match(/^\s*X:/m);
var children = $(elem).children().filter(function() { return $(this).text().match(/^\s*X:/m); });
h.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(o){m(c,f,o)},h,l,g,0,0)}function k(c,f,g){var h=-c.previousSibling.offsetWidth,o=c.nextSibling.offsetWidth,q=c.firstChild,v=a.pxself(t.rows[0].childNodes[0],"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",q.offsetWidth,t.offsetHeight-v-w,h,o,"Wt-hsh",function(B){e(c,f,B)},q,l,g,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function m(c,
j.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){o(c,f,q)},j,n,g,0,0)}function m(c,f,g){var j=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,w=a.pxself(v.rows[0].childNodes[0],"paddingTop"),x=a.pxself(v.rows[v.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,v.offsetHeight-w-x,j,q,"Wt-hsh",function(C){e(c,f,C)},s,n,g,0,-c.offsetTop+w-a.pxself(c,"paddingTop"))}function o(c,
h.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(o){m(c,f,o)},h,l,g,0,0)}function k(c,f,g){var h=-c.previousSibling.offsetWidth,o=c.nextSibling.offsetWidth,q=c.firstChild,v=a.pxself(t.rows[0].childNodes[0],"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",q.offsetWidth,t.offsetHeight-v-w,h,o,"Wt-hsh",function(B){e(c,f,B)},q,l,g,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function m(c,