mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
Scaffold: Add tags to item preview
This commit is contained in:
parent
173660d5c7
commit
b067e0d940
2 changed files with 5 additions and 3 deletions
|
|
@ -33,6 +33,7 @@
|
|||
<abstract-box/>
|
||||
<html:div class="attachments-preview"/>
|
||||
<html:div class="notes-preview"/>
|
||||
<tags-box/>
|
||||
`);
|
||||
|
||||
_jsonItem = null;
|
||||
|
|
@ -68,10 +69,11 @@
|
|||
if (!this.initialized) return;
|
||||
|
||||
let zoteroItem = new Zotero.Item();
|
||||
zoteroItem.libraryID = Zotero.Libraries.userLibraryID;
|
||||
zoteroItem.fromJSON(this._jsonItem);
|
||||
|
||||
let [diffBox, infoBox, abstractBox, attachmentsPreview, notesPreview] = this.children;
|
||||
for (let box of [infoBox, abstractBox]) {
|
||||
let [diffBox, infoBox, abstractBox, attachmentsPreview, notesPreview, tagsBox] = this.children;
|
||||
for (let box of [infoBox, abstractBox, tagsBox]) {
|
||||
box.mode = 'view';
|
||||
box.editable = false;
|
||||
box.item = zoteroItem;
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ scaffold-item-preview {
|
|||
}
|
||||
}
|
||||
|
||||
info-box, abstract-box {
|
||||
info-box, abstract-box, tags-box {
|
||||
collapsible-section > .head {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue