Use item display title for PDF reader tabs

This commit is contained in:
Martynas Bagdonas 2021-05-25 19:48:35 +03:00
parent bb40928720
commit cf344335ed

View file

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