Commit 9e125f36 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

add support for former_or_current_location

parent d7f1d8dd
......@@ -721,6 +721,7 @@ else
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 $formerCurrentLocation := $place/tei:linkGrp/tei:link[@corresp="http://erlangen-crm.org/current/P53_has_former_or_current_location"]
let $links := $place/tei:linkGrp/tei:link[@corresp="https://schema.org/mentions"]
return
element xhtml:li {
......@@ -773,7 +774,7 @@ else
},
(: events took place :)
for $l in $tookPlaceAt
let $id := $l/@target => substring-after("eve:") => substring-before(" ")
let $id := $l/@target => substring-after(":") => substring-before(" ")
return
element xhtml:li {
attribute class { "took-place-at" },
......@@ -784,6 +785,19 @@ else
$id
}
},
(: former_or_current_location :)
for $l in $formerCurrentLocation
let $id := $l/@target => substring-after(":") => substring-before(" ")
return
element xhtml:li {
attribute class { "former-or-current-location" },
element xhtml:a {
attribute href { "?e=" || $id },
<xhtml:i class="fa fa-map-marker" 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