@internetarchive/collection-browser 4.5.0 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "The Internet Archive Collection Browser.",
4
4
  "license": "AGPL-3.0-only",
5
5
  "author": "Internet Archive",
6
- "version": "4.5.0",
6
+ "version": "4.5.1",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
9
9
  "scripts": {
@@ -1684,21 +1684,10 @@ export class CollectionBrowser
1684
1684
  this.analyticsHandler?.sendEvent({
1685
1685
  category: this.searchContext,
1686
1686
  action: analyticsActions.histogramChanged,
1687
- label: this.dateRangeQueryClause,
1687
+ label: this.dataSource.dateRangeQueryClause,
1688
1688
  });
1689
1689
  }
1690
1690
 
1691
- /**
1692
- * The Lucene query corresponding to the current date range.
1693
- */
1694
- private get dateRangeQueryClause() {
1695
- if (!this.minSelectedDate || !this.maxSelectedDate) {
1696
- return undefined;
1697
- }
1698
-
1699
- return `year:[${this.minSelectedDate} TO ${this.maxSelectedDate}]`;
1700
- }
1701
-
1702
1691
  /**
1703
1692
  * Emits an event indicating a change in whether the manage mode is shown.
1704
1693
  */