feat: Ajout des noms courts
continuous-integration/drone Build is failing Details

This commit is contained in:
Simon 2023-02-24 14:14:28 +01:00
parent a6a7e50ab9
commit 1999522e97
2 changed files with 8 additions and 7 deletions

View File

@ -41,11 +41,12 @@
const columns = { const columns = {
finessET: 0, finessET: 0,
name: 1, name: 1,
dep: 2, name_long: 2,
tel: 3, dep: 3,
siret: 4, tel: 4,
x: 5, siret: 5,
y: 6, x: 6,
y: 7,
} }
var json = fetch('./data.json').then(response => { var json = fetch('./data.json').then(response => {
return response.json(); return response.json();
@ -56,7 +57,7 @@
const marker = L const marker = L
.marker([msp[columns.x], msp[columns.y]]) .marker([msp[columns.x], msp[columns.y]])
.bindPopup( .bindPopup(
msp[columns.name] + " (" + msp[columns.dep] + ")<br>" + (msp[columns.name_long] ? msp[columns.name_long] : msp[columns.name]) + " (" + msp[columns.dep] + ")<br>" +
"Établissement FINESS N°" + msp[columns.finessET] + "<br>" + "Établissement FINESS N°" + msp[columns.finessET] + "<br>" +
(msp[columns.siret] != null ? "SIREN : <a rel='noreferrer' target='_blank' href='https://data.inpi.fr/entreprises/" + msp[columns.siret].substring(0, 9) + "'>" + msp[columns.siret].substring(0, 9) + "</a><br>" : "") + (msp[columns.siret] != null ? "SIREN : <a rel='noreferrer' target='_blank' href='https://data.inpi.fr/entreprises/" + msp[columns.siret].substring(0, 9) + "'>" + msp[columns.siret].substring(0, 9) + "</a><br>" : "") +
(msp[columns.tel] != null ? "<a href='tel:" + msp[columns.tel] + "'>" + msp[columns.tel] + "</a>" : "") (msp[columns.tel] != null ? "<a href='tel:" + msp[columns.tel] + "'>" + msp[columns.tel] + "</a>" : "")

View File

@ -55,7 +55,7 @@ header_drop = [
'section', 'section',
# 'nofinesset', # 'nofinesset',
'nofinessej', 'nofinessej',
'rs', #'rs',
#'rslongue', #'rslongue',
'complrs', 'complrs',
'compldistrib', 'compldistrib',