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

This commit is contained in:
Simon Kornblith 2011-02-22 00:39:52 +00:00
parent 4bfbaf5747
commit ad31324b2c
2 changed files with 7 additions and 1 deletions

View file

@ -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();

View file

@ -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;