mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
56315c4e33
@ -164,11 +164,12 @@ JobList.DEFAULT_OPTIONS = {
|
|||||||
|
|
||||||
class ResultList extends List {
|
class ResultList extends List {
|
||||||
|
|
||||||
createResultRowElement(item) {
|
createResultRowElement(item, chunk) {
|
||||||
let values, cpos, matchRowElement, lcCellElement, lcTokenElement, token;
|
let values, cpos, matchRowElement, lcCellElement, lcTokenElement, token;
|
||||||
// gather values from item
|
// gather values from item
|
||||||
values = item.values();
|
values = item.values();
|
||||||
|
console.log("CHONK");
|
||||||
|
console.log(chunk);
|
||||||
// get infos for full match row
|
// get infos for full match row
|
||||||
matchRowElement = document.createElement("tr");
|
matchRowElement = document.createElement("tr");
|
||||||
for (cpos of values["lc"]) {
|
for (cpos of values["lc"]) {
|
||||||
@ -178,10 +179,11 @@ class ResultList extends List {
|
|||||||
lcTokenElement.classList.add("token");
|
lcTokenElement.classList.add("token");
|
||||||
lcTokenElement.dataset.cpos = cpos;
|
lcTokenElement.dataset.cpos = cpos;
|
||||||
token = chunk["cpos_lookup"][cpos];
|
token = chunk["cpos_lookup"][cpos];
|
||||||
lcTokenElement = token["word"];
|
lcTokenElement.innerText = token["word"];
|
||||||
console.log(lcTokenElement.outerHTML);
|
lcCellElement.appendChild(lcTokenElement);
|
||||||
// let hit_tokens = "";
|
// let hit_tokens = "";
|
||||||
}
|
}
|
||||||
|
matchRowElement.appendChild(lcCellElement);
|
||||||
// // get infos of match
|
// // get infos of match
|
||||||
// let textTitles = new Set();
|
// let textTitles = new Set();
|
||||||
// for (cpos of match["hit"]) {
|
// for (cpos of match["hit"]) {
|
||||||
@ -222,6 +224,7 @@ class ResultList extends List {
|
|||||||
// // matchRowElement.appendChild(rc_tokens);
|
// // matchRowElement.appendChild(rc_tokens);
|
||||||
// // matchRowElement.appendChild(index);
|
// // matchRowElement.appendChild(index);
|
||||||
// }
|
// }
|
||||||
// return matchRowElement
|
console.log(matchRowElement.outerHTML);
|
||||||
|
return matchRowElement
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -382,7 +382,7 @@
|
|||||||
}
|
}
|
||||||
resultList.add(resultItems, items => {
|
resultList.add(resultItems, items => {
|
||||||
for (let item of items) {
|
for (let item of items) {
|
||||||
item.elm = resultList.createResultRowElement(item);}
|
item.elm = resultList.createResultRowElement(item, chunk);}
|
||||||
});
|
});
|
||||||
resultList.update();
|
resultList.update();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user