Ticket #1711: display_civil_case_info.patch
| File display_civil_case_info.patch, 1.3 KB (added by fbennett, 6 years ago) |
|---|
-
chrome/content/zotero/xpcom/data/item.js
old new 793 793 return true; 794 794 } 795 795 796 797 796 /* 798 797 * Get the title for an item for display in the interface 799 798 * … … 875 874 title += Zotero.localeJoin(strParts, '; '); 876 875 title += ']'; 877 876 } 878 else if (itemTypeID == 17 && title) { // 'case' itemTypeID 877 else if (itemTypeID == 17) { // 'case' itemTypeID 878 if (title) { // common law cases always have case names 879 879 var reporter = this.getField('reporter'); 880 880 if (reporter) { 881 881 title = Zotero.localeJoin([title, '(' + reporter + ')']); 882 882 } 883 } else { // civil law cases have only shortTitle as case name 884 var strParts = []; 885 var caseinfo = ""; 886 887 var part = this.getField('court'); 888 if (part) { 889 strParts.push(part); 890 } 891 892 part = Zotero.Date.multipartToSQL(this.getField('date', true, true)); 893 if (part) { 894 strParts.push(part); 895 } 896 897 var creators = this.getCreators(); 898 if (creators.length && creators[0].creatorTypeID === 1) { 899 strParts.push(creators[0].ref.lastName); 900 } 901 902 title = '['; 903 title += Zotero.localeJoin(strParts, ', '); 904 title += ']'; 905 } 883 906 } 884 907 885 908 return title;