From 1999522e97f7223e1d2556c5e92c235114f8cfb4 Mon Sep 17 00:00:00 2001 From: Simon C Date: Fri, 24 Feb 2023 14:14:28 +0100 Subject: [PATCH] feat: Ajout des noms courts --- layouts/index.html | 13 +++++++------ scripts/finess-sisa.py | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index a87f028..d8e8bb1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -41,11 +41,12 @@ const columns = { finessET: 0, name: 1, - dep: 2, - tel: 3, - siret: 4, - x: 5, - y: 6, + name_long: 2, + dep: 3, + tel: 4, + siret: 5, + x: 6, + y: 7, } var json = fetch('./data.json').then(response => { return response.json(); @@ -56,7 +57,7 @@ const marker = L .marker([msp[columns.x], msp[columns.y]]) .bindPopup( - msp[columns.name] + " (" + msp[columns.dep] + ")
" + + (msp[columns.name_long] ? msp[columns.name_long] : msp[columns.name]) + " (" + msp[columns.dep] + ")
" + "Établissement FINESS N°" + msp[columns.finessET] + "
" + (msp[columns.siret] != null ? "SIREN : " + msp[columns.siret].substring(0, 9) + "
" : "") + (msp[columns.tel] != null ? "" + msp[columns.tel] + "" : "") diff --git a/scripts/finess-sisa.py b/scripts/finess-sisa.py index 7695bde..e7160f2 100644 --- a/scripts/finess-sisa.py +++ b/scripts/finess-sisa.py @@ -55,7 +55,7 @@ header_drop = [ 'section', # 'nofinesset', 'nofinessej', - 'rs', + #'rs', #'rslongue', 'complrs', 'compldistrib',