Commit 2b646801 authored by mrodzis's avatar mrodzis 🐸
Browse files

Insert URL parameter again...

parent eb271d38
...@@ -104,7 +104,7 @@ declare function fsearch:result-xslt($node as node(), $model as map(*), $q as xs ...@@ -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 $docname := util:document-name($model("hit"))
let $id := substring-before($docname, ".") 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 $xslt := $config:app-root || "/" || config:get('result-xslt','faceted-search')
let $docpath := config:get("data-dir") || "/xml/data/" || $docname let $docpath := config:get("data-dir") || "/xml/data/" || $docname
...@@ -154,7 +154,11 @@ declare function fsearch:result-kwic($node as node(), $model as map(*)) { ...@@ -154,7 +154,11 @@ declare function fsearch:result-kwic($node as node(), $model as map(*)) {
if(($expanded//exist:match)[$i]) then if(($expanded//exist:match)[$i]) then
let $summary := kwic:get-summary($expanded, ($expanded//exist:match)[$i], <config width="{$kwic-width}"/>) let $summary := kwic:get-summary($expanded, ($expanded//exist:match)[$i], <config width="{$kwic-width}"/>)
return 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 () 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