- Case title displayed below creator in metadata pane
- Case titles were blank in related items pane
This commit is contained in:
parent
8a2505a489
commit
b336674100
2 changed files with 3 additions and 2 deletions
|
@ -508,7 +508,8 @@
|
|||
|
||||
// Place, in order of preference, after title, after type,
|
||||
// or at beginning
|
||||
var field = this._dynamicFields.getElementsByAttribute('fieldname', 'title').item(0);
|
||||
var titleFieldID = Zotero.ItemFields.getFieldIDFromTypeAndBase(this.item.itemTypeID, 'title');
|
||||
var field = this._dynamicFields.getElementsByAttribute('fieldname', Zotero.ItemFields.getName(titleFieldID)).item(0);
|
||||
if (!field) {
|
||||
var field = this._dynamicFields.getElementsByAttribute('fieldname', 'itemType').item(0);
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@
|
|||
icon.setAttribute('src','chrome://zotero/skin/treeitem-' + type + '.png');
|
||||
|
||||
var label = document.createElement("label");
|
||||
label.setAttribute('value', related[i].getField('title'));
|
||||
label.setAttribute('value', related[i].getField('title', false, true));
|
||||
label.setAttribute('crop','end');
|
||||
label.setAttribute('flex','1');
|
||||
|
||||
|
|
Loading…
Reference in a new issue