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

set @xhtml:title for places when the hierarchy exeeds two items

parent b0e371fb
......@@ -103,11 +103,13 @@ return
let $name := string($index/*[1])
let $list := index:get-list-by-id($ref)
let $href := "register.html?e=" || $ref
let $attributeTitle := if($group = "plc" and count($index/ancestor::tei:place) gt 1) then "in: " || string-join(reverse($index/ancestor::tei:place/tei:placeName), ", ") else ()
order by $name
return
element xhtml:li {
attribute data-ref { $entity },
attribute class { $index/local-name() },
$attributeTitle ! attribute title {$attributeTitle},
element xhtml:a {
attribute href { $href },
attribute target { "_blank" },
......
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