|
@@ -220,11 +220,9 @@ function handle_objectData(json) {
|
|
|
var dimensions = "";
|
|
|
var consistence = "";
|
|
|
var materials = "";
|
|
|
- var current_location = "";
|
|
|
var description = "";
|
|
|
var button_ext = "";
|
|
|
var button_owner = "";
|
|
|
- var registro = "";
|
|
|
var current_owner = "";
|
|
|
var uri_owner = "";
|
|
|
var dates = "";
|
|
@@ -256,20 +254,12 @@ function handle_objectData(json) {
|
|
|
current_owner = value['owner']['value'];
|
|
|
uri_owner = value['uri_owner']['value'];
|
|
|
}
|
|
|
- if (value.hasOwnProperty('location')) {
|
|
|
- $("#conservazione").css("display", "flex");
|
|
|
- current_location = value['location']['value'];
|
|
|
- }
|
|
|
if (value.hasOwnProperty('time_span')) {
|
|
|
if (value['time_span']['value'] != ""){
|
|
|
$("#time_span_object").css("display", "flex");
|
|
|
dates = value['time_span']['value'];
|
|
|
}
|
|
|
}
|
|
|
- if (value.hasOwnProperty('sigla_registro')) {
|
|
|
- $("#IDreg").css("display", "flex");
|
|
|
- registro = value['sigla_registro']['value'];
|
|
|
- }
|
|
|
if (value.hasOwnProperty('note')) {
|
|
|
$("#notes").css("display", "flex");
|
|
|
description = value['note']['value'];
|
|
@@ -289,12 +279,10 @@ function handle_objectData(json) {
|
|
|
document.getElementById("nome_oggetto").innerHTML = label;
|
|
|
document.getElementById("identifier").innerHTML = identifier;
|
|
|
document.getElementById("btn_identifier").innerHTML = button_ext;
|
|
|
- document.getElementById("current_location").innerHTML = current_location;
|
|
|
document.getElementById("nota").innerHTML = description;
|
|
|
document.getElementById("dimensions").innerHTML = dimensions;
|
|
|
document.getElementById("materials").innerHTML = materials;
|
|
|
document.getElementById("consistence").innerHTML = consistence;
|
|
|
- document.getElementById("registry").innerHTML = registro;
|
|
|
document.getElementById("owner").innerHTML = current_owner;
|
|
|
document.getElementById("btn_owner").innerHTML = button_owner;
|
|
|
document.getElementById("timeSpan").innerHTML = dates;
|
|
@@ -562,7 +550,7 @@ function handle_citedPeople(json) {
|
|
|
for (var i=0; i<people.length; i++) {
|
|
|
var object = '<a href=' + people[i][0] + ' target="_blank">' + people[i][1] + '</a>';
|
|
|
if (people[i][2] != "") {
|
|
|
- object = object + "<br />Tipo: " + people[i][2];
|
|
|
+ object = object + "<br />Ruolo: " + people[i][2];
|
|
|
}
|
|
|
if (people[i][3] != "") {
|
|
|
object = object + "<br />Nota: " + people[i][3];
|