Add Zotero.Item.prototype.parentItem getter
This commit is contained in:
parent
38330e4c13
commit
46eb84e859
1 changed files with 3 additions and 0 deletions
|
@ -145,6 +145,9 @@ Zotero.defineProperty(Zotero.Item.prototype, 'parentItemKey', {
|
|||
get: function() { return this.parentKey; },
|
||||
set: function(val) { return this.parentKey = val; }
|
||||
});
|
||||
Zotero.defineProperty(Zotero.Item.prototype, 'parentItem', {
|
||||
get: function() { return Zotero.Items.get(this.parentID) || undefined; },
|
||||
});
|
||||
|
||||
|
||||
Zotero.defineProperty(Zotero.Item.prototype, 'firstCreator', {
|
||||
|
|
Loading…
Reference in a new issue