diff --git a/chrome/content/zotero/collectionViewItemTree.jsx b/chrome/content/zotero/collectionViewItemTree.jsx index 1415859e66..b7432fe5cf 100644 --- a/chrome/content/zotero/collectionViewItemTree.jsx +++ b/chrome/content/zotero/collectionViewItemTree.jsx @@ -206,8 +206,13 @@ class CollectionViewItemTreeRowProvider extends ItemTreeRowProvider { ); let libraries = status.libraries .filter(lib => !libraryIDs.size || libraryIDs.has(lib.libraryID)); - let indexed = libraries.reduce((sum, lib) => sum + lib.indexed, 0); - let total = libraries.reduce((sum, lib) => sum + lib.eligible, 0); + // Coverage is coverage: attachment fulltext is reported separately + // in the preferences, but an incomplete index is incomplete + // whichever part of it is still filling in + let indexed = libraries.reduce( + (sum, lib) => sum + lib.indexed + lib.indexedAttachments, 0); + let total = libraries.reduce( + (sum, lib) => sum + lib.eligible + lib.eligibleAttachments, 0); if (indexed >= total) { return null; } diff --git a/chrome/content/zotero/customElements.js b/chrome/content/zotero/customElements.js index 59b5b319bc..03f2108a53 100644 --- a/chrome/content/zotero/customElements.js +++ b/chrome/content/zotero/customElements.js @@ -74,6 +74,8 @@ Services.scriptloader.loadSubScript('chrome://zotero/content/elements/itemTreeMe ['attachment-row', 'chrome://zotero/content/elements/attachmentRow.js'], ['attachment-annotations-box', 'chrome://zotero/content/elements/attachmentAnnotationsBox.js'], ['annotation-row', 'chrome://zotero/content/elements/annotationRow.js'], + ['search-results-box', 'chrome://zotero/content/elements/searchResultsBox.js'], + ['search-result-row', 'chrome://zotero/content/elements/searchResultRow.js'], ['annotation-items-pane', 'chrome://zotero/content/elements/annotationItemsPane.js'], ['context-notes-list', 'chrome://zotero/content/elements/contextNotesList.js'], ['note-row', 'chrome://zotero/content/elements/noteRow.js'], diff --git a/chrome/content/zotero/elements/itemDetails.js b/chrome/content/zotero/elements/itemDetails.js index 2e9a705f0a..4fbcd62137 100644 --- a/chrome/content/zotero/elements/itemDetails.js +++ b/chrome/content/zotero/elements/itemDetails.js @@ -55,6 +55,8 @@ + +