Update item.js regarding display of case law title
from https://github.com/zotero/zotero/pull/467
This commit is contained in:
parent
60e5ab8124
commit
3ac6d4d0a0
1 changed files with 11 additions and 1 deletions
|
@ -949,7 +949,12 @@ Zotero.Item.prototype.getDisplayTitle = function (includeAuthorAndDate) {
|
|||
if (title) { // common law cases always have case names
|
||||
var reporter = this.getField('reporter');
|
||||
if (reporter) {
|
||||
title = Zotero.localeJoin([title, '(' + reporter + ')']);
|
||||
title = title + ' (' + reporter + ')';
|
||||
} else {
|
||||
var court = this.getField('court');
|
||||
if (court) {
|
||||
title = title + ' (' + court + ');
|
||||
}
|
||||
}
|
||||
}
|
||||
else { // civil law cases have only shortTitle as case name
|
||||
|
@ -966,6 +971,11 @@ Zotero.Item.prototype.getDisplayTitle = function (includeAuthorAndDate) {
|
|||
strParts.push(part);
|
||||
}
|
||||
|
||||
part = this.getField('shortTitle');
|
||||
if (part) {
|
||||
strParts.push(part);
|
||||
}
|
||||
|
||||
var creators = this.getCreators();
|
||||
if (creators.length && creators[0].creatorTypeID === 1) {
|
||||
strParts.push(creators[0].ref.lastName);
|
||||
|
|
Loading…
Reference in a new issue