logs removed
This commit is contained in:
parent
71fb0c4c02
commit
c0a6dcc86b
|
@ -162,7 +162,7 @@ $(document).ready(function() {
|
||||||
$(" ." + formaClass).dblclick(function() {
|
$(" ." + formaClass).dblclick(function() {
|
||||||
|
|
||||||
var sentenceId = $(this).attr('class').split(' ')[0].replace('$', '')
|
var sentenceId = $(this).attr('class').split(' ')[0].replace('$', '')
|
||||||
console.log('dblclick ' + lisid)
|
//console.log('dblclick ' + lisid)
|
||||||
if (shownSentenceList.has(sentenceId)) {
|
if (shownSentenceList.has(sentenceId)) {
|
||||||
resetSentenceStructure(sentenceId)
|
resetSentenceStructure(sentenceId)
|
||||||
shownSentenceList.delete(sentenceId)
|
shownSentenceList.delete(sentenceId)
|
||||||
|
@ -288,7 +288,7 @@ $(document).ready(function() {
|
||||||
jQuery.manageResultList = function manageResultList(start, offset = showOffset) {
|
jQuery.manageResultList = function manageResultList(start, offset = showOffset) {
|
||||||
|
|
||||||
|
|
||||||
console.log('Paginazione...')
|
//console.log('Paginazione...')
|
||||||
//prevstart = start
|
//prevstart = start
|
||||||
//prevoffset = offset
|
//prevoffset = offset
|
||||||
if (cantoDisplayed != '#vistaFrasi') {
|
if (cantoDisplayed != '#vistaFrasi') {
|
||||||
|
@ -327,7 +327,7 @@ $(document).ready(function() {
|
||||||
ultimaPosizione = getContextLastPosition(risultato, contextLength);
|
ultimaPosizione = getContextLastPosition(risultato, contextLength);
|
||||||
}
|
}
|
||||||
numeroContesti = numeroRisultati
|
numeroContesti = numeroRisultati
|
||||||
console.log('num contesti ' + numeroContesti)
|
//console.log('num contesti ' + numeroContesti)
|
||||||
return (numeroRisultati)
|
return (numeroRisultati)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -494,8 +494,8 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
var t2 = performance.now()
|
var t2 = performance.now()
|
||||||
|
|
||||||
console.log('res in context ' + (t1 - t0))
|
//console.log('res in context ' + (t1 - t0))
|
||||||
console.log('list creation ' + (t2 - t1))
|
//console.log('list creation ' + (t2 - t1))
|
||||||
//evidenzio resultati
|
//evidenzio resultati
|
||||||
var clausesinrs = []
|
var clausesinrs = []
|
||||||
for (var ris of listarisultati) {
|
for (var ris of listarisultati) {
|
||||||
|
@ -520,7 +520,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var t3 = performance.now()
|
var t3 = performance.now()
|
||||||
console.log('mar res ' + (t2 - t3))
|
//console.log('mar res ' + (t2 - t3))
|
||||||
//evidenzio i periodi se unità di ricerca è impostato come periodo
|
//evidenzio i periodi se unità di ricerca è impostato come periodo
|
||||||
if (listaPeriodiRisultato.length) {
|
if (listaPeriodiRisultato.length) {
|
||||||
for (var msid of clausesinrs) {
|
for (var msid of clausesinrs) {
|
||||||
|
@ -535,7 +535,7 @@ $(document).ready(function() {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
var t4 = performance.now()
|
var t4 = performance.now()
|
||||||
console.log('load per ' + (t3 - t4))
|
//console.log('load per ' + (t3 - t4))
|
||||||
//evidenzio le frasi se unità di ricerca è frase
|
//evidenzio le frasi se unità di ricerca è frase
|
||||||
if (listaClausoleRisultato.length) {
|
if (listaClausoleRisultato.length) {
|
||||||
for (var clsid of clausesinrs) {
|
for (var clsid of clausesinrs) {
|
||||||
|
@ -594,7 +594,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
drawMinimap("#" + $(this).attr('name').replace(" ", "_"), false)
|
drawMinimap("#" + $(this).attr('name').replace(" ", "_"), false)
|
||||||
|
|
||||||
console.log("#" + $(this).attr('name').replace(" ", "_"))
|
//console.log("#" + $(this).attr('name').replace(" ", "_"))
|
||||||
if (vistaPeriodi) {
|
if (vistaPeriodi) {
|
||||||
loadFrasi();
|
loadFrasi();
|
||||||
}
|
}
|
||||||
|
@ -632,7 +632,7 @@ $(document).ready(function() {
|
||||||
//Reset
|
//Reset
|
||||||
|
|
||||||
jQuery(document).delegate('#cleanresult', 'click', function(e) {
|
jQuery(document).delegate('#cleanresult', 'click', function(e) {
|
||||||
console.log('clean')
|
|
||||||
cleanSearchResult()
|
cleanSearchResult()
|
||||||
//esprlogica = []
|
//esprlogica = []
|
||||||
$('#queryText').val("")
|
$('#queryText').val("")
|
||||||
|
@ -668,7 +668,7 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
//console.log('nr forme '+idn)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -955,7 +955,7 @@ $(document).ready(function() {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (t == 'Proemio') {
|
if (t == 'Proemio') {
|
||||||
console.log(idminimap + ' ' + t)
|
//console.log(idminimap + ' ' + t)
|
||||||
var elcanto = $("#" + 'Titolo' + idminimap)
|
var elcanto = $("#" + 'Titolo' + idminimap)
|
||||||
if (canto.startsWith('0'))
|
if (canto.startsWith('0'))
|
||||||
canto = canto.replace('0', '')
|
canto = canto.replace('0', '')
|
||||||
|
@ -1017,8 +1017,8 @@ $(document).ready(function() {
|
||||||
|
|
||||||
allGrouplKeys.sort().some(function(k) {
|
allGrouplKeys.sort().some(function(k) {
|
||||||
if (k == id || k.startsWith(id + '-')) { //~k.indexOf(id + '-')) {
|
if (k == id || k.startsWith(id + '-')) { //~k.indexOf(id + '-')) {
|
||||||
//console.log('gruppo commenti '+k)
|
|
||||||
console.log(commentsSQL[k].length)
|
//console.log(commentsSQL[k].length)
|
||||||
//gruppoVersi = k.split("_").slice(-1)[0]
|
//gruppoVersi = k.split("_").slice(-1)[0]
|
||||||
gruppoVersi = k
|
gruppoVersi = k
|
||||||
if (gruppoVersi.includes("-")) {
|
if (gruppoVersi.includes("-")) {
|
||||||
|
@ -1065,6 +1065,8 @@ $(document).ready(function() {
|
||||||
return noteGroupCard;
|
return noteGroupCard;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var toTitleCase = str => str.replace(/(^\w|\s\w)(\S*)/g, (_,m1,m2) => m1.toUpperCase()+m2.toLowerCase())
|
||||||
|
|
||||||
function createNoteEntry(comments, id, pos) {
|
function createNoteEntry(comments, id, pos) {
|
||||||
const tmplistaidcomm = getListaIdCommenti()
|
const tmplistaidcomm = getListaIdCommenti()
|
||||||
var idref = comments.Id
|
var idref = comments.Id
|
||||||
|
@ -1085,12 +1087,13 @@ $(document).ready(function() {
|
||||||
if (comments.TestoFonteCitazione != null && comments.TestoFonteCitazione != "nan" && comments.TestoFonteCitazione.trim() != "") {
|
if (comments.TestoFonteCitazione != null && comments.TestoFonteCitazione != "nan" && comments.TestoFonteCitazione.trim() != "") {
|
||||||
createModule(collapseCardBody, "Testo della fonte: ", removeHtmlTags(comments.TestoFonteCitazione), "1", id, pos)
|
createModule(collapseCardBody, "Testo della fonte: ", removeHtmlTags(comments.TestoFonteCitazione), "1", id, pos)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (comments.NaturaRiferimento != null) {
|
if (comments.NaturaRiferimento != null) {
|
||||||
createDivSingola(divCampiSingoli, "Tipo di riferimento: ", comments.NaturaRiferimento, false)
|
createDivSingola(divCampiSingoli, "Tipo di riferimento: ", toTitleCase(comments.NaturaRiferimento), false)
|
||||||
divCampiSingoli.appendTo(collapseCardBody);
|
divCampiSingoli.appendTo(collapseCardBody);
|
||||||
if (comments.NaturaRiferimento == "CITAZIONE" || comments.NaturaRiferimento == "LOCI PARALLELI") {
|
if (comments.NaturaRiferimento == "CITAZIONE" || comments.NaturaRiferimento == "LOCI PARALLELI") {
|
||||||
if (comments.TipoCitazione != null && comments.TipoCitazione != "" && comments.TipoCitazione != "no") {
|
if (comments.TipoCitazione != null && comments.TipoCitazione != "" && comments.TipoCitazione != "no") {
|
||||||
createDivSingola(divCampiSingoli, "Tipo citazione: ", comments.TipoCitazione, false)
|
createDivSingola(divCampiSingoli, "Tipo citazione: ", toTitleCase(comments.TipoCitazione), false)
|
||||||
divCampiSingoli.appendTo(collapseCardBody);
|
divCampiSingoli.appendTo(collapseCardBody);
|
||||||
}
|
}
|
||||||
if (comments.AreaTematica != null && comments.AreaTematica != "" && comments.AreaTematica != "na") {
|
if (comments.AreaTematica != null && comments.AreaTematica != "" && comments.AreaTematica != "na") {
|
||||||
|
@ -1101,7 +1104,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (comments.RapportoSoggettoOggetto != null) {
|
if (comments.RapportoSoggettoOggetto != null) {
|
||||||
createDivSingola(divCampiSingoli, "Rapporto testo/fonte: ", comments.RapportoSoggettoOggetto, false)
|
createDivSingola(divCampiSingoli, "Rapporto testo/fonte: ", toTitleCase(comments.RapportoSoggettoOggetto), false)
|
||||||
divCampiSingoli.appendTo(collapseCardBody);
|
divCampiSingoli.appendTo(collapseCardBody);
|
||||||
}
|
}
|
||||||
if (comments.RapportoCommentoCommentatoreText != null && comments.RapportoCommentoCommentatoreText != "nan") {
|
if (comments.RapportoCommentoCommentatoreText != null && comments.RapportoCommentoCommentatoreText != "nan") {
|
||||||
|
@ -1274,7 +1277,7 @@ $(document).ready(function() {
|
||||||
for (var el in jsonCommento) {
|
for (var el in jsonCommento) {
|
||||||
|
|
||||||
var tmpcc = JSON.parse(jsonCommento[el])
|
var tmpcc = JSON.parse(jsonCommento[el])
|
||||||
console.log(' el ' + tmpcc)
|
//console.log(' el ' + tmpcc)
|
||||||
var urlCommento = tmpcc["Commento"];
|
var urlCommento = tmpcc["Commento"];
|
||||||
|
|
||||||
var esitoCommento = tmpcc.Rapporto;
|
var esitoCommento = tmpcc.Rapporto;
|
||||||
|
@ -1582,7 +1585,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log("got json query, unita ricerca: " + unitaRicerca)
|
//console.log("got json query, unita ricerca: " + unitaRicerca)
|
||||||
if (jsonQuery['QueryAvanzata'] == 0 && jsonQuery['Clausola0']['queryText'] == '') {
|
if (jsonQuery['QueryAvanzata'] == 0 && jsonQuery['Clausola0']['queryText'] == '') {
|
||||||
alert('Digitare una stringa da cercare')
|
alert('Digitare una stringa da cercare')
|
||||||
return
|
return
|
||||||
|
@ -1620,7 +1623,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
var resultsInCantica = []
|
var resultsInCantica = []
|
||||||
var resultsInCanto = []
|
var resultsInCanto = []
|
||||||
console.log('frase, l. ' + searchwords.length)
|
//console.log('frase, l. ' + searchwords.length)
|
||||||
if (noContext || inf.length)
|
if (noContext || inf.length)
|
||||||
executeLocalSearch(searchwords, formeprima, (formeprima.length - searchwords.length), cantiche[0], inf, resultsInCantica, resultsInCanto)
|
executeLocalSearch(searchwords, formeprima, (formeprima.length - searchwords.length), cantiche[0], inf, resultsInCantica, resultsInCanto)
|
||||||
if (noContext || pur.length)
|
if (noContext || pur.length)
|
||||||
|
@ -2111,7 +2114,7 @@ $(document).ready(function() {
|
||||||
var resSentence = new Set()
|
var resSentence = new Set()
|
||||||
var resClauses = []
|
var resClauses = []
|
||||||
//let minim=$(" .minimap__content")
|
//let minim=$(" .minimap__content")
|
||||||
console.log('start rendering...')
|
//console.log('start rendering...')
|
||||||
listarisultati = Array.from(result)
|
listarisultati = Array.from(result)
|
||||||
var listaclausole = Array.from(resultClauses)
|
var listaclausole = Array.from(resultClauses)
|
||||||
|
|
||||||
|
@ -2178,7 +2181,7 @@ $(document).ready(function() {
|
||||||
//Unità di ricerca è 'Discorso'
|
//Unità di ricerca è 'Discorso'
|
||||||
|
|
||||||
if (unitaRicerca == 'discorso' && listaclausole.length) {
|
if (unitaRicerca == 'discorso' && listaclausole.length) {
|
||||||
console.log('Dialoghi')
|
//console.log('Dialoghi')
|
||||||
resultsInCantica = []
|
resultsInCantica = []
|
||||||
resultsInCanto = []
|
resultsInCanto = []
|
||||||
var tmplr = []
|
var tmplr = []
|
||||||
|
@ -2264,7 +2267,7 @@ $(document).ready(function() {
|
||||||
//aggiunge badge con totale risultati accanto ai canti
|
//aggiunge badge con totale risultati accanto ai canti
|
||||||
showBadgeInCanto(resultsInCanto)
|
showBadgeInCanto(resultsInCanto)
|
||||||
|
|
||||||
console.log('badge end...')
|
//console.log('badge end...')
|
||||||
//calcolo numero dei contesti
|
//calcolo numero dei contesti
|
||||||
countResultContexts()
|
countResultContexts()
|
||||||
$("#loader").fadeOut(300);
|
$("#loader").fadeOut(300);
|
||||||
|
|
|
@ -34,9 +34,9 @@ document.addEventListener("dblclick", function(e){
|
||||||
//if (name === "sentenceStructArcs_new") {
|
//if (name === "sentenceStructArcs_new") {
|
||||||
if (name === "sentenceArcsStructs_new") {
|
if (name === "sentenceArcsStructs_new") {
|
||||||
const structel = document.getElementsByClassName(lsentid);
|
const structel = document.getElementsByClassName(lsentid);
|
||||||
console.log(structel[0].parentNode.getAttribute('value'))
|
//console.log(structel[0].parentNode.getAttribute('value'))
|
||||||
var stid=lsentid.split('_')
|
var stid=lsentid.split('_')
|
||||||
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.getAttribute('value')
|
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.parentNode.getAttribute('value')
|
||||||
console.log(structid)
|
console.log(structid)
|
||||||
fillStructCard(structid);
|
fillStructCard(structid);
|
||||||
return new Inspector(document.querySelector(hcontainer));
|
return new Inspector(document.querySelector(hcontainer));
|
||||||
|
@ -47,7 +47,7 @@ document.addEventListener("dblclick", function(e){
|
||||||
if (lisid!=''){
|
if (lisid!=''){
|
||||||
//var mywidth=document.getElementById('displaycanto').offsetWidth
|
//var mywidth=document.getElementById('displaycanto').offsetWidth
|
||||||
|
|
||||||
console.log('here graph '+lisid+' '+lsentid)
|
//console.log('here graph '+lisid+' '+lsentid)
|
||||||
|
|
||||||
|
|
||||||
main.redefine('width', 625);
|
main.redefine('width', 625);
|
||||||
|
@ -55,7 +55,7 @@ document.addEventListener("dblclick", function(e){
|
||||||
const structel = document.getElementsByClassName(lsentid);
|
const structel = document.getElementsByClassName(lsentid);
|
||||||
|
|
||||||
var stid=lsentid.split('_')
|
var stid=lsentid.split('_')
|
||||||
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.getAttribute('value')
|
var structid=stid[0]+'_'+stid[1]+'_'+structel[0].parentNode.parentNode.getAttribute('value')
|
||||||
|
|
||||||
fillStructCard(structid)
|
fillStructCard(structid)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue