modifica per vis. 'commento/commentatore'
This commit is contained in:
parent
144c724a00
commit
eccfce7586
|
@ -812,7 +812,7 @@ function resetFrasi(){
|
|||
divCampiSingoli.appendTo(collapseCardBody);
|
||||
}
|
||||
if (comments.RapportoSoggettoOggetto != null){
|
||||
createDivSingola(divCampiSingoli, "Rapporto Testo/Fonte: ", comments.RapportoSoggettoOggetto)
|
||||
createDivSingola(divCampiSingoli, "Rapporto Testo/Fonte: ", comments.RapportoSoggettoOggetto.charAt(0)+comments.RapportoSoggettoOggetto.substring(1).toLowerCase())
|
||||
divCampiSingoli.appendTo(collapseCardBody);
|
||||
}
|
||||
if (comments.RapportoCommentoCommentatoreText != null && comments.RapportoCommentoCommentatoreText != "nan"){
|
||||
|
@ -918,31 +918,25 @@ function resetFrasi(){
|
|||
}
|
||||
|
||||
function createModuleCommentatore(collapse, commento, num, id, pos){
|
||||
var commentoCommentatore = commento.split(',');
|
||||
let mycomment = commento.replaceAll("'", '"')
|
||||
let commentJson=JSON.parse(mycomment);
|
||||
|
||||
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 = 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("'", "");
|
||||
var urlCommento = commentJson.Commento;
|
||||
var esitoCommento = commentJson.Rapporto.charAt(0) + commentJson.Rapporto.substring(1).toLowerCase();
|
||||
var autoreCommento = commentJson.Autore
|
||||
if (autoreCommento == "") {
|
||||
autoreCommento = "Commento"
|
||||
autoreCommento = "Autore"
|
||||
}
|
||||
if (esitoCommento == "") {
|
||||
esitoCommento = "Rapporto nullo"
|
||||
esitoCommento = "NA "
|
||||
}
|
||||
if (urlCommento == "") {
|
||||
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