diff --git a/js/browseMgr_5.0.js b/js/browseMgr_5.0.js index 8c783b7..fd7cd6c 100644 --- a/js/browseMgr_5.0.js +++ b/js/browseMgr_5.0.js @@ -925,7 +925,7 @@ $(document).ready(function() { } drawMinimap("#" + minimapid, false) - /*console.log (commentsSQL)*/ + console.log (commentsSQL) } @@ -1056,14 +1056,14 @@ $(document).ready(function() { if (comments.RapportoCommentoCommentatoreText != null && comments.RapportoCommentoCommentatoreText != "nan") { createModuleCommentatore(collapseCardBody, comments.RapportoCommentoCommentatoreText, "5", id, pos) } - if (comments.frammentoNota != null && comments.frammentoNota != "nan" && comments.annotazione != null && comments.annotazione != "nan") { - createModuleFrammAnnot(collapseCardBody, removeHtmlTags(comments.frammentoNota), removeHtmlTags(comments.annotazione), "6", id, pos) + if (comments.frammentoNota != null && comments.frammentoNota != "nan" && comments.Annotazione != null && comments.Annotazione != "nan") { + createModuleFrammAnnot(collapseCardBody, removeHtmlTags(comments.frammentoNota), removeHtmlTags(comments.Annotazione), "6", id, pos) } else { if (comments.frammentoNota != null && comments.frammentoNota != "nan") { createModule(collapseCardBody, "Nota: ", removeHtmlTags(comments.frammentoNota), "6", id, pos) } - if (comments.annotazione != null && comments.annotazione != "nan") { - createModule(collapseCardBody, "Nota completa: ", removeHtmlTags(comments.annotazione), "7", id, pos) + if (comments.Annotazione != null && comments.Annotazione != "nan") { + createModule(collapseCardBody, "Nota completa: ", removeHtmlTags(comments.Annotazione), "7", id, pos) } } if (comments.NotaFonteCitazione != null && comments.NotaFonteCitazione != "nan" && comments.NotaFonteCitazione != "") { @@ -1128,8 +1128,8 @@ $(document).ready(function() { collapseButton.appendTo(buttons); //closeButton.appendTo(buttons); - if (comments.commentario != null) { - rigaNota.append('Commentatore: ' + comments.commentario + '
'); + if (comments.Commentario != null) { + rigaNota.append('Commentatore: ' + comments.Commentario + '
'); }