Commit 7a4f8353 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

translate alt view

parent b68cdcf1
......@@ -30,6 +30,7 @@ import module namespace caret="http://fontane-nb.dariah.eu/Transfo/caret" at "tr
import module namespace code="http://bdn-edition.de/ns/code-view";
import module namespace config="http://textgrid.de/ns/SADE/config" at "../config/config.xqm";
import module namespace index="https://fontane-nb.dariah.eu/indexapi" at "index-api.xqm";
import module namespace f-misc="http://fontane-nb.dariah.eu/ns/SADE/misc" at "misc.xqm";
declare variable $transfo:tooltipReplacementPattern := '\s$|,$|\.|\($|\)$|;| ';
declare variable $transfo:bracket_left.svg := <svg
......@@ -2017,25 +2018,9 @@ element xhtml:div {
(: normal single surface :)
<xhtml:li data-page="{$n}">
<xhtml:a href="{$url}">{
if(contains($n, 'endpaper')) then
let $seq := tokenize($n, '_')
return
((switch($seq[1])
case "front" return 'vorderes'
case "back" return 'hinteres'
default return 'ungültiger Wert in @n')
|| ' Vorsatzblatt ' || $seq[last()])
else
switch ($n)
case "outer_front_cover" return "vordere Einbanddecke außen"
case "inner_front_cover" return "vordere Einbanddecke innen"
case "inner_back_cover" return "hintere Einbanddecke innen"
case "outer_back_cover" return "hintere Einbanddecke außen"
case "spine" return "Buchrücken"
default return $n
} {if($info = '') then () else
' (' || $info || ')'}
<xhtml:a href="{$url}">
{f-misc:n-translate($n)}
{if($info = '') then () else ' (' || $info || ')'}
</xhtml:a>
{if($childs = ()) then () else <xhtml:ul> {$childs} </xhtml:ul>}
</xhtml:li>,
......@@ -2045,7 +2030,7 @@ element xhtml:div {
then
<xhtml:li data-page="{$surface/string(@n)}-alt">
<xhtml:a href="{$url}-alt">
{$surface/string(@n)} (ohne Beilage)
{f-misc:n-translate($surface/string(@n))} (ohne Beilage)
</xhtml:a>
</xhtml:li>
else ())
......
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