Commit 5f40e059 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

support for complete notebook in @target and minor formatting

parent 5de000db
......@@ -119,10 +119,18 @@ let $tei := doc($docpath)//tei:teiHeader,
let $litVZ := doc('/db/sade-projects/textgrid/data/xml/data/25547.xml')/tei:TEI
let $page := substring-after($link/@target, "_") => substring-before("_")
return
if(starts-with($link/@target, "http://textgridrep.org/"))
then
<xhtml:li>
<xhtml:a href="literaturvz.html?id={$target}">{ $litVZ//bibl[@xml:id = $target]//abbr/text() => replace("\.$", "")}</xhtml:a>;
{if($link/@resp) then (' vgl. ', <xhtml:a href="literaturvz.html?id={substring-after($link/@resp, ':')}">{$litVZ//bibl[@xml:id = substring-after($link/@resp, ':')]//abbr/text()}</xhtml:a>, '.') else ()}
</xhtml:li>
else
<xhtml:li>
<xhtml:a href="literaturvz.html?id={$target}">{ $litVZ//bibl[@xml:id = $target]//expan/text() => replace("\.$", "")}</xhtml:a>;
<xhtml:a href="literaturvz.html?id={$target}">{ $litVZ//bibl[@xml:id = $target]//abbr/text() => replace("\.$", "")}</xhtml:a>;
<xhtml:a href="edition.html?id={request:get-parameter("id", "")}&amp;page={$page}&amp;target={substring-before($link/@target, " ") => substring-after("#")}">Blatt {$page}</xhtml:a>.
{if($link/@resp) then (' [Vgl. ', <xhtml:a href="literaturvz.html?id={substring-after($link/@resp, ':')}">{$litVZ//bibl[@xml:id = substring-after($link/@resp, ':')]//abbr/text()}</xhtml:a>, '.]') else ()}</xhtml:li>
{if($link/@resp) then (' [Vgl. ', <xhtml:a href="literaturvz.html?id={substring-after($link/@resp, ':')}">{$litVZ//bibl[@xml:id = substring-after($link/@resp, ':')]//abbr/text()}</xhtml:a>, '.]') else ()}
</xhtml:li>
} </ul></li>}</ul>
case 6
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