mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Update new analysis list construction
This commit is contained in:
		@@ -247,11 +247,12 @@ class JobList extends List {
 | 
			
		||||
 | 
			
		||||
class ResultList extends List {
 | 
			
		||||
 | 
			
		||||
  createResultRowElement(item) {
 | 
			
		||||
  createResultRowElement(item, chunk) {
 | 
			
		||||
    let values, cpos, matchRowElement, lcCellElement, lcTokenElement, token;
 | 
			
		||||
    // gather values from item
 | 
			
		||||
    values = item.values();
 | 
			
		||||
 | 
			
		||||
    console.log("CHONK");
 | 
			
		||||
    console.log(chunk);
 | 
			
		||||
    // get infos for full match row
 | 
			
		||||
    matchRowElement = document.createElement("tr");
 | 
			
		||||
    for (cpos of values["lc"]) {
 | 
			
		||||
@@ -261,10 +262,11 @@ class ResultList extends List {
 | 
			
		||||
      lcTokenElement.classList.add("token");
 | 
			
		||||
      lcTokenElement.dataset.cpos = cpos;
 | 
			
		||||
      token = chunk["cpos_lookup"][cpos];
 | 
			
		||||
      lcTokenElement = token["word"];
 | 
			
		||||
      console.log(lcTokenElement.outerHTML);
 | 
			
		||||
      lcTokenElement.innerText = token["word"];
 | 
			
		||||
      lcCellElement.appendChild(lcTokenElement);
 | 
			
		||||
      //   let hit_tokens = "";
 | 
			
		||||
    }
 | 
			
		||||
    matchRowElement.appendChild(lcCellElement);
 | 
			
		||||
    //   // get infos of match
 | 
			
		||||
    //   let textTitles = new Set();
 | 
			
		||||
    //   for (cpos of match["hit"]) {
 | 
			
		||||
@@ -305,7 +307,8 @@ class ResultList extends List {
 | 
			
		||||
    //   // matchRowElement.appendChild(rc_tokens);
 | 
			
		||||
    //   // matchRowElement.appendChild(index);
 | 
			
		||||
    // }
 | 
			
		||||
    // return matchRowElement
 | 
			
		||||
    console.log(matchRowElement.outerHTML);
 | 
			
		||||
    return matchRowElement
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user