www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ad31324b2ce727f153d6de3894afeda37554f68d
parent 4bfbaf5747409e6d2dd1108570962f896a015d57
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 22 Feb 2011 00:39:52 +0000

use http://www.zotero.org/* URIs for BIBO UserItems


Diffstat:
Mchrome/content/zotero/xpcom/translation/item_local.js | 6++++++
Mtranslators/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 @@ -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 @@ -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;