Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/search cadastral parcel section #379

Merged
merged 2 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading