Commit 0b269a0b authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

add lit-prefixed links to abstract

parent 64e350e1
......@@ -264,7 +264,24 @@ let $tei := doc($docpath)//tei:teiHeader,
return
<div class="container">
{ for $ab in $tei//abstract/ab
return <xhtml:p class="intro">{ $ab/node() }</xhtml:p>
return
<xhtml:p class="intro">{
for $node in $ab/node()
return
typeswitch ( $node )
case element( tei:bibl ) return
let $target := $node/tei:ptr/@target => substring-after("lit:")
let $bibl := collection("/db/sade-projects")//@xml:id[.=$target]/parent::node()
let $citRange := $node/tei:citedRange/text()
return
(<xhtml:a href="literaturvz.html?id={$target}">{ $bibl//tei:abbr/text() }</xhtml:a>,
if( $citRange ) then " "||$citRange else ()
)
default return
$node
}</xhtml:p>
}
{if(doc-available($docpath)) then
<table class="table table-hover">
......
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