Closed MaelREBOUX closed 2 years ago
I don't know where to make this concatenation. Javascript too complicated for me
can confirm that it also affects us on http://cadastre.craig.fr, look for Nonette-Orsonnette (630255)
-> there's a list of sections with missing ccopre
prefixes.
I don't know where to make this concatenation
@MaelREBOUX @landryb
I think concat ccopre + ccosec
missing here :
Well, we have to fix 3 things :
in my testing 98960f6 wasn't enough and generated ms2 crashes about ReferenceError: ccopre is not defined
.
for value in the section column in the result panel i've tried the following without success:
--- a/js/extension/components/table/PlotsSelectionTable.jsx
+++ b/js/extension/components/table/PlotsSelectionTable.jsx
@@ -10,7 +10,7 @@ const columns = [{
name: "cadastrapp.parcelle.result.commune",
resizable: true
}, {
- key: "ccosec",
+ key: "ccopre + ccosec",
width: 80,
sortable: true,
name: "cadastrapp.parcelle.result.ccosec",
i guess we need another variable inside 'data' struct with ccopre+ccosec
concatenated, or display another column with ccopre
alone.
displaying a distinct column for ccopre
works but is ugly.
We have tested this functionnality just right now on portail-test and it doesn't work . Our versions are :
@catmorales please test with #174 that should fix it.
Tested just now with https://github.com/landryb/mapstore2-cadastrapp/actions/runs/2869243862 and it works 👍
@catmorales with #174 the display of prefixed sections also works in the search results i suppose ?
Under Mapfishapp
Under MapStore
The call to the cadastrapp API : https://portail.sig.rennesmetropole.fr/cadastrapp/services/getSection?cgocommune=350206
Extract of the answer :
I don't know how I could have missed this in my tests because it is well know on this municipality. But anyway : the
section
code must be a concatenation ofccopre
andccosec
.