From ad31324b2ce727f153d6de3894afeda37554f68d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 22 Feb 2011 00:39:52 +0000 Subject: [PATCH] use http://www.zotero.org/* URIs for BIBO UserItems --- chrome/content/zotero/xpcom/translation/item_local.js | 6 ++++++ translators/Bibliontology RDF.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/item_local.js b/chrome/content/zotero/xpcom/translation/item_local.js index aad1424510..16a3fe5391 100644 --- a/chrome/content/zotero/xpcom/translation/item_local.js +++ b/chrome/content/zotero/xpcom/translation/item_local.js @@ -707,9 +707,15 @@ Zotero.Translate.ItemGetter.prototype = { } } + // add URI + returnItemArray.uri = Zotero.URI.getItemURI(returnItem); + return returnItemArray; }, + /** + * Retrieves the next available item + */ "nextItem":function() { while(this._itemsLeft.length != 0) { var returnItem = this._itemsLeft.shift(); diff --git a/translators/Bibliontology RDF.js b/translators/Bibliontology RDF.js index 50768ea238..9a5700d50e 100644 --- a/translators/Bibliontology RDF.js +++ b/translators/Bibliontology RDF.js @@ -482,7 +482,7 @@ Type.prototype.addNodeRelations = function(nodes) { */ Type.prototype.createNodes = function(item) { var nodes = {}; - nodes[USERITEM] = "#item_"+item.itemID; + nodes[USERITEM] = (item.uri ? item.uri : "#item_"+item.itemID); // come up with an item node URI nodes[ITEM] = null;