Closes #1687, Append reporter name to title in UI for law cases

Slightly modified verison of Frank's patch
This commit is contained in:
Dan Stillman 2010-06-30 06:10:15 +00:00
parent 5649e26ec2
commit 953fa4a660

View file

@ -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;
}