Opened 10 years ago

Closed 10 years ago

#446 closed enhancement (fixed)

either add icons for new item types or implement a function to get the image src for a given item type

Reported by: simon Owned by: dstillman
Priority: major Milestone: 1.0 Beta 3
Component: interface Version: 1.0
Keywords: Cc:

Description

there are many places in the interface that need to be able to display an icon for patents, etc., which don't yet have real icons. right now, everything is implemented using "chrome://zotero/skin/treeitem-"+itemType+".png", which won't display anything for these types. either the enormous switch statement in itemTreeView.js needs to be moved to zotero.js or data_access.js, or we need actual files so that we can continue to use the old approach.

Change History (1)

comment:1 Changed 10 years ago by dstillman

  • Resolution set to fixed
  • Status changed from new to closed

(In [961]) Closes #446, either add icons for new item types or implement a function to get the image src for a given item type

Adds Item.getImageSrc() and ItemTypes.getImageSrc(string itemType)

Note: See TracTickets for help on using tickets.