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 @@
-->
+
`, ['chrome://zotero/locale/zotero.dtd']);
}
@@ -388,6 +389,12 @@
this._item = val;
this._id('related').item = this._item;
this._id('tags').item = this._item;
+ if (this._item.parentItem) {
+ this._id('libraries-collections').hidden = true;
+ }
+ else {
+ this._id('libraries-collections').item = this._item;
+ }
this.refresh();
}