Commit 7371d05c authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

enabled KWIC view

parent 74c2ed85
......@@ -139,13 +139,13 @@ declare function fsearch:result-kwic($node as node(), $model as map(*)) {
let $hit := $model("hit")
let $expanded := kwic:expand($hit)
let $kwic-width := config:get("faceted-search", "kwic-width")
let $kwic-width := config:get("kwic-width", "faceted-search")
order by ft:score($hit) descending
return
for $i in 1 to xs:integer(config:get("kwic-hits", "faceted-search"))
return
if(($expanded//exist:match)[$i]) then ()
(: kwic:get-summary($expanded, ($expanded//exist:match)[$i], <config width="{$kwic-width}"/>):)
if(($expanded//exist:match)[$i]) then
kwic:get-summary($expanded, ($expanded//exist:match)[$i], <config width="{$kwic-width}"/>)
else ()
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment