fix isCollection func

This commit is contained in:
ytshen 2024-07-25 16:52:52 +08:00
parent 5d4dde170a
commit 2a9125aa99
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ function onLoad() {
for (const lib of Zotero.Libraries.getAll()) { for (const lib of Zotero.Libraries.getAll()) {
needFetchItems = needFetchItems.concat( needFetchItems = needFetchItems.concat(
(await Zotero.Items.getAll(lib.id)).filter((item: Zotero.Item) => { (await Zotero.Items.getAll(lib.id)).filter((item: Zotero.Item) => {
return item.isRegularItem() && !item.isCollection(); return item.isRegularItem();
}), }),
); );
} }

View File

@ -13,7 +13,7 @@ export class TLDRFetcher {
constructor(item: Zotero.Item) { constructor(item: Zotero.Item) {
this.zoteroItem = item; this.zoteroItem = item;
if (item.isRegularItem() && !item.isCollection()) { if (item.isRegularItem()) {
this.title = item.getField("title") as string; this.title = item.getField("title") as string;
this.abstract = item.getField("abstractNote") as string; this.abstract = item.getField("abstractNote") as string;
} }