Commit ff427b73 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

configurable kwic width

parent 58761e15
......@@ -141,12 +141,13 @@ declare function fsearch:result-kwic($node as node(), $model as map(*)) {
let $hit := $model("hit")
let $expanded := kwic:expand($hit)
let $kwic-width := fconfig:module-get("faceted-search", "kwic-width", 40)
order by ft:score($hit) descending
for $i in 1 to xs:integer(fconfig:module-get("faceted-search", "kwic-hits"))
if(($expanded//exist:match)[$i]) then
kwic:get-summary($expanded, ($expanded//exist:match)[$i], <config width="40"/>)
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