From c0ed14308f4d83d0274b65a33a820c5c21be8539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Prunayre?= Date: Fri, 20 Sep 2024 15:52:15 +0200 Subject: [PATCH 1/2] Aggregations / Temporal range / Avoid browser autocomplete on calendar field When using temporal range for aggregations ``` resourceTemporalDateRange: { gnBuildFilterForRange: { field: "resourceTemporalDateRange", buckets: 2024 - 1970, dateFormat: "YYYY", dateSelectMode: "years", vegaDateFormat: "%Y", from: 1970, to: 2024, mark: "area" }, meta: { vega: "timeline", collapsed: true } }, ``` browser autocomplete may overlap with calendar --- .../elasticsearch/directives/partials/facet-temporalrange.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web-ui/src/main/resources/catalog/components/elasticsearch/directives/partials/facet-temporalrange.html b/web-ui/src/main/resources/catalog/components/elasticsearch/directives/partials/facet-temporalrange.html index 8029f53fbf8..0bcc837be43 100644 --- a/web-ui/src/main/resources/catalog/components/elasticsearch/directives/partials/facet-temporalrange.html +++ b/web-ui/src/main/resources/catalog/components/elasticsearch/directives/partials/facet-temporalrange.html @@ -12,6 +12,7 @@ class="input-sm form-control" data-ng-model="range.from" data-ng-model-options="{debounce: 500}" + autocomplete="off" name="start" /> @@ -22,6 +23,7 @@ class="input-sm form-control" data-ng-model="range.to" data-ng-model-options="{debounce: 500}" + autocomplete="off" name="end" /> From 4aa7482b4f9f615feb4ce187068f0c0659790e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20Gabri=C3=ABl?= Date: Mon, 23 Sep 2024 16:11:55 +0200 Subject: [PATCH 2/2] Update configuring-faceted-search.md --- .../docs/customizing-application/configuring-faceted-search.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/manual/docs/customizing-application/configuring-faceted-search.md b/docs/manual/docs/customizing-application/configuring-faceted-search.md index 7af888bdc0f..292739175bc 100644 --- a/docs/manual/docs/customizing-application/configuring-faceted-search.md +++ b/docs/manual/docs/customizing-application/configuring-faceted-search.md @@ -467,7 +467,7 @@ A date range field: "resourceTemporalDateRange": { "gnBuildFilterForRange": { "field": "resourceTemporalDateRange", - "buckets": "2021 - 1970", + "buckets": 51, //"2021 - 1970", "dateFormat": "YYYY", "vegaDateFormat": "%Y", "from": "1970",