|
@@ -580,8 +580,8 @@ function handle_data(json) {
|
|
|
|
|
|
var first_name = "";
|
|
|
|
|
|
- if ((givenName != "") || (second_name != " ") || (familyName != "") || (provenence != "")) {
|
|
|
- first_name = givenName + " " + second_name + " " + familyName + " " + provenence;
|
|
|
+ if ((givenName != "") || (second_name != " ") || (provenence != "")) {
|
|
|
+ first_name = givenName + " " + second_name + " " + provenence;
|
|
|
} else {
|
|
|
first_name = name;
|
|
|
}
|
|
@@ -769,7 +769,7 @@ function handle_Relazioni(json) {
|
|
|
var type = tipo.charAt(0).toUpperCase() + tipo.slice(1) + principale;
|
|
|
|
|
|
if ((type == "Socio") || (type == "Socio principale")) {
|
|
|
- type = type + " di";
|
|
|
+ type = "Società";
|
|
|
}
|
|
|
|
|
|
if (type == "Mano lettera") {
|
|
@@ -1329,6 +1329,7 @@ function handle_map(json) {
|
|
|
place_names.push(uri);
|
|
|
const coordinates = coord.split(", ");
|
|
|
loc.push(uri);
|
|
|
+ label = titleCase(label);
|
|
|
loc.push(label);
|
|
|
myPlaces += "<div class='item-place-person'><div class='clickPlace item-place-person-label' data-point='"+ coordinates + "'>" + label + "</div><div class='item-place-person-action'><div class='luogo' id='" +
|
|
|
uri + "'><i class='far fa-map' style='cursor:pointer'></i></div></div></div>";
|
|
@@ -1402,9 +1403,10 @@ function handle_map(json) {
|
|
|
for (var i = 0; i < luoghi.length; i++) {
|
|
|
var a = luoghi[i];
|
|
|
var len = a.length;
|
|
|
- var title = "<b>" + a[0] + "</b>";
|
|
|
+ var title = "<h2>" + titleCase(a[0]) + "</h2>";
|
|
|
for (var k=3; k<len; k++) {
|
|
|
- title = title + "<br />" + a[k];
|
|
|
+ var dix = a[k].replace("Invio:", "Invio lettere:").replace("Ricezione:", "Ricezione lettere:");
|
|
|
+ title = title + "<p style='font-size: 14px;'>" + dix + " occorrenze</p><hr>";
|
|
|
}
|
|
|
var marker = new L.Marker(new L.LatLng(a[1], a[2]), { title: title });
|
|
|
marker.bindPopup(title);
|