Commit f1c03053 authored by sendler's avatar sendler 🐢
Browse files

add transformation for tei:geogName with more than one reference

parent 9e8cea84
......@@ -405,6 +405,7 @@ return
<span class="hi {string($node/@rend)}" rend="{string($node/@rend)}">{ local:magic($node/node()) }</span>
case element ( tei:supplied ) return
<span class="tei-add"><span class="tei-add-bracket">⟨</span>{string($node)}<span class="tei-add-bracket">⟩</span></span>
case element ( tei:placeName ) return
if (($node/@subtype) = 'rooms') then (
<span class="placeName">{local:magic($node/node())}</span>,
......@@ -421,11 +422,22 @@ return
<i class="fas fa-map-marker-alt"></i>
</a>
)
case element ( tei:geogName ) return
<a class="placeName" href="#" onclick="openPlaceName('{string($node/@ref)}')" textgridURI="{$node/@ref}">
<span class="placeName">{local:magic($node/node())}</span>
<i class="fas fa-map-marker-alt"></i>
</a>
let $refs := tokenize($node/@ref, " ")
return
if ( count($refs) gt 1 ) then (
<span class="placeName">{local:magic($node/node())}</span>,
for $ref in $refs return
<a class="placeName" href="#" onclick="openPlaceName('{$ref}')" textgridURI="{$ref}">
<i class="fas fa-map-marker-alt"></i>
</a>
) else
<a class="placeName" href="#" onclick="openPlaceName('{string($node/@ref)}')" textgridURI="{$node/@ref}">
<span class="placeName">{local:magic($node/node())}</span>
<i class="fas fa-map-marker-alt"></i>
</a>
case element ( tei:persName ) return
if (($node/@subtype) = 'persons') then (
<span class="persName">{local:magic($node/node())}</span>,
......
Supports Markdown
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