diff --git a/chrome/content/zotero/bindings/relatedbox.xml b/chrome/content/zotero/bindings/relatedbox.xml index d8d5d6a935..eb1d2e0ba8 100644 --- a/chrome/content/zotero/bindings/relatedbox.xml +++ b/chrome/content/zotero/bindings/relatedbox.xml @@ -58,7 +58,29 @@ for(var i = 0; i < seealso.length; i++) { var icon= document.createElement("image"); - icon.setAttribute('src','chrome://zotero/skin/treeitem-'+Zotero.ItemTypes.getName(seealso[i].getType())+'.png'); + var type = Zotero.ItemTypes.getName(seealso[i].getType()); + if (type=='attachment') + { + switch (seealso[i].getAttachmentLinkMode()) + { + case Zotero.Attachments.LINK_MODE_LINKED_URL: + type += '-web-link'; + break; + + case Zotero.Attachments.LINK_MODE_IMPORTED_URL: + type += '-snapshot'; + break; + + case Zotero.Attachments.LINK_MODE_LINKED_FILE: + type += '-link'; + break; + + case Zotero.Attachments.LINK_MODE_IMPORTED_FILE: + type += '-file'; + break; + } + } + icon.setAttribute('src','chrome://zotero/skin/treeitem-' + type + '.png'); var label = document.createElement("label"); label.setAttribute('value', seealso[i].getField('title')); diff --git a/chrome/skin/default/zotero/item-attachments-add.png b/chrome/skin/default/zotero/item-attachments-add.png deleted file mode 100755 index aa23dde374..0000000000 Binary files a/chrome/skin/default/zotero/item-attachments-add.png and /dev/null differ diff --git a/chrome/skin/default/zotero/treeitem-attachment.png b/chrome/skin/default/zotero/treeitem-attachment.png deleted file mode 100755 index 99d532e8b1..0000000000 Binary files a/chrome/skin/default/zotero/treeitem-attachment.png and /dev/null differ