mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-13 09:30:40 +00:00
Fix
This commit is contained in:
@ -69,7 +69,7 @@ class CorpusAnalysisClient {
|
||||
this.socket.emit("pj_corpus_analysis_init", this.corpusId);
|
||||
}
|
||||
|
||||
sendQuery(queryStr) {
|
||||
query(queryStr) {
|
||||
let displayOptionsData;
|
||||
let resultListOptions;
|
||||
|
||||
|
@ -82,12 +82,14 @@ function activateInspect(progress) {
|
||||
}
|
||||
|
||||
//gets result cpos infos for one dataIndex to send back to the server
|
||||
function inspect(dataIndex, socket) {
|
||||
function inspect(dataIndex) {
|
||||
// This function should be in the AnalysisClient class as a method.
|
||||
console.log("Inspect!");
|
||||
console.log(results.resultsJSON.matches[dataIndex].c);
|
||||
contextModal.open();
|
||||
socket.emit("pj_inspect_match",
|
||||
{"payload": {"cpos": results.resultsJSON.matches[dataIndex].c} });
|
||||
nopaque.socket.emit("pj_corpus_analysis_inspect_match",
|
||||
{payload: {first_cpos: results.resultsJSON.matches[dataIndex].c[0],
|
||||
last_cpos: results.resultsJSON.matches[dataIndex].c[1]}});
|
||||
}
|
||||
|
||||
function showMatchContext(payload) {
|
||||
@ -254,4 +256,4 @@ function expertModeOff(tokenElements) {
|
||||
tokenElement.classList.remove("expert-view");
|
||||
tokenElement.outerHTML = tokenElement.outerHTML; // this is actually a workaround, but it works pretty fast
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user