From ac36b6d3615c47f688073b2a9a37efc90e91ee64 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Mon, 29 Sep 2025 11:44:18 -0700 Subject: [PATCH] Display libraries and collections box for standalone notes and attachments (#5554) Display Libraries and Collections box in the itemPane for standalone notes and attachments. Fixes: #5553 --- chrome/content/zotero/elements/librariesCollectionsBox.js | 5 ++++- chrome/content/zotero/elements/noteEditor.js | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/librariesCollectionsBox.js b/chrome/content/zotero/elements/librariesCollectionsBox.js index f2097996b1..5e0d3b35d2 100644 --- a/chrome/content/zotero/elements/librariesCollectionsBox.js +++ b/chrome/content/zotero/elements/librariesCollectionsBox.js @@ -46,7 +46,10 @@ import { getCSSIcon } from 'components/icons'; } set item(item) { - if (item?.isRegularItem() && !item?.isFeedItem) { + let isRegularItem = item?.isRegularItem() && !item?.isFeedItem; + let isStandaloneAttachment = item?.isAttachment() && !item.parentItemID; + let isStandaloneNote = item?.isNote() && !item.parentItemID; + if (isRegularItem || isStandaloneAttachment || isStandaloneNote) { this.hidden = false; } else { diff --git a/chrome/content/zotero/elements/noteEditor.js b/chrome/content/zotero/elements/noteEditor.js index 38d50cf4da..59b56ebde8 100644 --- a/chrome/content/zotero/elements/noteEditor.js +++ b/chrome/content/zotero/elements/noteEditor.js @@ -361,6 +361,7 @@