www

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

commit 73b0bc67c569cb1b3a45dfa76171e1d5d5ba95b5
parent 828a2917c41189268d9c88617b825fa5371bb7c6
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 22 Jul 2013 20:29:32 -0400

Add Zotero.Item.libraryKey, to return libraryID and key ("0/ABCD2345")

Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -132,6 +132,7 @@ Zotero.Item.prototype.__defineSetter__('relatedItems', function (arr) { this._se Zotero.Item.prototype.__defineGetter__('relatedItemsReverse', function () { var ids = this._getRelatedItemsReverse(); return ids; }); Zotero.Item.prototype.__defineGetter__('relatedItemsBidirectional', function () { var ids = this._getRelatedItemsBidirectional(); return ids; }); +Zotero.Item.prototype.__defineGetter__('libraryKey', function () this.libraryIDInt + "/" + this.key); Zotero.Item.prototype.getID = function() { Zotero.debug('Item.getID() is deprecated -- use Item.id');