Commit 6ced0c28 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

set alt pages in list when multiple alt-trigger can be used

parent 8029d937
......@@ -2065,6 +2065,18 @@ element xhtml:div {
</xhtml:li>,
(: surface without additionals :)
if(($surface/tei:surface/starts-with(@n, "Beilage_") = true())
and (($surface/tei:surface[@type="clipping"]/starts-with(@attachment, "partially_glued") = true())
or
(exists($surface/tei:surface[@type="pocket"]/tei:surface))
))
then
<xhtml:li data-page="{$surface/string(@n)}-alt">
<xhtml:a href="{$url}-alt">
{f-misc:n-translate($surface/string(@n))} (ohne Beilage, ohne Anklebung)
</xhtml:a>
</xhtml:li>
else
if ($surface/tei:surface/starts-with(@n, "Beilage_") = true())
then
<xhtml:li data-page="{$surface/string(@n)}-alt">
......@@ -2072,17 +2084,15 @@ element xhtml:div {
{f-misc:n-translate($surface/string(@n))} (ohne Beilage)
</xhtml:a>
</xhtml:li>
else (),
(: surface without additionals :)
if ($surface/tei:surface[@type="clipping"]/starts-with(@attachment, "partially_glued") = true())
else if ($surface/tei:surface[@type="clipping"]/starts-with(@attachment, "partially_glued") = true())
then
<xhtml:li data-page="{$surface/string(@n)}-alt">
<xhtml:a href="{$url}-alt">
{f-misc:n-translate($surface/string(@n))} (ohne Anklebung)
</xhtml:a>
</xhtml:li>
else (),
if (exists($surface/tei:surface[@type="pocket"]/tei:surface))
else if (exists($surface/tei:surface[@type="pocket"]/tei:surface))
then
<xhtml:li data-page="{$surface/string(@n)}-alt">
<xhtml:a href="{$url}-alt">
......@@ -2264,7 +2274,7 @@ declare function local:teiref2href($ref as xs:string) as xs:string {
case "lit" return $transfo:base-url || "literaturvz.html?id=" || $id
default return
let $listName := index:get-list-by-id($id)
return $transfo:base-url || "register.html?e=" || $id
return $transfo:base-url || "pocketregister.html?e=" || $id
};
declare function transfo:figure($node as node()*) {
......
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