Commit 848c78b3 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

use hyperlinks via tei:ptr

parent 711c0bc1
......@@ -87,7 +87,8 @@ return
<span class="litvzLink"> <a href="literaturvz.html?id={$bid}"><i title="Link zu diesem Eintrag" class="fa fa-link"></i></a> </span>
{$b/choice/abbr}
<ul>
<li>{$b/choice/expan}</li>
<li>{$b/choice/expan/text()}</li>
{if($b/choice/expan/ptr) then <li><a href="{$b/choice/expan/ptr/string(@target)}">{$b/choice/expan/ptr/string(@target)}</a></li>}
{if($b/idno) then <li>{string($b/idno/@type)}: {$b/idno/text()||' '} <a target="_blank" href="{$b/idno/@xml:base||$b/idno/text()}"><i class="fa fa-external-link"></i></a></li> else ()}
{if($b/ptr) then <li>{switch(string($b/ptr/@type)) case 'fulltext' return 'Volltext ' default return string($b/ptr/@type)} <a target="_blank" href="{$b/ptr/@target}"><i class="fa fa-external-link"></i></a></li> else ()}
</ul>
......@@ -100,7 +101,8 @@ return
<li>
{$b//abbr}
<ul>
<li>{$b//expan}</li>
<li>{$b//expan//text()}</li>
{if($b/choice/expan/ptr) then <li><a href="{$b/choice/expan/ptr/string(@target)}">{$b/choice/expan/ptr/string(@target)}</a></li>}
{if($b//idno) then <li>{string($b//idno/@type)}: {$b//idno/text()||' '} <a target="_blank" href="{$b//idno/@xml:base||$b//idno/text()}"><i class="fa fa-external-link"></i></a></li> else ()}
{if($b//ptr) then <li>{string($b//ptr/@type)} <a target="_blank" href="{$b//ptr/@target}"><i class="fa fa-external-link"></i></a></li> else ()}
</ul>
......
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