Commit 52844fb5 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

update to eXist-db 5.2.0

parent 3e44838e
......@@ -34,12 +34,12 @@ declare function fsearch:results($node as node(), $model as map(*)) as map()* {
return
map {
"facets" := fsearch:facets($model, $hits),
"hits" := subsequence($hitsordered,$start,$num),
"totalhits" := count($hits),
"start" := $start,
"page" := $page,
"pages" := $pages
"facets" : fsearch:facets($model, $hits),
"hits" : subsequence($hitsordered,$start,$num),
"totalhits" : count($hits),
"start" : $start,
"page" : $page,
"pages" : $pages
}
};
......@@ -170,7 +170,7 @@ declare function fsearch:facets($model as map(*), $hits) as map() {
};
declare function fsearch:list-facets($node as node(), $model as map(*)) as map(*){
map { "facetgroups" := $model("facet") }
map { "facetgroups" : $model("facet") }
};
declare
......
......@@ -274,7 +274,7 @@ element xhtml:div {
declare function mviewer:tei-paging($doc, $page as xs:integer) {
let $doc := if ($page > 0 and ($doc//tei:pb)[$page]) then
util:parse(util:get-fragment-between(($doc//tei:pb)[$page], ($doc//tei:pb)[$page+1], true(), true()))
parse-xml(util:get-fragment-between(($doc//tei:pb)[$page], ($doc//tei:pb)[$page+1], true(), true()))
(: Kann das funktionieren, wenn page als integer übergeben wird? müsste man nicht tei:pb/@n auswerten? :)
else
$doc
......
......@@ -18,7 +18,7 @@ function nav:navitems($node as node(), $model as map(*)) as map(*) {
doc( $confLocation)//navigation/*
else
$model("config")//module[string(@key)=$nav:module-key]//navigation/*
return map { "navitems" := $navitems }
return map { "navitems" : $navitems }
};
......
Markdown is supported
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