diff --git a/chrome/content/zotero/collectionViewItemTree.jsx b/chrome/content/zotero/collectionViewItemTree.jsx index a6095e7ea5..56aaf429f4 100644 --- a/chrome/content/zotero/collectionViewItemTree.jsx +++ b/chrome/content/zotero/collectionViewItemTree.jsx @@ -387,6 +387,16 @@ class CollectionViewItemTreeRowProvider extends ItemTreeRowProvider { return kept; } + /** + * The session holding the passages of the active best-match search, or + * null when no such search is running + * + * @return {Zotero.BestMatch.Session|null} + */ + get bestMatchSession() { + return this._bestMatchSession ?? null; + } + /** * Called for every pending search-match row the tree draws: rendering * is the demand signal for deriving previews. Reports are collected diff --git a/chrome/content/zotero/customElements.js b/chrome/content/zotero/customElements.js index 59b5b319bc..04cb9b3ef4 100644 --- a/chrome/content/zotero/customElements.js +++ b/chrome/content/zotero/customElements.js @@ -74,6 +74,9 @@ 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'], + ['search-results-pane', 'chrome://zotero/content/elements/searchResultsPane.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 9a1c49d455..67f9a8784d 100644 --- a/chrome/content/zotero/elements/itemDetails.js +++ b/chrome/content/zotero/elements/itemDetails.js @@ -56,6 +56,8 @@ +