Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SADE
SADE
Commits
ff427b73
Commit
ff427b73
authored
May 03, 2017
by
Ubbo Veentjer
Browse files
configurable kwic width
parent
58761e15
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/faceted-search/faceted-search.xqm
View file @
ff427b73
...
...
@@ -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
return
for $i in 1 to xs:integer(fconfig:module-get("faceted-search", "kwic-hits"))
return
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 ()
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment