Zotero.Item.isImportedAttachment()
This commit is contained in:
parent
94f53f70f9
commit
5d78e25bbb
1 changed files with 12 additions and 0 deletions
|
@ -2397,6 +2397,18 @@ Zotero.Item.prototype.isWebAttachment = function() {
|
|||
}
|
||||
|
||||
|
||||
Zotero.Item.prototype.isImportedAttachment = function() {
|
||||
if (!this.isAttachment()) {
|
||||
return false;
|
||||
}
|
||||
var linkMode = this.attachmentLinkMode;
|
||||
if (linkMode == Zotero.Attachments.LINK_MODE_IMPORTED_FILE || linkMode == Zotero.Attachments.LINK_MODE_IMPORTED_URL) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns number of child attachments of item
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue