From c88357aefd41528330c31b4793a1c46a724fb8d8 Mon Sep 17 00:00:00 2001 From: elias couppe Date: Tue, 28 May 2024 16:22:05 +0200 Subject: [PATCH 1/2] fix(Controls): filtre section toujours en majuscule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le service est case Sensitive, on passe le paramètre section entré côté client en majuscules --- src/Leaflet/Controls/SearchEngine.js | 4 ++++ src/OpenLayers/Controls/SearchEngine.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/Leaflet/Controls/SearchEngine.js b/src/Leaflet/Controls/SearchEngine.js index 8686314d..70d669f6 100644 --- a/src/Leaflet/Controls/SearchEngine.js +++ b/src/Leaflet/Controls/SearchEngine.js @@ -1237,6 +1237,10 @@ var SearchEngine = L.Control.extend(/** @lends L.geoportalControl.SearchEngine.p for (var i = 0; i < data.length; i++) { var filter = data[i]; if (filter.value) { + // On passe la section en majuscule car le service est caseSensitive + if (filter.key === "section") { + filter.value = filter.value.toUpperCase(); + } _filterOptions[filter.key] = filter.value; } } diff --git a/src/OpenLayers/Controls/SearchEngine.js b/src/OpenLayers/Controls/SearchEngine.js index 89ddbb0b..696c099c 100644 --- a/src/OpenLayers/Controls/SearchEngine.js +++ b/src/OpenLayers/Controls/SearchEngine.js @@ -1463,6 +1463,9 @@ var SearchEngine = (function (Control) { for (var i = 0; i < data.length; i++) { var filter = data[i]; if (filter.value) { + if (filter.key === "section") { + filter.value = filter.value.toUpperCase(); + } _filterOptions[filter.key] = filter.value; } } From 44da8e717ace958ecce912dd79d777b2b9e78dd0 Mon Sep 17 00:00:00 2001 From: elias couppe Date: Tue, 28 May 2024 19:00:52 +0200 Subject: [PATCH 2/2] fix(common:Search): retrait du champ "nom commune" du cadastralParcel Le champ n'est plus requetable avec le nouveau service (voir https://geoservices.ign.fr/documentation/services/services-geoplateforme/geocodage#70974) --- src/Common/Utils/SearchEngineUtils.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Common/Utils/SearchEngineUtils.js b/src/Common/Utils/SearchEngineUtils.js index 7c250831..adcd13d8 100644 --- a/src/Common/Utils/SearchEngineUtils.js +++ b/src/Common/Utils/SearchEngineUtils.js @@ -67,10 +67,6 @@ var SearchEngineUtils = { name : "municipalitycode", title : "Code commune (INSEE)", description : "Code INSEE de la commune : 3 chiffres (ex: 067)" - }, { - name : "city", - title : "Nom commune", - description : "Nom de la commune" }, { name : "oldmunicipalitycode", title : "Commune absorbée",