Commit eb271d38 authored by mrodzis's avatar mrodzis 🐸
Browse files

Remove URL parameter, fix #79

parent 093bdcfa
......@@ -14,7 +14,9 @@ as xs:string? {
$q
};
declare function fsearch:results($node as node(), $model as map(*)) as map()* {
declare
%templates:wrap
function fsearch:results($node as node(), $model as map(*)) as map()* {
let $page := xs:integer(request:get-parameter("page", "1"))
let $target := $config:app-root || "/" || config:get("project-id") || "/data"
let $hits := local:get-hits($model, $target)
......@@ -102,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 || "&q=" || fsearch:return-query($node, $model, $q)
let $link := config:get('viewer-html','faceted-search') || $docname
let $xslt := $config:app-root || "/" || config:get('result-xslt','faceted-search')
let $docpath := config:get("data-dir") || "/xml/data/" || $docname
......
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