Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
9e125f36
Commit
9e125f36
authored
Jun 16, 2018
by
Mathias Goebel
Browse files
add support for former_or_current_location
parent
d7f1d8dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/register.xqm
View file @
9e125f36
...
...
@@ -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>,
" ",
$id
}
},
(: links :)
local:links($links),
local:li-code($place),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment