oeuvresAPhotographier = {
var resultat = []
absentsActuellement.forEach(d => {
var current = artistes.data.find(a => a.id == d.ID_MONA)
var oeuvresCurrent = current.artworks.map(o => {
var c = oeuvres.find(oeuvre => oeuvre.id == o)
resultat.push({
id: current.id,
nom: current.name,
titre: c.title.fr,
date: c.produced_at,
region: c.territory,
quartier: c.borough,
geoloc: String(c.location.lat)+","+String(c.location.lng),
adresse: c.address? c.address.fr: null,
lieu: c.place? c.place.fr: null,
infoLocalisation: c.directions? c.directions.fr: null,
categories: c.categories? String(c.categories.fr) : null,
materiaux: c.materials ? String(c.materials.fr) : null,
mediums: c.mediums ? String(c.mediums.fr) : null,
url: c.url ? c.url.fr: null,
})
})
})
return resultat
}