rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
Zotero.Utilities.cleanString(id); | Zotero.Utilities.trimInternal(id); | function detectWeb(doc, url) { // identifies articles according to the presence of an article ID // number in the URL var index = url.toString().indexOf('.org/') + 5; index += url.toString().substr(index).indexOf('/'); if (index != -1) { // ordinary aritcle var id = url.toString().substr(index + 1, 5); Zotero.Utilit... |
return "multiple"; } else if (doc.location.href.toLowerCase().indexOf("displaystory") != -1 || doc.location.href.indexOf("cityPage") != -1) { | } else if (doc.location.href.toLowerCase().indexOf("node") != -1) { | function detectWeb(doc, url) { if (doc.location.href.indexOf("search") != -1) { return "multiple"; } else if (doc.location.href.toLowerCase().indexOf("displaystory") != -1 || doc.location.href.indexOf("cityPage") != -1) { return "magazineArticle"; }} |
if (!url.match(/SEARCH=/) && !url.match(/searchargs?=/) && !url.match(/&FF/) && !url.match(/search~S[0-9]/) && !url.match(/\/search\/q\?/)) return false; | if (!url.match(/SEARCH=/) && !url.match(/searchargs?=/) && !url.match(/&FF/) && !url.match(/search~S[0-9]/) && !url.match(/\/search\/q\?/) && !url.match(/record=/)) return false; | function detectWeb(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null;//***********// URL MATCHING - translator should detect the following urls...// First page results// http://bearcat.baylor.edu... |
var articleRe = /detail.aspx/; var s = articleRe.exec(url); | var pattern = /detail.aspx/; | function detectWeb(doc, url) { var articleRe = /detail.aspx/; var s = articleRe.exec(url); if(s) { return "journalArticle"; } else { articleRe = /Brief.aspx/; s = articleRe.exec(url); if(s) return "multiple"; } return false;} |
if(s) { return "journalArticle"; } else { articleRe = /Brief.aspx/; s = articleRe.exec(url); if(s) return "multiple"; | if (pattern.test(url)) { var code = detectCode(url); if (code == "CJFQ" || code == "CJFD") { return "journalArticle"; } else if (code == "CDFD") { return "thesis"; } else if (code == "CMFD" || code == "CLKM") { return "thesis"; } else if (code == "CPFD") { return "conferencePaper"; } else if (code == "CCND") { return ... | function detectWeb(doc, url) { var articleRe = /detail.aspx/; var s = articleRe.exec(url); if(s) { return "journalArticle"; } else { articleRe = /Brief.aspx/; s = articleRe.exec(url); if(s) return "multiple"; } return false;} |
var nsResolver = doc.createNSResolver(doc.documentElement); | function nsResolver() { return 'http: } | function detectWeb(doc, url) { // initialize variables unsearchedIds = []; foundIds = []; foundItems = []; foundFormat = []; foundFormatName = []; // Set the domain we're scraping domain = doc.location.href.match(/https?:\/\/([^/]+)/); var nsResolver = doc.createNSResolver(doc.documentElement); // look for a resolver... |
if (url.match(/(naid|QuotDisp)/)) { | if (url.match(/naid/)) { | function detectWeb(doc, url) { if (url.match(/(naid|QuotDisp)/)) { return "journalArticle"; } else if (doc.evaluate('//a[contains(@href, "QuotDisp") or contains(@href, "/naid/")]', doc, null, XPathResult.ANY_TYPE, null).iterateNext()) { return "multiple"; }} |
|| export_options[i].text == 'MARC communication format') { | || export_options[i].text == 'MARC communication format' || export_options[i].text == 'MARC Record') { | function detectWeb(doc, url) { var export_options = doc.forms.namedItem('frm').elements.namedItem('RD').options; for(var i in export_options) { if(export_options[i].text == 'Latin1 MARC' || export_options[i].text == 'Raw MARC' || export_options[i].text == 'MARC 8' || export_options[i].text == 'MARC-8' || export_op... |
Zotero.debug("detecting unAPI"); | function detectWeb(doc, url) { Zotero.debug("detecting unAPI"); // initialize variables unsearchedIds = []; foundIds = []; foundItems = []; foundFormat = []; foundFormatName = []; // Set the domain we're scraping domain = doc.location.href.match(/https?:\/\/([^/]+)/); var nsResolver = doc.createNSResolver(doc.documen... | |
Zotero.debug(text); | function detectWeb(doc, url) { Zotero.debug("detecting unAPI"); // initialize variables unsearchedIds = []; foundIds = []; foundItems = []; foundFormat = []; foundFormatName = []; // Set the domain we're scraping domain = doc.location.href.match(/https?:\/\/([^/]+)/); var nsResolver = doc.createNSResolver(doc.documen... | |
var xpath = ' var persistentLink = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); | var xpath = ' var persistentLink = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null); | function detectWeb(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; // The Scientific American Archive breaks this translator, disabling try { var databases = doc.evaluate("//span[@clas... |
var value = Zotero.Utilities.cleanString(genre.nodeValue.substr(7)); | var value = Zotero.Utilities.trimInternal(genre.nodeValue.substr(7)); | function detectWeb(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; // ensure that there is an InfoTrac logo if(!doc.evaluate('//img[substring(@alt, 1, 8) = "InfoTrac"]', doc, nsResolver, XPat... |
if (url.indexOf("toc") != -1) { | if (/\/toc\ | function detectWeb(doc, url) { if (url.indexOf("toc") != -1) { return "multiple"; } else { return "journalArticle"; }} |
var spans = doc.evaluate(' | function nsResolver() { return 'http: } var spans = doc.evaluate(' | function detectWeb(doc, url) { var spanTags = doc.getElementsByTagName("span"); var encounteredType = false; var spans = doc.evaluate('//span[contains(@class, " Z3988") or contains(@class, "Z3988 ") or @class="Z3988"][@title]', doc, null, XPathResult.ANY_TYPE, null); var span; while(span = spans.iterateNext()) { // ... |
var articleRegexp = /^http:\/\/chronicle\.com\/(daily|weekly|article|blogPost)\/[^/]+\ | var articleRegexp = /^http:\/\/chronicle\.com\/(daily|weekly|article|blogPost|blogs\/\w+)\/[^/]+\ | function detectWeb(doc, url) { /* The /daily/ and /weekly/ sections are leftover from the previous version of the translator; they don't appear to still be on the Chronicle site, but they might persist in older URLs. */ var articleRegexp = /^http:\/\/chronicle\.com\/(daily|weekly|article|blogPost)\/[^/]+\// ; if(... |
if (section[1].indexOf("blogs") !== -1) return "blogPost"; | function detectWeb(doc, url) { /* The /daily/ and /weekly/ sections are leftover from the previous version of the translator; they don't appear to still be on the Chronicle site, but they might persist in older URLs. */ var articleRegexp = /^http:\/\/chronicle\.com\/(daily|weekly|article|blogPost)\/[^/]+\// ; if(... | |
var searchRe = new RegExp("^https?: | var searchRe = new RegExp("(^https?: | function detectWeb(doc, url) { var searchRe = new RegExp("^https?://[^/]+/search/results"); if(searchRe.test(url)) { return "multiple"; } else { return "journalArticle"; }} |
type = Zotero.Utilities.cleanString(type.textContent); | type = Zotero.Utilities.trimInternal(type.textContent); | function detectWeb(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; if(url.indexOf("/results.php") != -1) { var type = doc.evaluate('//td[@class="rt_tab_on"]', doc, nsResolver, XPathResult.AN... |
var singpath='contains( if(doc.evaluate(singpath, doc, nsResolver, XPathResult.ANY_TYPE, null).booleanValue) { var typepath=' | if(url.match(/ERICWebPortal\/search\/clipboard\.jsp/)) return "multiple"; if(url.match(/ERICWebPortal\/MyERIC\/clipboard\/viewFolder\.jsp\?folderIndex/)) return "multiple"; var singpath=' var res = doc.evaluate(singpath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); if(res && res.textContent.indexOf("Re... | function detectWeb(doc, url) { var namespace=doc.documentElement.namespaceURI; var nsResolver=namespace?function(prefix) { return (prefix=="x")?namespace:null; }:null; var searchpath='//form[@name="searchResultsForm"][@id="searchResultsForm"]'; if(doc.evaluate(searchpath, doc, nsResolver, XPathResult.ANY_TYPE, null).i... |
if(Zotero.Utilities.cleanString(row.textContent.toLowerCase())=="travel") | if(Zotero.Utilities.trimInternal(row.textContent.toLowerCase())=="travel") | function detectWeb(doc, url){ var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; var xpath = '//link[@title="Main"]'; if(doc.evaluate(xpat... |
if (doc.evaluate(' | if(doc.location.href.match(/[?&]q=/)) { | function detectWeb(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; if (doc.evaluate('//font[contains(./text(), "Result")]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) { retu... |
} else if (doc.location.href.match("id")) { | } else if(doc.location.href.match(/[?&]id=/)) { | function detectWeb(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null; if (doc.evaluate('//font[contains(./text(), "Result")]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) { retu... |
var book, | var book = 0, | determine_reference: function (ref) { var book, chapter, cv, zeros; /// First determine if it is likely a verse reference. if (!books_re.test(ref)) return false; book = 0; switch (ref.slice(0, 1).toLowerCase()) { case "j": if (book_arr_re[43].test(ref)) { /// John book = "43"; ... |
book = 0; | determine_reference: function (ref) { var book, chapter, cv, zeros; /// First determine if it is likely a verse reference. if (!books_re.test(ref)) return false; book = 0; switch (ref.slice(0, 1).toLowerCase()) { case "j": if (book_arr_re[43].test(ref)) { /// John book = "43"; ... | |
if (book == 0) return false; chapter = "001", verse = "001"; | if (book === 0) return false; chapter = "001"; verse = "001"; | determine_reference: function (ref) { var book, chapter, cv, zeros; /// First determine if it is likely a verse reference. if (!books_re.test(ref)) return false; book = 0; switch (ref.slice(0, 1).toLowerCase()) { case "j": if (book_arr_re[43].test(ref)) { /// John book = "43"; ... |
var split_pos, morph_json, morph_attribute_json, morph_attributes, split_start, morph_search_term; | var morph_attribute_json, morph_attributes, morph_json, morph_search_term, split_start, split_pos; | function determine_search_type(search_terms) { var split_pos, morph_json, morph_attribute_json, morph_attributes, split_start, morph_search_term; /// Did the user use the morphological keyword in his search? if ((split_pos = search_terms.indexOf(lang.morph_marker)) != -1) { ///TODO: Determine what is better: a JS... |
var morph_attribute_json, | var exclude_json = "", morph_attribute_json = "", | function determine_search_type(search_terms) { var morph_attribute_json, morph_attributes, morph_json, morph_search_term, split_start, split_pos; /// Did the user use the morphological keyword in his search? if ((split_pos = search_terms.indexOf(lang.morph_marker)) != -1) { ///TODO: Determine what is ... |
morph_json, | morph_json = "", | function determine_search_type(search_terms) { var morph_attribute_json, morph_attributes, morph_json, morph_search_term, split_start, split_pos; /// Did the user use the morphological keyword in his search? if ((split_pos = search_terms.indexOf(lang.morph_marker)) != -1) { ///TODO: Determine what is ... |
morph_search_term = "" | morph_search_term = ""; | function determine_search_type(search_terms) { var morph_attribute_json, morph_attributes, morph_json, morph_search_term, split_start, split_pos; /// Did the user use the morphological keyword in his search? if ((split_pos = search_terms.indexOf(lang.morph_marker)) != -1) { ///TODO: Determine what is ... |
morph_attribute_json = "", exclude_json = ""; | function determine_search_type(search_terms) { var morph_attribute_json, morph_attributes, morph_json, morph_search_term, split_start, split_pos; /// Did the user use the morphological keyword in his search? if ((split_pos = search_terms.indexOf(lang.morph_marker)) != -1) { ///TODO: Determine what is ... | |
if (morph_attributes.slice(split_start, split_start + 1) == " ") ++split_start; | if (morph_attributes.slice(split_start, split_start + 1) === " ") ++split_start; | function determine_search_type(search_terms) { var morph_attribute_json, morph_attributes, morph_json, morph_search_term, split_start, split_pos; /// Did the user use the morphological keyword in his search? if ((split_pos = search_terms.indexOf(lang.morph_marker)) != -1) { ///TODO: Determine what is ... |
d.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){... | (f=e);if(f&&typeof f==="string")h=c.filter(f,h);h=this.length>1?c.unique(h):h;if((this.length>1||Da.test(f))&&Ca.test(a))h=h.reverse();return this.pushStack(h,a,I.call(arguments).join(","))}});c.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,e){var f=[];for(a=a[b];a&&a.... | d.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return d.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===v||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){... |
CasesBPMAssets.closeAccessRightsSetterBox(event); | CasesBPMAssets.closeAccessRightsSetterBox(event, null); | CasesBPMAssets.disableAttachmentForAllRoles = function(event, fileHash, processInstanceId, taskInstanceId) { if (!window.confirm(CasesBPMAssets.Loc.CASE_GRID_STRING_ARE_YOU_SURE)) { return false; } BPMProcessAssets.disableAttachmentForAllRoles(fileHash, processInstanceId, taskInstanceId, { callback: function(result)... |
{};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.requ... | {};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=g(a,{method:Xmla.METHOD_DISCOVER},true);return this.requ... | {};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.requ... |
if (this.ctx == null) { console.log('WGLWidget: failed to get a webgl context'); } | this.discoverContext = function() { if (canvas.getContext) { this.ctx = canvas.getContext('experimental-webgl'); if (this.ctx == null) { this.ctx = canvas.getContext('webgl'); } if (this.ctx == null) { console.log('WGLWidget: failed to get a webgl context'); } } ... | |
this.ctx = canvas.getContext('webgl'); | this.ctx = canvas.getContext('webgl', {antialias: true}); | this.discoverContext = function(noGLHandler) { if (canvas.getContext) { try { this.ctx = canvas.getContext('webgl'); } catch (e) {} if (this.ctx == null) { try { this.ctx = canvas.getContext('experimental-webgl'); } catch (e) {} } if (this.ctx == nu... |
WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(p,j){jQuery.data(j,"obj",this);var h=p.WT;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var f=null,g=null,k=null,l=0,m=0,c=null,n=0,o=0;this.discoverContext=function(){if(j.getContext){this.ctx=j.getContext("experimental-webgl");if(this.ctx==null)this... | WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,l){jQuery.data(l,"obj",this);var f=r.WT,k=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(){if(l.getContext){this.ctx=l.getContext("experim... | WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(p,j){jQuery.data(j,"obj",this);var h=p.WT;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var f=null,g=null,k=null,l=0,m=0,c=null,n=0,o=0;this.discoverContext=function(){if(j.getContext){this.ctx=j.getContext("experimental-webgl");if(this.ctx==null)this... |
this.discoverContext = function() { | this.discoverContext = function(noGLHandler) { | this.discoverContext = function() { if (canvas.getContext) { this.ctx = canvas.getContext('experimental-webgl'); if (this.ctx == null) { this.ctx = canvas.getContext('webgl'); } //if (this.ctx == null) { // console.log('WGLWidget: failed to get a webgl context'); //} ... |
this.ctx = canvas.getContext('experimental-webgl'); | try { this.ctx = canvas.getContext('webgl'); } catch (e) {} | this.discoverContext = function() { if (canvas.getContext) { this.ctx = canvas.getContext('experimental-webgl'); if (this.ctx == null) { this.ctx = canvas.getContext('webgl'); } //if (this.ctx == null) { // console.log('WGLWidget: failed to get a webgl context'); //} ... |
this.ctx = canvas.getContext('webgl'); | try { this.ctx = canvas.getContext('experimental-webgl'); } catch (e) {} | this.discoverContext = function() { if (canvas.getContext) { this.ctx = canvas.getContext('experimental-webgl'); if (this.ctx == null) { this.ctx = canvas.getContext('webgl'); } //if (this.ctx == null) { // console.log('WGLWidget: failed to get a webgl context'); //} ... |
if (this.ctx == null) { var alternative = canvas.firstChild; var parentNode = canvas.parentNode; parentNode.replaceChild(alternative, canvas); noGLHandler(); } | this.discoverContext = function() { if (canvas.getContext) { this.ctx = canvas.getContext('experimental-webgl'); if (this.ctx == null) { this.ctx = canvas.getContext('webgl'); } //if (this.ctx == null) { // console.log('WGLWidget: failed to get a webgl context'); //} ... | |
} | }; | this.discoverContext = function() { if (canvas.getContext) { this.ctx = canvas.getContext('experimental-webgl'); if (this.ctx == null) { this.ctx = canvas.getContext('webgl'); } //if (this.ctx == null) { // console.log('WGLWidget: failed to get a webgl context'); //} ... |
WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,j){jQuery.data(j,"obj",this);var f=r.WT,l=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(a){if(j.getContext){try{this.ctx=j.getContext("we... | WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,j){jQuery.data(j,"obj",this);var f=r.WT,l=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};this.resizeGL=function(){};this.updates=[];this.initialized=false;var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discover... | WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,j){jQuery.data(j,"obj",this);var f=r.WT,l=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(a){if(j.getContext){try{this.ctx=j.getContext("we... |
WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,l){jQuery.data(l,"obj",this);var f=r.WT,k=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(){if(l.getContext){this.ctx=l.getContext("experim... | WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,j){jQuery.data(j,"obj",this);var f=r.WT,l=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(a){if(j.getContext){try{this.ctx=j.getContext("we... | WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,l){jQuery.data(l,"obj",this);var f=r.WT,k=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(){if(l.getContext){this.ctx=l.getContext("experim... |
WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,l){jQuery.data(l,"obj",this);var f=r.WT,k=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(){if(l.getContext){this.ctx=l.getContext("experim... | WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,l){jQuery.data(l,"obj",this);var f=r.WT,k=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(){if(l.getContext){this.ctx=l.getContext("experim... | WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,l){jQuery.data(l,"obj",this);var f=r.WT,k=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(){if(l.getContext){this.ctx=l.getContext("experim... |
console.log('ctx: ' + this.ctx); | this.discoverContext = function() { if (canvas.getContext) { this.ctx = canvas.getContext('experimental-webgl'); if (this.ctx == null) { this.ctx = canvas.getContext('webgl'); } if (this.ctx == null) { console.log('WGLWidget: failed to get a webgl context'); } } ... | |
true);return this.discover(a)},discoverSchemaRowsets:function(a){a=h(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=h(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=h(a,{requestType:Xmla.DISCOVER_KEYW... | true);return this.discover(a)},discoverSchemaRowsets:function(a){a=g(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=g(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=g(a,{requestType:Xmla.DISCOVER_KEYW... | true);return this.discover(a)},discoverSchemaRowsets:function(a){a=h(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=h(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=h(a,{requestType:Xmla.DISCOVER_KEYW... |
true);return this.discover(a)},discoverDBColumns:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_SCHEMA... | true);return this.discover(a)},discoverDBColumns:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_SCHEMA... | true);return this.discover(a)},discoverDBColumns:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_SCHEMA... |
true);return this.discover(a)},discoverDBColumns:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_SCHEMA... | true);return this.discover(a)},discoverDBColumns:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=g(a,{requestType:Xmla.DBSCHEMA_SCHEMA... | true);return this.discover(a)},discoverDBColumns:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_COLUMNS},true);return this.discover(a)},discoverDBProviderTypes:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_PROVIDER_TYPES},true);return this.discover(a)},discoverDBSchemata:function(a){a=h(a,{requestType:Xmla.DBSCHEMA_SCHEMA... |
true);return this.discover(a)},discoverSchemaRowsets:function(a){a=h(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=h(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=h(a,{requestType:Xmla.DISCOVER_KEYW... | true);return this.discover(a)},discoverSchemaRowsets:function(a){a=g(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=g(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=g(a,{requestType:Xmla.DISCOVER_KEYW... | true);return this.discover(a)},discoverSchemaRowsets:function(a){a=h(a,{requestType:Xmla.DISCOVER_SCHEMA_ROWSETS},true);return this.discover(a)},discoverEnumerators:function(a){a=h(a,{requestType:Xmla.DISCOVER_ENUMERATORS},true);return this.discover(a)},discoverKeywords:function(a){a=h(a,{requestType:Xmla.DISCOVER_KEYW... |
true);return this.discover(a)},discoverMDActions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);ret... | true);return this.discover(a)},discoverMDActions:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);ret... | true);return this.discover(a)},discoverMDActions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);ret... |
true);return this.discover(a)},discoverMDActions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);ret... | true);return this.discover(a)},discoverMDActions:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);ret... | true);return this.discover(a)},discoverMDActions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_ACTIONS},true);return this.discover(a)},discoverMDCubes:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_CUBES},true);return this.discover(a)},discoverMDDimensions:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_DIMENSIONS},true);ret... |
true);return this.discover(a)},discoverMDLevels:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);retur... | true);return this.discover(a)},discoverMDLevels:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);retur... | true);return this.discover(a)},discoverMDLevels:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);retur... |
true);return this.discover(a)},discoverMDLevels:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);retur... | true);return this.discover(a)},discoverMDLevels:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=g(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);retur... | true);return this.discover(a)},discoverMDLevels:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_LEVELS},true);return this.discover(a)},discoverMDMeasures:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEASURES},true);return this.discover(a)},discoverMDMembers:function(a){a=h(a,{requestType:Xmla.MDSCHEMA_MEMBERS},true);retur... |
{};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.requ... | {};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=g(a,{method:Xmla.METHOD_DISCOVER},true);return this.requ... | {};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){if(!a.properties)a.properties={};a.properties[Xmla.PROP_FORMAT]=Xmla.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=h(a,{method:Xmla.METHOD_DISCOVER},true);return this.requ... |
|| searchType.showArtifactContainer() ) | || searchType.showArtifactContainer( rec ) ) | displayArtifactInformation : function(selectionModel, index, rec) { var searchType = this.getSearchType(this.searchTypeButton.value); if ( typeof searchType.showArtifactContainer != 'function' || searchType.showArtifactContainer() ) { this.artifactContainer.updateArtifact(rec.data); } }, |
name : rec.data.hits[0].repositoryName, resourceURI : rec.data.hits[0].repositoryURL, format : rec.data.hits[0].repositoryContentClass, repoType : rec.data.hits[0].repositoryKind, | name : rec.data.artifactHits[0].repositoryName, resourceURI : rec.data.artifactHits[0].repositoryURL, format : rec.data.artifactHits[0].repositoryContentClass, repoType : rec.data.artifactHits[0].repositoryKind, | displayArtifactInformation : function(selectionModel, index, rec) { var searchType = this.getSearchType(this.searchTypeButton.value); if (typeof searchType.showArtifactContainer != 'function' || searchType.showArtifactContainer(rec)) { var payload = { data : { ... |
if(this.firstRun) { this.stack.push(this.currentContext); context = new this.Context(); this.currentContext = context; funcarray.each(function(func){ this.STEP(func); }.bind(this)); this.currentContext.insertStep({type:'loop'}); this.currentContext.step = 0; this.currentContext = this.stack.pop(); this.currentContext.i... | this.stack.push(this.currentContext); context = new this.Context(); this.currentContext = context; funcarray.each(function(func){ this.step(func); }.bind(this)); this.currentContext.insertStep({type:'loop'}); this.currentContext.step = 0; | DO:function(funcarray) { var context; if(this.firstRun) { //only if in compile phase. this.stack.push(this.currentContext); context = new this.Context(); this.currentContext = context; funcarray.each(function(func){ this.STEP(func); }.bind(this)); this.currentContext.insertStep({type:'loop'})... |
newItem.volume=Zotero.Utilities.cleanString(vol); | newItem.volume=Zotero.Utilities.trimInternal(vol); | function doBook(newItem, bookdata) { var fields=bookdata.split("<br>"); for(var pos=fields.length-2; pos>=0; pos--) { fields[pos]=Zotero.Utilities.cleanTags(fields[pos]); if(fields[pos].indexOf("Volume")!=-1) { var i=fields[pos].lastIndexOf(";"); var vol; if(i!=-1) vol=fields[pos].substring(i+1); else v... |
newItem.edition=Zotero.Utilities.cleanString(ed); | newItem.edition=Zotero.Utilities.trimInternal(ed); | function doBook(newItem, bookdata) { var fields=bookdata.split("<br>"); for(var pos=fields.length-2; pos>=0; pos--) { fields[pos]=Zotero.Utilities.cleanTags(fields[pos]); if(fields[pos].indexOf("Volume")!=-1) { var i=fields[pos].lastIndexOf(";"); var vol; if(i!=-1) vol=fields[pos].substring(i+1); else v... |
newItem.date=Zotero.Utilities.cleanString(date); | newItem.date=Zotero.Utilities.trimInternal(date); | function doBook(newItem, bookdata) { var fields=bookdata.split("<br>"); for(var pos=fields.length-2; pos>=0; pos--) { fields[pos]=Zotero.Utilities.cleanTags(fields[pos]); if(fields[pos].indexOf("Volume")!=-1) { var i=fields[pos].lastIndexOf(";"); var vol; if(i!=-1) vol=fields[pos].substring(i+1); else v... |
newItem.ISBN=Zotero.Utilities.cleanString(isbn); | newItem.ISBN=Zotero.Utilities.trimInternal(isbn); | function doBook(newItem, bookdata) { var fields=bookdata.split("<br>"); for(var pos=fields.length-2; pos>=0; pos--) { fields[pos]=Zotero.Utilities.cleanTags(fields[pos]); if(fields[pos].indexOf("Volume")!=-1) { var i=fields[pos].lastIndexOf(";"); var vol; if(i!=-1) vol=fields[pos].substring(i+1); else v... |
authors[i]=Zotero.Utilities.cleanString(authors[i]); | authors[i]=Zotero.Utilities.trimInternal(authors[i]); | function doBook(newItem, bookdata) { var fields=bookdata.split("<br>"); for(var pos=fields.length-2; pos>=0; pos--) { fields[pos]=Zotero.Utilities.cleanTags(fields[pos]); if(fields[pos].indexOf("Volume")!=-1) { var i=fields[pos].lastIndexOf(";"); var vol; if(i!=-1) vol=fields[pos].substring(i+1); else v... |
editors[i]=Zotero.Utilities.cleanString(editors[i]); | editors[i]=Zotero.Utilities.trimInternal(editors[i]); | function doChap(newItem, chaptext) { var chapdata=chaptext.split("<br>"); for(var pos=chapdata.length-2; pos>=0; pos--) { chapdata[pos]=Zotero.Utilities.cleanTags(chapdata[pos]); if(chapdata[pos].indexOf("Editors")!=-1) { var editors=chapdata[pos].split(","); for(var i=0; i<=editors.length-1; i++) { editors[i]... |
authors[i]=Zotero.Utilities.cleanString(authors[i]); | authors[i]=Zotero.Utilities.trimInternal(authors[i]); | function doChap(newItem, chaptext) { var chapdata=chaptext.split("<br>"); for(var pos=chapdata.length-2; pos>=0; pos--) { chapdata[pos]=Zotero.Utilities.cleanTags(chapdata[pos]); if(chapdata[pos].indexOf("Editors")!=-1) { var editors=chapdata[pos].split(","); for(var i=0; i<=editors.length-1; i++) { editors[i]... |
if (!gmlDocument) | if (!gmlDocument) { | var doesResponseContainsData = function(gmlDocument) { if (!gmlDocument) return false; // Making an assumption about namespace... if (gmlDocument.tagName !== 'wfs:FeatureCollection') return false; // Parse our number of features var numberOfFeaturesAttr = gml... |
if (gmlDocument.tagName !== 'wfs:FeatureCollection') | if (gmlDocument.tagName !== 'wfs:FeatureCollection') { | var doesResponseContainsData = function(gmlDocument) { if (!gmlDocument) return false; // Making an assumption about namespace... if (gmlDocument.tagName !== 'wfs:FeatureCollection') return false; // Parse our number of features var numberOfFeaturesAttr = gml... |
var numberOfFeaturesAttr = gmlDocument.attributes .getNamedItem("numberOfFeatures"); if (!numberOfFeaturesAttr) | var numberOfFeaturesAttr = gmlDocument.attributes.getNamedItem("numberOfFeatures"); if (!numberOfFeaturesAttr) { | var doesResponseContainsData = function(gmlDocument) { if (!gmlDocument) return false; // Making an assumption about namespace... if (gmlDocument.tagName !== 'wfs:FeatureCollection') return false; // Parse our number of features var numberOfFeaturesAttr = gml... |
} | var doesResponseContainsData = function(gmlDocument) { if (!gmlDocument) return false; // Making an assumption about namespace... if (gmlDocument.tagName !== 'wfs:FeatureCollection') return false; // Parse our number of features var numberOfFeaturesAttr = gml... | |
if(item.numPages) { writeField("pages", item.numPages); } | function doExport() { //Zotero.write("% BibTeX export generated by Zotero "+Zotero.Utilities.getVersion()); // to make sure the BOM gets ignored Zotero.write("\n"); var first = true; var citekeys = new Object(); var item; while(item = Zotero.nextItem()) { // determine type var type = zotero2bibtexTypeMap[item.itemTy... | |
marcGenre = "theses"; | marcGenre = "thesis"; | function doExport() { Zotero.setCharacterSet("utf-8"); var modsCollection = <modsCollection xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-2.xsd" />; var item; while(item = Zotero.nextIt... |
Zotero.debug(item); | function doExport() { // add namespaces [Zotero.RDF.addNamespace(i, n[i]) for(i in n)]; // compile references and create URIs var item; var items = {}; while(item = Zotero.nextItem()) { items[item.itemID] = item; } // now that we've collected our items, start building the RDF for each(var item in items) { Zotero.de... | |
Zotero.debug(nodes); | function doExport() { // add namespaces [Zotero.RDF.addNamespace(i, n[i]) for(i in n)]; // compile references and create URIs var item; var items = {}; while(item = Zotero.nextItem()) { items[item.itemID] = item; } // now that we've collected our items, start building the RDF for each(var item in items) { Zotero.de... | |
for each(var tag in item.tags) { var tagNode = (tag.type == 0 ? nodes[USERITEM] : nodes[ITEM]); Zotero.RDF.addStatement(tagNode, n.dcterms+"subject", tag.tag, true); } | function doExport() { // add namespaces [Zotero.RDF.addNamespace(i, n[i]) for(i in n)]; // compile references and create URIs var item; var items = {}; while(item = Zotero.nextItem()) { items[item.itemID] = item; } // now that we've collected our items, start building the RDF for each(var item in items) { Zotero.de... | |
if(item.filingDate) { var date = Zotero.Utilities.strToDate(item.filingDate); var string = date.year+"/"; if(date.month != undefined) { date.month++; if(date.month < 10) string += "0"; string += date.month; } string += "/"; if(date.day != undefined) { if(date.day < 10) string += "0"; string += date.day; } string += "/... | function doExport() { var item; while(item = Zotero.nextItem()) { // can't store independent notes in RIS if(item.itemType == "note" || item.itemType == "attachment") { continue; } // type addTag("TY", typeMap[item.itemType] ? typeMap[item.itemType] : "GEN"); // use field map for(var j in fieldMap) { if(item... | |
if(date.month) { | if(typeof date.month == "number") { | function doExport() { //Zotero.write("% BibTeX export generated by Zotero "+Zotero.Utilities.getVersion()); // to make sure the BOM gets ignored Zotero.write("\n"); var first = true; var citekeys = new Object(); var item; while(item = Zotero.nextItem()) { // determine type var type = zotero2bibtexTypeMap[item.itemTy... |
if(item.attachments) { | if(item.attachments) { var attachmentString = ""; | function doExport() { //Zotero.write("% BibTeX export generated by Zotero "+Zotero.Utilities.getVersion()); // to make sure the BOM gets ignored Zotero.write("\n"); var first = true; var citekeys = new Object(); var item; while(item = Zotero.nextItem()) { // determine type var type = zotero2bibtexTypeMap[item.itemTy... |
writeField("file", ":" + attachment.path + ":" + attachment.mimeType); | attachmentString += ";" + attachment.title + ":" + attachment.path + ":" + attachment.mimeType; | function doExport() { //Zotero.write("% BibTeX export generated by Zotero "+Zotero.Utilities.getVersion()); // to make sure the BOM gets ignored Zotero.write("\n"); var first = true; var citekeys = new Object(); var item; while(item = Zotero.nextItem()) { // determine type var type = zotero2bibtexTypeMap[item.itemTy... |
writeField("file", attachmentString.substr(1)); | function doExport() { //Zotero.write("% BibTeX export generated by Zotero "+Zotero.Utilities.getVersion()); // to make sure the BOM gets ignored Zotero.write("\n"); var first = true; var citekeys = new Object(); var item; while(item = Zotero.nextItem()) { // determine type var type = zotero2bibtexTypeMap[item.itemTy... | |
} else if(item.creators[j].creatorType == "creator") { | } else { | function doExport() { Zotero.setCharacterSet("utf-8"); var modsCollection = <modsCollection xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-2.xsd" />; var item; while(item = Zotero.nextIt... |
mods.name += <name type="personal"> <namePart type="family">{item.creators[j].lastName}</namePart> <namePart type="given">{item.creators[j].firstName}</namePart> <role><roleTerm type="code" authority="marcrelator">{roleTerm}</roleTerm></role> </name>; | if(item.creators[j].fieldMode == 1) { mods.name += <name type="personal"> <namePart>{item.creators[j].lastName}</namePart> <role><roleTerm type="code" authority="marcrelator">{roleTerm}</roleTerm></role> </name>; } else { mods.name += <name type="personal"> <namePart type="family">{item.creators[j].lastName}</namePart>... | function doExport() { Zotero.setCharacterSet("utf-8"); var modsCollection = <modsCollection xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-2.xsd" />; var item; while(item = Zotero.nextIt... |
$('success_count').update(num_success); $('fail_count').update(num_fail); | $('success_count').innerHTML = num_success; $('fail_count').innerHTML = num_fail; | function doGradeTest(url, failed_tests, passed_tests, pass) { var failed = $(failed_tests); var passed = $(passed_tests); var selection = pass ? failed.options[failed.selectedIndex] : passed.options[passed.selectedIndex]; var value = selection.innerHTML; var num_success = parseInt($('success_count').innerHTML); var num... |
"web site":"webpage" "yearbook":"book", | "web site":"webpage", "yearbook":"book" | function doImport() { var marcGenres = {// "abstract or summary":XXX,// "abstract":XXX,// "summary":XXX, "art reproduction":"artwork", "article":"journalArticle", "autobiography":"book", "bibliography":"book", "biography":"book", "book":"book",// "calendar":XXX,// "catalog":XXX, "chart":"artwork", "comic o... |
newItem.title = titleInfo.*.text(); } | newItem.title = titleInfo.*.text(); } } | function doImport() { var marcGenres = {// "abstract or summary":XXX,// "abstract":XXX,// "summary":XXX, "art reproduction":"artwork", "article":"journalArticle", "autobiography":"book", "bibliography":"book", "biography":"book", "book":"book",// "calendar":XXX,// "catalog":XXX, "chart":"artwork", "comic o... |
if(!newItem.itemType) { for each(var form in mods.m::physicalDescription.m::form) { if(form.@authority == "marcform" || form.@authority == "marc") { if(form.text().toString() == "electronic") { newItem.itemType = "webpage"; break; } } } if(!newItem.itemType) newItem.itemType = "document"; } | if(!newItem.itemType) newItem.itemType = "document"; | function doImport() { var marcGenres = {// "abstract or summary":XXX,// "abstract":XXX,// "summary":XXX, "art reproduction":"artwork", "article":"journalArticle", "autobiography":"book", "bibliography":"book", "biography":"book", "book":"book",// "calendar":XXX,// "catalog":XXX, "chart":"artwork", "comic o... |
if(!newItem.itemType) newItem.itemType = "book"; | if(!newItem.itemType) newItem.itemType = "document"; | function doImport() { var marcGenres = { "book":"book", "periodical":"journalArticle", "newspaper":"newspaperArticle", "theses":"thesis", "letter":"letter", "motion picture":"film", "art original":"artwork", "web site":"webpage" }; // parse with E4X var m = new Namespace("http://www.loc.gov/mods/v3"); // why d... |
Zotero.debug([i+" = "+nodes[i].toString() for(i in nodes)]); | function doImport() { // collapse list of BIBO-only types var collapsedTypes = {}; for(var unprefixedBiboType in BIBO_TYPES) { var biboType = n.bibo+unprefixedBiboType; var type = new Type(BIBO_TYPES[unprefixedBiboType], [[[RDF_TYPE, n.bibo+biboType]], null, null]); if(!collapsedTypes[biboType]) { collapsedTypes[b... | |
Zotero.debug(propertyMappings); | function doImport() { // collapse list of BIBO-only types var collapsedTypes = {}; for(var unprefixedBiboType in BIBO_TYPES) { var biboType = n.bibo+unprefixedBiboType; var type = new Type(BIBO_TYPES[unprefixedBiboType], [[[RDF_TYPE, n.bibo+biboType]], null, null]); if(!collapsedTypes[biboType]) { collapsedTypes[b... | |
Zotero.debug(creators); | function doImport() { // collapse list of BIBO-only types var collapsedTypes = {}; for(var unprefixedBiboType in BIBO_TYPES) { var biboType = n.bibo+unprefixedBiboType; var type = new Type(BIBO_TYPES[unprefixedBiboType], [[[RDF_TYPE, n.bibo+biboType]], null, null]); if(!collapsedTypes[biboType]) { collapsedTypes[b... | |
Zotero.debug(newItem); | function doImport() { // collapse list of BIBO-only types var collapsedTypes = {}; for(var unprefixedBiboType in BIBO_TYPES) { var biboType = n.bibo+unprefixedBiboType; var type = new Type(BIBO_TYPES[unprefixedBiboType], [[[RDF_TYPE, n.bibo+biboType]], null, null]); if(!collapsedTypes[biboType]) { collapsedTypes[b... | |
for each(var relatedItem in mods.m::relatedItem) { if(relatedItem.@type == "host") { for each(var genre in relatedItem.m::genre) { if(genre.@authority == "marcgt" || genre.@authority == "marc") { newItem.itemType = marcGenres[genre.text().toString()]; break; | for each(var typeOfResource in mods.m::typeOfResource) { newItem.itemType = modsTypeOfResources[typeOfResource.text().toString()]; } if(!newItem.itemType) { for each(var relatedItem in mods.m::relatedItem) { if(relatedItem.@type == "host") { for each(var genre in relatedItem.m::genre) { if(genre.@authority == "marcgt"... | function doImport() { var marcGenres = {// "abstract or summary":XXX,// "abstract":XXX,// "summary":XXX, "art reproduction":"artwork", "article":"journalArticle", "autobiography":"book", "bibliography":"book", "biography":"book", "book":"book",// "calendar":XXX,// "catalog":XXX, "chart":"artwork", "comic o... |
creator.fieldMode = 1; | function doImport() { var marcGenres = {// "abstract or summary":XXX,// "abstract":XXX,// "summary":XXX, "art reproduction":"artwork", "article":"journalArticle", "autobiography":"book", "bibliography":"book", "biography":"book", "book":"book",// "calendar":XXX,// "catalog":XXX, "chart":"artwork", "comic o... | |
with (window) { eval(js); } | window.eval(js); | function doJavaScript(js) { if (js) if (window.execScript) window.execScript(js); else with (window) { eval(js); } _$_APP_CLASS_$_._p_.autoJavaScript();} |
with (window) { if (js) eval(js); _$_APP_CLASS_$_._p_.autoJavaScript(); } | if (js) if (window.execScript) window.execScript(js); else with (window) { eval(js); } _$_APP_CLASS_$_._p_.autoJavaScript(); | function doJavaScript(js) { with (window) { if (js) eval(js); _$_APP_CLASS_$_._p_.autoJavaScript(); }} |
calculateMeta(null, $(this)); | $.fn.doMeta = function(options) { // define defaults var defaults = {}; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind... | |
$('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); | if(typeof pageID == 'undefined' || pageID != 1) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } | $.fn.doMeta = function(options) { // define defaults var defaults = {}; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind... |
if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(func... | $.fn.doMeta = function(options) { // define defaults var defaults = {}; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // calculate m... | |
this.each(function(h){var k=d(this),l=k.html();k.empty().append(function(){return a.call(this,h,l)})}):this.empty().append(a);return this},replaceWith:function(a){return this[0]&&this[0].parentNode?this.each(function(){var b=this.nextSibling,e=this.parentNode;d(this).remove();b?d(b).before(a):d(e).append(a)}):this.push... | true)},domManip:function(a,b,e){function f(w){return c.nodeName(w,"table")?w.getElementsByTagName("tbody")[0]||w.appendChild(w.ownerDocument.createElement("tbody")):w}var h,k,l=a[0],q=[];if(c.isFunction(l))return this.each(function(w){var A=c(this);a[0]=l.call(this,w,b?A.html():v);return A.domManip(a,b,e)});if(this[0])... | this.each(function(h){var k=d(this),l=k.html();k.empty().append(function(){return a.call(this,h,l)})}):this.empty().append(a);return this},replaceWith:function(a){return this[0]&&this[0].parentNode?this.each(function(){var b=this.nextSibling,e=this.parentNode;d(this).remove();b?d(b).before(a):d(e).append(a)}):this.push... |
DONE:function(result) { if($type(result)) this.result = result; | DONE:function() { | DONE:function(result) { if($type(result)) this.result = result; this.next = 'done'; return this; }, |
DONE:function() { | DONE:function(result) { if($type(result)) this.result = result; | DONE:function() { this.next = 'done'; return this; }, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.