Commit 3a0d8b71 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

add name of parent place to list

parent 64c5f0db
......@@ -111,7 +111,13 @@ return
element xhtml:a {
attribute href { $href },
attribute target { "_blank" },
$name
$name,
if(($group = "plc") and $index/ancestor::tei:place)
then element xhtml:span {
attribute class { "nestedPlaces" },
" (" || string($index/ancestor::tei:place[1]/*[1]) || ")"
}
else ()
}
}
}
......@@ -167,11 +173,11 @@ return
case "place" return "listPlace"
case "person" return
if($entity/ancestor::tei:item)
then index:get-list-by-node($entity/ancestor::tei:item[@xml:id][1])
then true()
else "listPerson"
case "personGrp" return
if($entity/ancestor::tei:item)
then index:get-list-by-node($entity/ancestor::tei:item[@xml:id][1])
then index:get-list-by-id( ($entity/ancestor::tei:item)[last()]/string(@xml:id) )
else "listPerson"
default return
let $list := $entity/ancestor::tei:list[@type]
......@@ -191,7 +197,7 @@ as xs:string {
else "listPerson"
case "personGrp" return
if($node/ancestor::tei:item)
then index:get-list-by-node($node/ancestor::tei:item[@xml:id][1])
then index:get-list-by-node( ($node/ancestor::tei:item[@xml:id])[1] )
else "listPerson"
default return
let $list := $node/ancestor::tei:list[@type]
......
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