Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SADE
SADE
Commits
2b646801
Commit
2b646801
authored
Feb 08, 2019
by
mrodzis
💪
Browse files
Insert URL parameter again...
parent
eb271d38
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/faceted-search.xqm
View file @
2b646801
...
...
@@ -104,7 +104,7 @@ declare function fsearch:result-xslt($node as node(), $model as map(*), $q as xs
let $docname := util:document-name($model("hit"))
let $id := substring-before($docname, ".")
let $link := config:get('viewer-html','faceted-search') || $docname
let $link := config:get('viewer-html','faceted-search') || $docname
|| "&q=" || $q
let $xslt := $config:app-root || "/" || config:get('result-xslt','faceted-search')
let $docpath := config:get("data-dir") || "/xml/data/" || $docname
...
...
@@ -154,7 +154,11 @@ declare function fsearch:result-kwic($node as node(), $model as map(*)) {
if(($expanded//exist:match)[$i]) then
let $summary := kwic:get-summary($expanded, ($expanded//exist:match)[$i], <config width="{$kwic-width}"/>)
return
<p class="kwic"><span class="kwic-prev">{$summary/span[@class="previous"]/node()}</span> <span class="kwic-hit">{$summary/span[@class="hi"]/node()}</span> <span>{$summary/span[@class="following"]/node()}</span></p>
<p class="kwic">
<span class="kwic-prev">{$summary/span[@class="previous"]/node()}</span>
<span class="kwic-hit">{$summary/span[@class="hi"]/node()}</span>
<span>{$summary/span[@class="following"]/node()}</span>
</p>
else ()
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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