mplementazione ricerca sui dialoghi: test in progress
This commit is contained in:
parent
04c080757f
commit
3ff138362d
|
@ -2010,6 +2010,40 @@ $(document).ready(function() {
|
||||||
|
|
||||||
if (unitaRicerca == 'discorso' && listaclausole.length) {
|
if (unitaRicerca == 'discorso' && listaclausole.length) {
|
||||||
console.log('Dialoghi')
|
console.log('Dialoghi')
|
||||||
|
resultsInCantica = []
|
||||||
|
resultsInCanto = []
|
||||||
|
var tmplr=[]
|
||||||
|
for (ris of listarisultati){
|
||||||
|
for (const india in dialoghi) {
|
||||||
|
var tfr = parseInt(dialoghi[india]['Clfr'])
|
||||||
|
var tto = parseInt(dialoghi[india]['Clto'])
|
||||||
|
if(ris>=tfr && ris<=tto){
|
||||||
|
tmplr.push(ris)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
listarisultati=tmplr
|
||||||
|
for (var frase of listaclausole) {
|
||||||
|
var fraseItems = frase.split('-');
|
||||||
|
var testf=fraseItems[0].toString();
|
||||||
|
|
||||||
|
for (const india in dialoghi) {
|
||||||
|
var diaclass = dialoghi[india]['Cnt'].replace('_so', '')
|
||||||
|
if (testf==diaclass){
|
||||||
|
if (!resSent.has(fraseItems[0])) {
|
||||||
|
resSent.add(fraseItems[0]);
|
||||||
|
resultsInCantica.push(fraseItems[4]);
|
||||||
|
resultsInCanto.push(fraseItems[4] + fraseItems[5]);
|
||||||
|
|
||||||
|
}
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
listaClausoleRisultato = Array.from(resSent);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (listarisultati.length) {
|
if (listarisultati.length) {
|
||||||
|
|
4776
js/citazionijson.js
4776
js/citazionijson.js
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,8 @@
|
||||||
*/
|
*/
|
||||||
import {Runtime, Library, Inspector} from "https://hdnlab1.isti.cnr.it/d3search/node_modules/commarcdiag/runtime.js";
|
import {Runtime, Library, Inspector} from "https://hdnlab1.isti.cnr.it/d3search/node_modules/commarcdiag/runtime.js";
|
||||||
import commarc from "https://hdnlab1.isti.cnr.it/d3search/node_modules/commarcdiag/index.js";
|
import commarc from "https://hdnlab1.isti.cnr.it/d3search/node_modules/commarcdiag/index.js";
|
||||||
|
/*import {Runtime, Library, Inspector} from "https://lida.dantenetwork.it/node_modules/commarcdiag/runtime.js";
|
||||||
|
import commarc from "https://lida.dantenetwork.it/node_modules/commarcdiag/index.js";*/
|
||||||
|
|
||||||
const iframe = document.getElementsByClassName("minimap__content");
|
const iframe = document.getElementsByClassName("minimap__content");
|
||||||
const runtime1 = new Runtime(new Library(name => {
|
const runtime1 = new Runtime(new Library(name => {
|
||||||
|
|
|
@ -1111,8 +1111,8 @@ function getVersiConCitazioniJson(canticapar='', cantopar=''){
|
||||||
var commentsItem = {}
|
var commentsItem = {}
|
||||||
commentsItem['verso'] = citid;
|
commentsItem['verso'] = citid;
|
||||||
commentsItem['annotazione'] = item['Ann'];
|
commentsItem['annotazione'] = item['Ann'];
|
||||||
commentsItem['commentario'] = item['Commentario'];
|
commentsItem['commentario'] = item['Com'];
|
||||||
commentsItem['frammentoNota'] = item['FrammentoNota'];
|
commentsItem['frammentoNota'] = item['FrN'];
|
||||||
commentsItem['AutoreCitazione'] = item['AC'];
|
commentsItem['AutoreCitazione'] = item['AC'];
|
||||||
commentsItem['FonteCitazione'] = item['F'];
|
commentsItem['FonteCitazione'] = item['F'];
|
||||||
commentsItem['LuogoFonteCitazione'] = item['LF'];
|
commentsItem['LuogoFonteCitazione'] = item['LF'];
|
||||||
|
@ -1195,7 +1195,7 @@ function getVersiConCitazioniJson(canticapar='', cantopar=''){
|
||||||
return citazionitemp;
|
return citazionitemp;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getVersiConCitazioni(canticapar='', cantopar=''){
|
/*function getVersiConCitazioni(canticapar='', cantopar=''){
|
||||||
let citcantiche=['Inferno','Purgatorio','Paradiso']
|
let citcantiche=['Inferno','Purgatorio','Paradiso']
|
||||||
if (canticapar==''){
|
if (canticapar==''){
|
||||||
citazioni.map(function(item) {
|
citazioni.map(function(item) {
|
||||||
|
@ -1301,7 +1301,7 @@ function getVersiConCitazioni(canticapar='', cantopar=''){
|
||||||
|
|
||||||
})
|
})
|
||||||
return citazionitemp;
|
return citazionitemp;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
//TEMPORANEAMENTE: gestione del grafo quando viene chiusa la finestra dal bottone, dovebbe essere spostato
|
//TEMPORANEAMENTE: gestione del grafo quando viene chiusa la finestra dal bottone, dovebbe essere spostato
|
||||||
|
|
Loading…
Reference in New Issue