nuovi dati per 'Citazioni'
This commit is contained in:
parent
fd7e69b223
commit
9c59508ae7
|
@ -923,10 +923,17 @@ function resetFrasi(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function createModuleCommentatore(collapse, commento, num, id, pos){
|
function createModuleCommentatore(collapse, commento, num, id, pos){
|
||||||
var commentoCommentatore = commento.split(',');
|
let jsonCommento=JSON.parse(commento.replaceAll("'", '"').replaceAll("+", '"'));
|
||||||
|
var urlCommento = jsonCommento.Commento;
|
||||||
|
|
||||||
|
var esitoCommento = jsonCommento.Rapporto.charAt(0) + jsonCommento.Rapporto.substring(1).toLowerCase();
|
||||||
|
|
||||||
|
var autoreCommento = jsonCommento.Autore
|
||||||
|
//var commentoCommentatore = commento.split(',');
|
||||||
var divContent = $('<div class="d-flex align-content-start flex-wrap text-muted">');
|
var divContent = $('<div class="d-flex align-content-start flex-wrap text-muted">');
|
||||||
var divTesto = $('<div class="px-3 py-1">')
|
var divTesto = $('<div class="px-3 py-1">')
|
||||||
var nota;
|
var nota;
|
||||||
|
/*
|
||||||
var urlCommento = commentoCommentatore[0];
|
var urlCommento = commentoCommentatore[0];
|
||||||
var position = urlCommento.indexOf("https");
|
var position = urlCommento.indexOf("https");
|
||||||
urlCommento = urlCommento.substring(position)
|
urlCommento = urlCommento.substring(position)
|
||||||
|
@ -938,6 +945,7 @@ function resetFrasi(){
|
||||||
var autoreCommento = commentoCommentatore[1]+' '+commentoCommentatore[2];
|
var autoreCommento = commentoCommentatore[1]+' '+commentoCommentatore[2];
|
||||||
autoreCommento = autoreCommento.replace(" 'Autore':", "")
|
autoreCommento = autoreCommento.replace(" 'Autore':", "")
|
||||||
autoreCommento = autoreCommento.replaceAll("'", "");
|
autoreCommento = autoreCommento.replaceAll("'", "");
|
||||||
|
*/
|
||||||
if (autoreCommento == "") {
|
if (autoreCommento == "") {
|
||||||
autoreCommento = "Commento"
|
autoreCommento = "Commento"
|
||||||
}
|
}
|
||||||
|
@ -947,7 +955,7 @@ function resetFrasi(){
|
||||||
if (urlCommento == "") {
|
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 {
|
} 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);
|
divTesto.append(nota);
|
||||||
divContent.append(divTesto);
|
divContent.append(divTesto);
|
||||||
|
|
3708
js/citazionijson.js
3708
js/citazionijson.js
File diff suppressed because one or more lines are too long
53
js/utils.js
53
js/utils.js
|
@ -964,17 +964,17 @@ function getVersiConCitazioni(canticapar='', cantopar=''){
|
||||||
commentsItem['commentario'] = item['Commentario'];
|
commentsItem['commentario'] = item['Commentario'];
|
||||||
commentsItem['frammentoNota'] = item['FrammentoNota'];
|
commentsItem['frammentoNota'] = item['FrammentoNota'];
|
||||||
//commentsItem['AutoreCitazione'] = item['InfoCitazione.Autore'];
|
//commentsItem['AutoreCitazione'] = item['InfoCitazione.Autore'];
|
||||||
commentsItem['AutoreCitazione'] = item['AutoreCit'];
|
commentsItem['AutoreCitazione'] = item['AC'];
|
||||||
//commentsItem['FonteCitazione'] = item['InfoCitazione.Fonte'];
|
//commentsItem['FonteCitazione'] = item['InfoCitazione.Fonte'];
|
||||||
commentsItem['FonteCitazione'] = item['Fonte'];
|
commentsItem['FonteCitazione'] = item['F'];
|
||||||
//commentsItem['LuogoFonteCitazione'] = item['InfoCitazione.LuogoFonte'];
|
//commentsItem['LuogoFonteCitazione'] = item['InfoCitazione.LuogoFonte'];
|
||||||
commentsItem['LuogoFonteCitazione'] = item['LuogoFonte'];
|
commentsItem['LuogoFonteCitazione'] = item['LF'];
|
||||||
//commentsItem['NotaFonteCitazione'] = item['InfoCitazione.NotaFonte'];
|
//commentsItem['NotaFonteCitazione'] = item['InfoCitazione.NotaFonte'];
|
||||||
commentsItem['NotaFonteCitazione'] = item['NotaFonte'];
|
commentsItem['NotaFonteCitazione'] = item['NF'];
|
||||||
//commentsItem['TestoFonteCitazione'] = item['InfoCitazione.TestoFonte'];
|
//commentsItem['TestoFonteCitazione'] = item['InfoCitazione.TestoFonte'];
|
||||||
commentsItem['TestoFonteCitazione'] = item['TestoFonte'];
|
commentsItem['TestoFonteCitazione'] = item['TF'];
|
||||||
//commentsItem['URLFonteCitazione'] = item['InfoCitazione.UrlFonte'];
|
//commentsItem['URLFonteCitazione'] = item['InfoCitazione.UrlFonte'];
|
||||||
commentsItem['URLFonteCitazione'] = item['UrlFonte'];
|
commentsItem['URLFonteCitazione'] = item['UF'];
|
||||||
commentsItem['NaturaRiferimento'] = item['NaturaRiferimento'];
|
commentsItem['NaturaRiferimento'] = item['NaturaRiferimento'];
|
||||||
//commentsItem['RapportoCommentoCommentatoreText'] = item['RapportoCommentoCommentatoreText'];
|
//commentsItem['RapportoCommentoCommentatoreText'] = item['RapportoCommentoCommentatoreText'];
|
||||||
commentsItem['RapportoCommentoCommentatoreText'] = item['RCC'];
|
commentsItem['RapportoCommentoCommentatoreText'] = item['RCC'];
|
||||||
|
@ -989,8 +989,49 @@ function getVersiConCitazioni(canticapar='', cantopar=''){
|
||||||
else{
|
else{
|
||||||
commentsItem['TipoCitazione'] =item['TipoDiCitazione']
|
commentsItem['TipoCitazione'] =item['TipoDiCitazione']
|
||||||
}
|
}
|
||||||
|
//'CEP', 'CIM', 'CTE', 'CMO', 'CST', 'CTO'
|
||||||
|
|
||||||
|
if (item['CEP']=='no'){
|
||||||
|
commentsItem['CitEpisodi'] =''
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
commentsItem['CitEpisodi'] =item['CEP']
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item['CIM']=='no'){
|
||||||
|
commentsItem['CitImmagini'] =''
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
commentsItem['CitImmagini'] =item['CIM']
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item['CTE']=='no'){
|
||||||
|
commentsItem['CitTeorie'] =''
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
commentsItem['CitTeorie'] =item['CTE']
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item['CMO']=='no'){
|
||||||
|
commentsItem['CitMotivi'] =''
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
commentsItem['CitMotivi'] =item['CMO']
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item['CST']=='no'){
|
||||||
|
commentsItem['CitStilemi'] =''
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
commentsItem['CitStilemi'] =item['CST']
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item['CTO']=='no'){
|
||||||
|
commentsItem['CitTopografie'] =''
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
commentsItem['CitTopografie'] =item['CTO']
|
||||||
|
}
|
||||||
|
|
||||||
citazionitemp.push(commentsItem)
|
citazionitemp.push(commentsItem)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue