diff --git a/chrome/content/zotero/xpcom/rdf.js b/chrome/content/zotero/xpcom/rdf.js index dceef34ff..e68120ce5 100644 --- a/chrome/content/zotero/xpcom/rdf.js +++ b/chrome/content/zotero/xpcom/rdf.js @@ -1,6 +1,7 @@ // Tweaks to get the Tabulator RDF library to work without Tabulator. All of this happens in the // Zotero.RDF.AJAW namespace. -var kb = new RDFIndexedFormula(); -var tabulator = {log:{debug:function(arg) { - Zotero.debug(arg, 4); -}}}; +$rdf.RDFIndexedFormula = $rdf.IndexedFormula; +$rdf.RDFSymbol = $rdf.Symbol; +$rdf.RDFBlankNode = $rdf.BlankNode; + +Zotero.RDF.AJAW = $rdf; \ No newline at end of file diff --git a/chrome/content/zotero/xpcom/rdf/init.js b/chrome/content/zotero/xpcom/rdf/init.js new file mode 100644 index 000000000..81941997b --- /dev/null +++ b/chrome/content/zotero/xpcom/rdf/init.js @@ -0,0 +1,32 @@ +/* Set up the environment before loading the rest of the files into Zotero */ +var $rdf = { + Util: { + ArrayIndexOf: function (arr, item, i) { + //supported in all browsers except IE<9 + return arr.indexOf(item, i); + }, + RDFArrayRemove: function(a, x) { //removes all statements equal to x from a + for(var i=0; i