Skip to content

Commit

Permalink
Merge pull request #379 from IGNF/fix/search-cadastral-parcel-section
Browse files Browse the repository at this point in the history
Fix/search cadastral parcel section
  • Loading branch information
elias75015 authored May 29, 2024
2 parents 01ba4d2 + 44da8e7 commit 0208f20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Common/Utils/SearchEngineUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/Leaflet/Controls/SearchEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/OpenLayers/Controls/SearchEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 0208f20

Please sign in to comment.