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