diff --git a/src/collection-browser.ts b/src/collection-browser.ts index 8e19d843e..72bf4a135 100644 --- a/src/collection-browser.ts +++ b/src/collection-browser.ts @@ -1300,6 +1300,10 @@ export class CollectionBrowser ); } + private emitEmptyResults() { + this.dispatchEvent(new Event('emptyResults')); + } + private disconnectResizeObserver( resizeObserver: SharedResizeObserverInterface ) { @@ -1980,6 +1984,11 @@ export class CollectionBrowser this.totalResults = success.response.totalResults - this.tileModelOffset; + // display event to offshoot when result count is zero. + if (this.totalResults === 0) { + this.emitEmptyResults(); + } + if (this.withinCollection) { this.collectionInfo = success.response.collectionExtraInfo;