estione risultati
This commit is contained in:
parent
16fefbe371
commit
1beb6aa613
|
@ -93,6 +93,7 @@ $(document).ready(function() {
|
||||||
case "visPeriodi|false":
|
case "visPeriodi|false":
|
||||||
$("#vistaFrasi").css("display", "none");
|
$("#vistaFrasi").css("display", "none");
|
||||||
resetFrasi()
|
resetFrasi()
|
||||||
|
manageResults()
|
||||||
vistaPeriodi = false
|
vistaPeriodi = false
|
||||||
break;
|
break;
|
||||||
case "visRiferimenti|true":
|
case "visRiferimenti|true":
|
||||||
|
@ -497,7 +498,7 @@ function countResultContexts() {
|
||||||
for (var ris of listarisultati) {
|
for (var ris of listarisultati) {
|
||||||
let idris = '#e' + ris
|
let idris = '#e' + ris
|
||||||
if ($(idris).attr('class') != null) {
|
if ($(idris).attr('class') != null) {
|
||||||
console.log($(idris).attr('class').replace(' frm', ''))
|
//console.log($(idris).attr('class').replace(' frm', ''))
|
||||||
clausesinrs.push($(idris).attr('class').replace(' frm', ''))
|
clausesinrs.push($(idris).attr('class').replace(' frm', ''))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -507,11 +508,16 @@ function countResultContexts() {
|
||||||
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 listaPeriodiRisultato) {
|
for (var msid of clausesinrs) {
|
||||||
loadPeriodo(msid)
|
loadPeriodo(msid.split(' ')[0])
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*for (var msid of listaPeriodiRisultato) {
|
||||||
|
loadPeriodo(msid)
|
||||||
|
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
var t4 = performance.now()
|
var t4 = performance.now()
|
||||||
console.log('load per ' + (t3 - t4))
|
console.log('load per ' + (t3 - t4))
|
||||||
|
@ -594,6 +600,7 @@ function countResultContexts() {
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
manageResults()
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -696,7 +703,6 @@ function countResultContexts() {
|
||||||
var mpstp = $(this).attr('class').split(" ")[1]
|
var mpstp = $(this).attr('class').split(" ")[1]
|
||||||
if (mpstp == 'sentencetag')
|
if (mpstp == 'sentencetag')
|
||||||
$(this).attr('style', 'display: d-flex;');
|
$(this).attr('style', 'display: d-flex;');
|
||||||
//$(this).css('color', colorssp(mapsynttypestopalette[mpstp]));
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -859,7 +865,7 @@ function countResultContexts() {
|
||||||
//cancello il grafo sintattico
|
//cancello il grafo sintattico
|
||||||
resetGraphStr()
|
resetGraphStr()
|
||||||
emptyStructCard()
|
emptyStructCard()
|
||||||
emphResults()
|
//emphResults()
|
||||||
}
|
}
|
||||||
//visualizzazione risultati
|
//visualizzazione risultati
|
||||||
function emphResults() {
|
function emphResults() {
|
||||||
|
@ -1538,17 +1544,7 @@ function countResultContexts() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*function manageMM(name) {
|
|
||||||
currentMinimap = name;
|
|
||||||
let testhtml = $(currentMinimap)[0].outerHTML;
|
|
||||||
//let minim=$(" .minimap__content")
|
|
||||||
let bm = minim.contents().find(' .blog-main')
|
|
||||||
bm.empty()
|
|
||||||
bm.append(testhtml)
|
|
||||||
getDimensionsDiv(true, true);
|
|
||||||
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
var unitaRicerca = 'forma'
|
var unitaRicerca = 'forma'
|
||||||
|
|
||||||
function manageQuery() {
|
function manageQuery() {
|
||||||
|
@ -1732,7 +1728,7 @@ function countResultContexts() {
|
||||||
|
|
||||||
createSpanPeriodiTag(closeSTag, 'c', ultimaFormaCanto[2] - 1, currSentenceId, elverso, periodinum[currSentenceId])
|
createSpanPeriodiTag(closeSTag, 'c', ultimaFormaCanto[2] - 1, currSentenceId, elverso, periodinum[currSentenceId])
|
||||||
|
|
||||||
//gestione risultati
|
/*//gestione risultati
|
||||||
|
|
||||||
if (listaPeriodiRisultato.length) {
|
if (listaPeriodiRisultato.length) {
|
||||||
for (var msid of listaPeriodiRisultato) {
|
for (var msid of listaPeriodiRisultato) {
|
||||||
|
@ -1757,10 +1753,38 @@ function countResultContexts() {
|
||||||
$(idris).addClass("font-weight-bold mark ")
|
$(idris).addClass("font-weight-bold mark ")
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function manageResults() {
|
||||||
|
if (listaPeriodiRisultato.length) {
|
||||||
|
for (var msid of listaPeriodiRisultato) {
|
||||||
|
loadPeriodo(msid)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (listaClausoleRisultato.length) {
|
||||||
|
for (var clsid of listaClausoleRisultato) {
|
||||||
|
let tmpid = clsid.split('-')
|
||||||
|
//loadFrase(tmpid[0], tmpid[1])
|
||||||
|
loadClausola(tmpid[0], tmpid[1], tmpid[2], tmpid[3])
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (listarisultati.length) {
|
||||||
|
//evidenzia risultati
|
||||||
|
for (var ris of listarisultati) {
|
||||||
|
var idris = '#' + ris
|
||||||
|
$(idris).addClass("font-weight-bold mark ")
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function createProemioSpan(idVerso, elementoverso, numberOfComments, spanid) {
|
function createProemioSpan(idVerso, elementoverso, numberOfComments, spanid) {
|
||||||
var spanoccorrenza = $('<span />')
|
var spanoccorrenza = $('<span />')
|
||||||
spanoccorrenza.attr('id', spanid + '_sp')
|
spanoccorrenza.attr('id', spanid + '_sp')
|
||||||
|
|
Loading…
Reference in New Issue