Creato archivio file vecchi, modifiche live di Gaia
This commit is contained in:
parent
eccfce7586
commit
a41a178039
|
@ -804,15 +804,15 @@ function resetFrasi(){
|
|||
createModule(collapseCardBody,"Testo della fonte: ", comments.TestoFonteCitazione, "1", id, pos)
|
||||
}
|
||||
if (comments.NaturaRiferimento != null){
|
||||
createDivSingola(divCampiSingoli, "Tipo Riferimento: ", comments.NaturaRiferimento)
|
||||
divCampiSingoli.appendTo(collapseCardBody);
|
||||
}
|
||||
if (comments.commentario != null){
|
||||
createDivSingola(divCampiSingoli, "Commentatore: ", comments.commentario)
|
||||
createDivSingola(divCampiSingoli, "Tipo di riferimento: ", comments.NaturaRiferimento)
|
||||
divCampiSingoli.appendTo(collapseCardBody);
|
||||
}
|
||||
//if (comments.commentario != null){
|
||||
// createDivSingola(divCampiSingoli, "Commentatore: ", comments.commentario)
|
||||
// divCampiSingoli.appendTo(collapseCardBody);
|
||||
//}
|
||||
if (comments.RapportoSoggettoOggetto != null){
|
||||
createDivSingola(divCampiSingoli, "Rapporto Testo/Fonte: ", comments.RapportoSoggettoOggetto.charAt(0)+comments.RapportoSoggettoOggetto.substring(1).toLowerCase())
|
||||
createDivSingola(divCampiSingoli, "Rapporto testo/fonte: ", comments.RapportoSoggettoOggetto)
|
||||
divCampiSingoli.appendTo(collapseCardBody);
|
||||
}
|
||||
if (comments.RapportoCommentoCommentatoreText != null && comments.RapportoCommentoCommentatoreText != "nan"){
|
||||
|
@ -822,7 +822,7 @@ function resetFrasi(){
|
|||
createModule(collapseCardBody,"Nota: ", comments.frammentoNota, "7", id, pos)
|
||||
}
|
||||
if (comments.annotazione != null && comments.annotazione != "nan"){
|
||||
createModule(collapseCardBody,"Annotazione completa: ", comments.annotazione, "6", id, pos)
|
||||
createModule(collapseCardBody,"Nota completa: ", comments.annotazione, "6", id, pos)
|
||||
}
|
||||
if (comments.NotaFonteCitazione != null && comments.NotaFonteCitazione != "nan" && comments.NotaFonteCitazione != ""){
|
||||
createModule(collapseCardBody,"Nota dell'annotatore: ", comments.NotaFonteCitazione, "8", id, pos)
|
||||
|
@ -852,10 +852,15 @@ function resetFrasi(){
|
|||
'class="btn btn-sm btn-outline-primary bg-light closeNote border rounded text-primary align-self-end px-1 pb-0 ml-1 mb-1">'+
|
||||
'<ion-icon name="close-circle"></ion-icon>');
|
||||
|
||||
rigaNota.append('<b>' + cantica + '</b><i>' + ", Canto " + getRoman(parcid[2]) + " Verso " + parcid[3] + "</i> - ");
|
||||
rigaNota.append('<b>' + cantica + '</b>' + ", Canto " + getRoman(parcid[2]) + ", Verso " + parcid[3] + "<br>");
|
||||
collapseButton.appendTo(buttons);
|
||||
closeButton.appendTo(buttons);
|
||||
|
||||
if (comments.commentario != null){
|
||||
rigaNota.append('<b>Commentatore:</b> <i>' + comments.commentario + '</i><br>');
|
||||
}
|
||||
|
||||
|
||||
if (comments.NomeAutoreCitazione == null) {
|
||||
nomeAutore = 'riferimento';
|
||||
}
|
||||
|
@ -863,7 +868,7 @@ function resetFrasi(){
|
|||
nomeAutore = comments.NomeAutoreCitazione;
|
||||
}
|
||||
if (comments.AutoreCitazione != null) {
|
||||
rigaNota.append('<b>Autore della fonte:</b><a href="' + comments.AutoreCitazione + '" target="_blank"> <i>' + nomeAutore + '</i>, </a>');
|
||||
rigaNota.append('<b>Autore della fonte:</b><a href="' + comments.AutoreCitazione + '" target="_blank"> <i>' + nomeAutore + '</i> </a>');
|
||||
} else {
|
||||
rigaNota.append('<b>Autore della fonte:</b> <i>' + nomeAutore + '</i>');
|
||||
}
|
||||
|
@ -873,9 +878,9 @@ function resetFrasi(){
|
|||
titoloFonte = comments.TitoloFonteCitazione;
|
||||
}
|
||||
if (comments.FonteCitazione != null) {
|
||||
rigaNota.append('<b>Fonte:</b> <a href="' + comments.FonteCitazione + '" target="_blank"><i> ' + titoloFonte + '</i>, </a>');
|
||||
rigaNota.append(' <b>Fonte:</b> <a href="' + comments.FonteCitazione + '" target="_blank"><i> ' + titoloFonte + '</i> </a>');
|
||||
} else {
|
||||
rigaNota.append('<b>Fonte:</b><i> ' + titoloFonte + '</i>');
|
||||
rigaNota.append(' <b>Fonte:</b><i> ' + titoloFonte + '</i>');
|
||||
}
|
||||
if (comments.LuogoFonteCitazione == null) {
|
||||
luogoFonte = "riferimento";
|
||||
|
@ -883,9 +888,9 @@ function resetFrasi(){
|
|||
luogoFonte = comments.LuogoFonteCitazione;
|
||||
}
|
||||
if (comments.URLFonteCitazione != null) {
|
||||
rigaNota.append('<b>Coordinate della Fonte:</b><a href="' + comments.URLFonteCitazione + '"target="_blank"<i> ' + luogoFonte + '</i>, </a><br>');
|
||||
rigaNota.append(' <b>Coordinate della Fonte:</b><a href="' + comments.URLFonteCitazione + '"target="_blank"<i> ' + luogoFonte + '</i></a><br>');
|
||||
} else {
|
||||
rigaNota.append('<b>Coordinate della Fonte:</b><i> ' + luogoFonte + '</i><br>');
|
||||
rigaNota.append(' <b>Coordinate della Fonte:</b><i> ' + luogoFonte + '</i><br>');
|
||||
}
|
||||
rigaNota.appendTo(commentHeader);
|
||||
buttons.appendTo(commentHeader);
|
||||
|
@ -918,25 +923,31 @@ function resetFrasi(){
|
|||
}
|
||||
|
||||
function createModuleCommentatore(collapse, commento, num, id, pos){
|
||||
let mycomment = commento.replaceAll("'", '"')
|
||||
let commentJson=JSON.parse(mycomment);
|
||||
|
||||
var commentoCommentatore = commento.split(',');
|
||||
var divContent = $('<div class="d-flex align-content-start flex-wrap text-muted">');
|
||||
var divTesto = $('<div class="px-3 py-1">')
|
||||
var nota;
|
||||
var urlCommento = commentJson.Commento;
|
||||
var esitoCommento = commentJson.Rapporto.charAt(0) + commentJson.Rapporto.substring(1).toLowerCase();
|
||||
var autoreCommento = commentJson.Autore
|
||||
var urlCommento = commentoCommentatore[0];
|
||||
var position = urlCommento.indexOf("https");
|
||||
urlCommento = urlCommento.substring(position)
|
||||
urlCommento = urlCommento.replaceAll("'", "");
|
||||
var esitoCommento = commentoCommentatore[3];
|
||||
esitoCommento = esitoCommento.replace("'Rapporto': ", "")
|
||||
esitoCommento = esitoCommento.replaceAll("'", "");
|
||||
esitoCommento = esitoCommento.replaceAll('}', "");
|
||||
var autoreCommento = commentoCommentatore[1]+' '+commentoCommentatore[2];
|
||||
autoreCommento = autoreCommento.replace(" 'Autore':", "")
|
||||
autoreCommento = autoreCommento.replaceAll("'", "");
|
||||
if (autoreCommento == "") {
|
||||
autoreCommento = "Autore"
|
||||
autoreCommento = "Commento"
|
||||
}
|
||||
if (esitoCommento == "") {
|
||||
esitoCommento = "NA "
|
||||
esitoCommento = "Rapporto nullo"
|
||||
}
|
||||
if (urlCommento == "") {
|
||||
nota = '<b>Rapporto Commento/Commentatore: </b>'+esitoCommento+' Commento nullo, '+'</b><br>';
|
||||
nota = '<b>Rapporto commento/commentatore: </b>'+esitoCommento+' Commento nullo, '+'</b><br>';
|
||||
} else {
|
||||
nota = '<b>Rapporto Commento/Commentatore: </b>'+esitoCommento +' <a href="'+urlCommento+'"target="_blank"<i>' + autoreCommento+ '</i></a>' + '</b><br>';
|
||||
nota = '<b>Rapporto commento/commentatore: </b>'+esitoCommento +' <a href="'+urlCommento+'"target="_blank"<i>' + autoreCommento+ '</i></a>, ' + '</b><br>';
|
||||
}
|
||||
divTesto.append(nota);
|
||||
divContent.append(divTesto);
|
||||
|
|
Loading…
Reference in New Issue