Merge branch 'master' of https://gitea-s2i2s.isti.cnr.it/concordia/LiDa_Search.git
This commit is contained in:
commit
3cb7812436
|
@ -724,7 +724,7 @@
|
|||
<option value="verso">Versi</option>
|
||||
<option value="frase">Frasi</option>
|
||||
<option value="periodo">Periodi</option>
|
||||
<option value="discorso">Discorsi</option>
|
||||
<option value="discorso">Dialoghi</option>
|
||||
<option value="riferimento">Riferimenti</option>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -2056,7 +2056,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<div id="collapseClaxR1Rx" class="collapse"
|
||||
<div id="collapseClaxR1Rx" class="collapse noPrintB"
|
||||
aria-labelledby="headingC1" data-parent="#sortableRif0"
|
||||
style="">
|
||||
<div
|
||||
|
|
|
@ -101,25 +101,25 @@ $(document).ready(function() {
|
|||
loadFrasi();
|
||||
break;
|
||||
case "visPeriodi|false":
|
||||
$("#vistaFrasi").css("display", "none");
|
||||
//$("#vistaFrasi").css("display", "none");
|
||||
resetFrasi()
|
||||
manageResults()
|
||||
vistaPeriodi = false
|
||||
break;
|
||||
case "visRiferimenti|true":
|
||||
vistaRiferimenti = true
|
||||
initCitazioni()
|
||||
/*initCitazioni()
|
||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
$(this).css("display", "inline-block");
|
||||
})
|
||||
//$(" .showcomments").css("display", "inline-block");
|
||||
minim.contents().find(" .showcomments").each(function() {
|
||||
$(this).css('display', 'inline-block');
|
||||
})
|
||||
|
||||
})*/
|
||||
setCitazioni(true)
|
||||
break;
|
||||
case "visRiferimenti|false":
|
||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
/*$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
$(this).css("display", "none");
|
||||
})
|
||||
//$(".showcomments").css("display", "none");
|
||||
|
@ -127,7 +127,8 @@ $(document).ready(function() {
|
|||
$(this).css('display', 'none');
|
||||
})
|
||||
$('#displaynote').empty()
|
||||
$('#displaynote').append($(emptyNoteList))
|
||||
$('#displaynote').append($(emptyNoteList))*/
|
||||
setCitazioni(false)
|
||||
vistaRiferimenti = false
|
||||
break;
|
||||
case "visDialoghi|true":
|
||||
|
@ -149,7 +150,7 @@ $(document).ready(function() {
|
|||
|
||||
|
||||
$("#visAiuto").click(function(){
|
||||
window.open("./manuale/manualeGui.html","_blank");
|
||||
window.open("./Manuale/manualeGUI.html","_blank");
|
||||
})
|
||||
|
||||
|
||||
|
@ -592,13 +593,13 @@ $(document).ready(function() {
|
|||
|
||||
showingComments = false;
|
||||
|
||||
if (telive.length > 0) {
|
||||
/*if (telive.length > 0) {
|
||||
initCitazioni()
|
||||
} else {
|
||||
if (vistaRiferimenti) {
|
||||
initCitazioni();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
var parcid = cid.split('_')
|
||||
var numeroCantica;
|
||||
var forma;
|
||||
|
@ -619,7 +620,14 @@ $(document).ready(function() {
|
|||
showCanto(forma, numeroCantica, parcid[1])
|
||||
loadedCanti.add(cid)
|
||||
}
|
||||
|
||||
|
||||
setCitazioni(vistaRiferimenti)
|
||||
|
||||
if (telive.length > 0) {
|
||||
initCitazioni()
|
||||
}
|
||||
|
||||
|
||||
|
||||
for (var tel of telive) {
|
||||
var telId = tel.split("_");
|
||||
|
@ -637,11 +645,17 @@ $(document).ready(function() {
|
|||
//console.log("#" + $(this).attr('name').replace(" ", "_"))
|
||||
if (vistaPeriodi) {
|
||||
loadFrasi();
|
||||
}else{
|
||||
resetFrasi()
|
||||
}
|
||||
|
||||
if (vistaDialoghi) {
|
||||
loadDialoghi();
|
||||
}else{
|
||||
resetDialoghi()
|
||||
}
|
||||
|
||||
|
||||
|
||||
addFormaListenersInCanto();
|
||||
|
||||
//se si sta arrivando al canto da un link della lista risultati
|
||||
|
@ -859,6 +873,28 @@ $(document).ready(function() {
|
|||
}
|
||||
emphResults()
|
||||
}
|
||||
function setCitazioni(citeon){
|
||||
if (citeon){
|
||||
initCitazioni()
|
||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
$(this).css("display", "inline-block");
|
||||
})
|
||||
minim.contents().find(" .showcomments").each(function() {
|
||||
$(this).css('display', 'inline-block');
|
||||
})
|
||||
}
|
||||
else{
|
||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
$(this).css("display", "none");
|
||||
})
|
||||
minim.contents().find(" .showcomments").each(function() {
|
||||
$(this).css('display', 'none');
|
||||
})
|
||||
$('#displaynote').empty()
|
||||
$('#displaynote').append($(emptyNoteList))
|
||||
}
|
||||
|
||||
}
|
||||
function loadFrasi() {
|
||||
var stp
|
||||
$(cantoDisplayed).find(' .sentencetag').each(function() {
|
||||
|
|
|
@ -6,7 +6,8 @@ import { getJsonQuery, emptyStructCard, setCurrentPage, managePage, emptyNoteLis
|
|||
import { resetGraphStr } from './syntgraph_5.2.js'
|
||||
|
||||
|
||||
export var manageRisultatoCommmenti
|
||||
export var manageRisultatoCommmenti;
|
||||
export var showRiferimentiFrasi;
|
||||
export var resetResult;
|
||||
export var lsentid;
|
||||
export var lisid;
|
||||
|
@ -101,25 +102,25 @@ $(document).ready(function() {
|
|||
loadFrasi();
|
||||
break;
|
||||
case "visPeriodi|false":
|
||||
$("#vistaFrasi").css("display", "none");
|
||||
//$("#vistaFrasi").css("display", "none");
|
||||
resetFrasi()
|
||||
manageResults()
|
||||
vistaPeriodi = false
|
||||
break;
|
||||
case "visRiferimenti|true":
|
||||
vistaRiferimenti = true
|
||||
initCitazioni()
|
||||
/*initCitazioni()
|
||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
$(this).css("display", "inline-block");
|
||||
})
|
||||
//$(" .showcomments").css("display", "inline-block");
|
||||
minim.contents().find(" .showcomments").each(function() {
|
||||
$(this).css('display', 'inline-block');
|
||||
})
|
||||
|
||||
})*/
|
||||
setCitazioni(true)
|
||||
break;
|
||||
case "visRiferimenti|false":
|
||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
/*$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
$(this).css("display", "none");
|
||||
})
|
||||
//$(".showcomments").css("display", "none");
|
||||
|
@ -127,7 +128,8 @@ $(document).ready(function() {
|
|||
$(this).css('display', 'none');
|
||||
})
|
||||
$('#displaynote').empty()
|
||||
$('#displaynote').append($(emptyNoteList))
|
||||
$('#displaynote').append($(emptyNoteList))*/
|
||||
setCitazioni(false)
|
||||
vistaRiferimenti = false
|
||||
break;
|
||||
case "visDialoghi|true":
|
||||
|
@ -306,6 +308,7 @@ $(document).ready(function() {
|
|||
}
|
||||
|
||||
//listarisultati.sort(function(a, b){return a - b});
|
||||
$("#vistaFrasi").empty();
|
||||
showFrasi(start, offset)
|
||||
|
||||
if (vistaPeriodi) {
|
||||
|
@ -588,13 +591,13 @@ $(document).ready(function() {
|
|||
|
||||
showingComments = false;
|
||||
|
||||
if (telive.length > 0) {
|
||||
/*if (telive.length > 0) {
|
||||
initCitazioni()
|
||||
} else {
|
||||
if (vistaRiferimenti) {
|
||||
initCitazioni();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
var parcid = cid.split('_')
|
||||
var numeroCantica;
|
||||
var forma;
|
||||
|
@ -616,6 +619,11 @@ $(document).ready(function() {
|
|||
loadedCanti.add(cid)
|
||||
}
|
||||
|
||||
setCitazioni(vistaRiferimenti)
|
||||
|
||||
if (telive.length > 0) {
|
||||
initCitazioni()
|
||||
}
|
||||
|
||||
for (var tel of telive) {
|
||||
var telId = tel.split("_");
|
||||
|
@ -855,6 +863,30 @@ $(document).ready(function() {
|
|||
}
|
||||
emphResults()
|
||||
}
|
||||
|
||||
function setCitazioni(citeon) {
|
||||
if (citeon) {
|
||||
initCitazioni()
|
||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
$(this).css("display", "inline-block");
|
||||
})
|
||||
minim.contents().find(" .showcomments").each(function() {
|
||||
$(this).css('display', 'inline-block');
|
||||
})
|
||||
}
|
||||
else {
|
||||
$(cantoDisplayed).find(" .showcomments").each(function() {
|
||||
$(this).css("display", "none");
|
||||
})
|
||||
minim.contents().find(" .showcomments").each(function() {
|
||||
$(this).css('display', 'none');
|
||||
})
|
||||
$('#displaynote').empty()
|
||||
$('#displaynote').append($(emptyNoteList))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function loadFrasi() {
|
||||
var stp
|
||||
$(cantoDisplayed).find(' .sentencetag').each(function() {
|
||||
|
@ -1856,6 +1888,7 @@ $(document).ready(function() {
|
|||
numeroContesti = uniq_res.length;;
|
||||
setCurrentPage(0);
|
||||
managePage();
|
||||
$("#printRisultati").prop("disabled", false);
|
||||
//$("#loader").fadeOut(300);
|
||||
//$("#cantica0").trigger("click");
|
||||
|
||||
|
@ -1891,16 +1924,14 @@ $(document).ready(function() {
|
|||
$('#displaynote').append($(emptyNoteList))
|
||||
}
|
||||
|
||||
manageRisultatoCommmenti = function(start, offset = showOffset, whereToDisplay = "#vistaFrasi") {
|
||||
var commentoRisultato = [];
|
||||
manageRisultatoCommmenti = function(start, offset = showOffset) {
|
||||
var verso;
|
||||
var numeroRisultato = 0;
|
||||
elencoRiferimenti = $("#vistaFrasi");
|
||||
elencoRiferimenti.empty();
|
||||
$("#displaynote").empty();
|
||||
$('#displaynote').append($(emptyNoteList));
|
||||
|
||||
$(".filterRiferimentiOn").css('display', 'none');
|
||||
$(".filterRiferimentiOn").css('display', 'none');
|
||||
$(".filterRiferimentiOff").css('display', 'none');
|
||||
|
||||
if (cantoDisplayed != '#vistaFrasi') {
|
||||
|
@ -1911,6 +1942,20 @@ $(document).ready(function() {
|
|||
cantoDisplayed = "#vistaFrasi";
|
||||
}
|
||||
|
||||
/*var tmpresu=getRisultatiRiferimenti()
|
||||
commentsSQL = Object.groupBy(tmpresu, ({ VersoCitazione }) => VersoCitazione);*/
|
||||
showRiferimentiFrasi(start, offset, "#vistaFrasi");
|
||||
|
||||
drawMinimap('#vistaFrasi', false)
|
||||
showingComments = true;
|
||||
addFormaListenersInCanto()
|
||||
return verso;
|
||||
}
|
||||
|
||||
showRiferimentiFrasi = function(start, offset = showOffset, whereToDisplay = "#vistaFrasi") {
|
||||
var elencoRiferimenti = $(whereToDisplay);
|
||||
var commentoRisultato = [];
|
||||
var numeroRisultato = 0;
|
||||
var uniq_res = [...new Set(listaRisultatiCommenti)];
|
||||
var risLen = uniq_res.length;
|
||||
var risultato = ''
|
||||
|
@ -2028,14 +2073,10 @@ $(document).ready(function() {
|
|||
createCommentSpan(aidCommento, myverso, 1, flagRisultato)
|
||||
}
|
||||
}
|
||||
/*var tmpresu=getRisultatiRiferimenti()
|
||||
commentsSQL = Object.groupBy(tmpresu, ({ VersoCitazione }) => VersoCitazione);*/
|
||||
drawMinimap('#vistaFrasi', false)
|
||||
showingComments = true;
|
||||
addFormaListenersInCanto()
|
||||
return verso;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function executeLocalSearch(testo, forme, limit, cantica, cont, resultsInCantica, resultsInCanto) {
|
||||
|
||||
for (var ip = 0; ip <= limit; ip++) {
|
||||
|
@ -2089,9 +2130,9 @@ $(document).ready(function() {
|
|||
var ultimaFormaCanto;
|
||||
let numeroPeriodo = 1;
|
||||
showingComments = false;
|
||||
let startindex=800*(parseInt(canto)-1)
|
||||
let reformecantica=formecantica.slice(startindex)
|
||||
|
||||
let startindex = 800 * (parseInt(canto) - 1)
|
||||
let reformecantica = formecantica.slice(startindex)
|
||||
|
||||
//formecantica.map(function(item) {
|
||||
reformecantica.map(function(item) {
|
||||
formaItem = item.split("_");
|
||||
|
@ -2165,6 +2206,7 @@ $(document).ready(function() {
|
|||
|
||||
}
|
||||
|
||||
|
||||
function manageResults() {
|
||||
if (listaPeriodiRisultato.length) {
|
||||
for (var msid of listaPeriodiRisultato) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
|
||||
|
||||
import {numeroContesti, resetResult, isSearchRiferimenti, manageRisultatoCommmenti, showFrasi, listarisultati} from './browseMgr_5.2.js'
|
||||
import {numeroContesti, resetResult, isSearchRiferimenti, manageRisultatoCommmenti, showRiferimentiFrasi, showFrasi, listarisultati} from './browseMgr_5.2.js'
|
||||
import { resetGraphStr } from './syntgraph_5.2.js';
|
||||
|
||||
export var getJsonQuery;
|
||||
|
@ -804,10 +804,8 @@ $(document).ready(function() {
|
|||
var content = "";
|
||||
var result = 0;
|
||||
switch (el2pr) {
|
||||
case "cantoCorrente": //0: OK
|
||||
case "cantoCorrente":
|
||||
element = $('.canto[style*="display: d-flex"]')
|
||||
//element = $('#displaycanto')[0];
|
||||
//cantoContent = $(element);
|
||||
content = $(element).clone();
|
||||
if (needSeparator > 0){
|
||||
//insert separator
|
||||
|
@ -815,7 +813,7 @@ $(document).ready(function() {
|
|||
$('body '+div2print).append(content);
|
||||
result = 1;
|
||||
break;
|
||||
case "riferimentiCorrenti": //1: OK
|
||||
case "riferimentiCorrenti":
|
||||
if ($("#noteCard0").length) {
|
||||
console.log("Nessuna commento visualizzato");
|
||||
} else {
|
||||
|
@ -841,7 +839,7 @@ $(document).ready(function() {
|
|||
result = 1;
|
||||
};
|
||||
break;
|
||||
case "periodoCorrente": //2: OK
|
||||
case "periodoCorrente":
|
||||
if ($('#structGroupCard0').css('display') == 'none') {
|
||||
console.log("Nessuna struttura visualizzata");
|
||||
} else {
|
||||
|
@ -854,30 +852,25 @@ $(document).ready(function() {
|
|||
result = 1;
|
||||
};
|
||||
break;
|
||||
case "rigaRicerca": //3: OK
|
||||
case "rigaRicerca":
|
||||
if (queryJson.QueryAvanzata == 1) {
|
||||
console.log("Stampa query avanzata");
|
||||
element = $('#rigaRicerca')[0].innerHTML;
|
||||
} else {
|
||||
console.log("Stampa query semplice");
|
||||
element = $('#rigaRicercaSemplice')[0].innerHTML;
|
||||
};
|
||||
content = $(element).clone();
|
||||
$(content).find('.noPrintA').remove()
|
||||
$(content).find('.noPrintB').removeClass('show')
|
||||
console.log($(content).find('.noPrintA'));
|
||||
if (needSeparator > 0){
|
||||
//insert separator
|
||||
};
|
||||
$('body '+div2print).append(content);
|
||||
console.log($(div2print).find(".tab-pane"));
|
||||
result = 1;
|
||||
break;
|
||||
case "risultatiGramm": //4: OK
|
||||
case "risultatiRif": //5:
|
||||
case "risultatiGramm":
|
||||
case "risultatiRif":
|
||||
if (listarisultati.length) {
|
||||
// ricerca sintattico-grammaticale
|
||||
console.log("Stampa ricerca sintattico-grammaticale");
|
||||
if (needSeparator > 0){
|
||||
//insert separator
|
||||
}
|
||||
|
@ -885,11 +878,11 @@ $(document).ready(function() {
|
|||
result = 1;
|
||||
} else {
|
||||
if (isSearchRiferimenti) {
|
||||
// ricerca riferimenti
|
||||
if (needSeparator > 0){
|
||||
//insert separator
|
||||
};
|
||||
// ricerca riferimenti
|
||||
console.log("Stampa ricerca riferimenti");
|
||||
showRiferimentiFrasi(1, numeroContesti, div2print)
|
||||
result = 1;
|
||||
} else {
|
||||
console.log("Nessun risultato visualizzato");
|
||||
|
|
Loading…
Reference in New Issue