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