zotero/zotero — pull request #97 by fbennett (2012-04-16 02:46:34+00:00)
Title: Show number of related items on Related tab

The commit for related items in this pull request adds a count of the number of related items to the Related tab, as [suggested by Gracile](http://forums.zotero.org/discussion/14153/related-tab-advanced-search-functionality/#Comment_91772) on the Zotero forums.

Not sure what you'll think of the code. It doctors the raw string of the tab label, which isn't very elegant, but so long as the localized string does not end in a parens-enclosed number, it should do the right thing. The update is handled by a function attached to the related items box from the tab container. I looked at doing it with a registered observer, but this was simpler to set up, and seems to work fine.

(I'm not sure why the citeproc-js upgrade has come through as a commit in this request, but it's not relevant to the issue. I guess it will be passed over in a merge if this is picked up.)