Skip to content

Commit

Permalink
Preparing for processing of spanroles (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Oct 28, 2016
1 parent 98dc54f commit c96a264
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flat/style/flat.editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ function renderhigherorderfields(index, annotation) {
if (s_item) {
s += s_item;
ho_index++;
items.push(annotation.children[i]);
child = JSON.parse(JSON.stringify(annotation.children[i]); //deep copy, hence the json/parse stringify
child.targets_begin = JSON.parse(JSON.stringify(child.targets)); //there are two versions so we can compare if there was a change in span (deep copy again)
items.push(child);
}
}
}
Expand Down Expand Up @@ -1552,6 +1554,9 @@ function build_higherorder_queries(edititem, useclause) {
//edit of class and subset
queries.push(useclause + " EDIT " + edititem.children[j].type + " WHERE subset = \"" + escape_fql_value(edititem.children[j].subset) + "\" AND class = \"" + escape_fql_value(edititem.children[j].class) + "\" WITH subset \"" + escape_fql_value(edititem.children[j].subset) + "\" class \"" + escape_fql_value(edititem.children[j].class) + "\" FOR " + targetselector + " FORMAT flat RETURN ancestor-focus");
}
} else if ((folia_isspanrole(edititem.children[j].type)) {
//formulate query for span roles
//TODO
}
}
}
Expand Down

0 comments on commit c96a264

Please sign in to comment.