use http://www.zotero.org/* URIs for BIBO UserItems
This commit is contained in:
parent
4bfbaf5747
commit
ad31324b2c
2 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue