data = {
var resultat = []
oeuvres.forEach(oeuvre => {
var current = oeuvre
if (oeuvre.produced_at == null)
oeuvre.siecle = "sans date"
else if (oeuvre.produced_at.charAt(0) == "2"){
oeuvre.siecle = "XXIe"
}
else if (oeuvre.produced_at.charAt(0) == "1" && oeuvre.produced_at.charAt(1) == "9")
oeuvre.siecle = "XXe"
else if (oeuvre.produced_at.charAt(0) == "1" && oeuvre.produced_at.charAt(1) == "8")
oeuvre.siecle = "XIXe"
else if (oeuvre.produced_at.charAt(0) == "1" && oeuvre.produced_at.charAt(1) == "7")
oeuvre.siecle = "XVIIIe"
else
oeuvre.siecle = "autre ("+oeuvre.produced_at+ ")"
resultat.push(oeuvre)
})
return resultat
}