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

add support for took_place_at

parent f8c74439
......@@ -720,6 +720,7 @@ else
let $idnos := $place/tei:idno
let $note := $place/tei:note
let $bibl := $place/tei:bibl
let $tookPlaceAt := $place/tei:linkGrp/tei:link[@corresp="http://erlangen-crm.org/current/P7_took_place_at"]
let $links := $place/tei:linkGrp/tei:link[@corresp="https://schema.org/mentions"]
return
element xhtml:li {
......@@ -770,6 +771,19 @@ else
else ())
}
},
(: events took place :)
for $l in $tookPlaceAt
let $id := $l/@target => substring-after("eve:") => substring-before(" ")
return
element xhtml:li {
attribute class { "took-place-at" },
element xhtml:a {
attribute href { "?e=" || $id },
<xhtml:i class="fa fa-bolt" aria-hidden="true"></xhtml:i>,
"&#160;",
$id
}
},
(: links :)
local:links($links),
local:li-code($place),
......
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