commit 953fa4a660c9dfef62c3c775614cb14fe291a978 parent 5649e26ec2a466499676efd98a2b772f13d3240b Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 30 Jun 2010 06:10:15 +0000 Closes #1687, Append reporter name to title in UI for law cases Slightly modified verison of Frank's patch Diffstat:
| M | chrome/content/zotero/xpcom/data/item.js | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -875,6 +875,12 @@ Zotero.Item.prototype.getDisplayTitle = function (includeAuthorAndDate) { title += Zotero.localeJoin(strParts, '; '); title += ']'; } + else if (itemTypeID == 17 && title) { // 'case' itemTypeID + var reporter = this.getField('reporter'); + if (reporter) { + title = Zotero.localeJoin([title, '(' + reporter + ')']); + } + } return title; }