diff --git a/src/pages.js b/src/pages.js index ff211ab..0f4cf64 100644 --- a/src/pages.js +++ b/src/pages.js @@ -853,6 +853,17 @@ class Pages extends LitElement } formatResults() { + // Default behavior: Count all available pages + if (!this.query) { + const length = this.collInfo.pages.length; + if (length === this.sortedPages.length) { + return `${length} Page${length ? "s" : ""} Found`; + } else { + return `${this.sortedPages.length} of ${length} Pages Found`; + } + } + + // ... unless they were filtered if (this.sortedPages.length === 1) { return "1 Page Found"; } else {