Commit 9e8cea84 authored by sendler's avatar sendler 🐢
Browse files

add transformation for tei:rs with more than one reference

parent c4025d25
......@@ -448,11 +448,22 @@ return
<i class="fas fa-user"></i>
</a>
)
case element ( tei:rs ) return
<a class="ArtWork" href="#" onclick="openArtWork('{string($node/@ref)}')" textgridURI="{$node/@ref}" type="{string($node/@type)}">
<span class="ArtWork">{local:magic($node/node())}</span>
<i class="far fa-gem"></i>
</a>
let $refs := tokenize($node/@ref, " ")
return
if ( count($refs) gt 1 ) then
(<span class="ArtWork">{local:magic($node/node())}</span>,
for $ref in $refs return
<a class="ArtWork" href="#" onclick="openArtWork('{$ref}')" textgridURI="{$ref}" type="{string($node/@type)}">
<i class="far fa-gem"></i>
</a>)
else
<a class="ArtWork" href="#" onclick="openArtWork('{$refs}')" textgridURI="{$node/@ref}" type="{string($node/@type)}">
<span class="ArtWork">{local:magic($node/node())}</span>
<i class="far fa-gem"></i>
</a>
case element ( tei:del ) return
<span class="del"><strike>{string($node)}</strike></span>
case element ( tei:unclear ) return
......
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