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 = {
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] + ")<br>" +
(msp[columns.name_long] ? msp[columns.name_long] : msp[columns.name]) + " (" + msp[columns.dep] + ")<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.tel] != null ? "<a href='tel:" + msp[columns.tel] + "'>" + msp[columns.tel] + "</a>" : "")

View File

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