Commit b3dc68c5 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

fix issue with work lists rendered together with all other lists

parent b13c83c6
......@@ -118,20 +118,18 @@ return
declare function f-indexviewer:main($model as map()*, $node as node(), $index as xs:string) {
if ($f-indexproc:notebookParam)
then
if(starts-with($index, "list-"))
then f-indexproc:register($index)/*/xhtml:div[@id=$index]
else f-indexproc:register($index)
then
f-indexproc:register($index)[./@id = $index]
else
let $doc := doc( local:cache() )
return
if ($f-indexproc:getEntity)
then
let $id := generate-id($doc//xhtml:li[@id = $f-indexproc:getEntity])
return
local:transform-entity($doc/xhtml:div/xhtml:div[@id = $index], $id)
else
$doc/*/xhtml:div[@id = $index]
let $doc := doc( local:cache() )
return
if ($f-indexproc:getEntity)
then
let $id := generate-id($doc//xhtml:li[@id = $f-indexproc:getEntity])
return
local:transform-entity($doc/xhtml:div/xhtml:div[@id = $index], $id)
else
$doc/*/xhtml:div[@id = $index]
};
declare function f-indexviewer:tabs($nodes as node(), $model as map(*), $index as xs:string) {
......
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