Zotero.Item.isImportedAttachment()

This commit is contained in:
Dan Stillman 2009-08-19 13:04:32 +00:00
parent 94f53f70f9
commit 5d78e25bbb

View file

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