Use item display title for PDF reader tabs
This commit is contained in:
parent
bb40928720
commit
cf344335ed
1 changed files with 2 additions and 2 deletions
|
@ -89,12 +89,12 @@ class ReaderInstance {
|
|||
|
||||
updateTitle() {
|
||||
let item = Zotero.Items.get(this._itemID);
|
||||
let title = item.getField('title');
|
||||
let title = item.getDisplayTitle();
|
||||
let parentItemID = item.parentItemID;
|
||||
if (parentItemID) {
|
||||
let parentItem = Zotero.Items.get(parentItemID);
|
||||
if (parentItem) {
|
||||
title = parentItem.getField('title');
|
||||
title = parentItem.getDisplayTitle();
|
||||
}
|
||||
}
|
||||
this._setTitleValue(title);
|
||||
|
|
Loading…
Reference in a new issue