Display implicit title for related items when they're letters or interviews

This commit is contained in:
Dan Stillman 2009-12-27 11:42:49 +00:00
parent f4544bd386
commit 3a2d9a50f8

View file

@ -78,7 +78,7 @@
if (related) {
related = Zotero.Items.get(related);
for(var i = 0; i < related.length; i++) {
r = r + related[i].getField('title') + ", ";
r = r + related[i].getDisplayTitle() + ", ";
}
r = r.substr(0,r.length-2);
}
@ -129,7 +129,7 @@
icon.setAttribute('src','chrome://zotero/skin/treeitem-' + type + '.png');
var label = document.createElement("label");
label.setAttribute('value', related[i].getField('title', false, true));
label.setAttribute('value', related[i].getDisplayTitle());
label.setAttribute('crop','end');
label.setAttribute('flex','1');