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", 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; } }