Commit f367db6c authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

add information for alt facs

parent 4fb53d4a
......@@ -1012,10 +1012,25 @@ declare function fontaneTransfo:facs($node) {
}
}
else
element xhtml:img {
(element xhtml:img {
attribute class {('facs', string( ($node/@subtype)[1] ))},
attribute src {fontaneTransfo:digilib($node)}
}
},
if($node/tei:graphic[2])
then
for $graphic in $node/tei:graphic[position() gt 1]
let $tgUri := $graphic/substring-after(@url, "textgridrep.org/")
return
element xhtml:div {
attribute class {'alt-facs'},
element xhtml:a {
attribute data-src {fontaneTransfo:digilib($node) => replace("textgrid:.[a-z0-9]{4,5}", $tgUri)},
attribute data-href {"digilib/" || string($graphic/@n) || ".jpg?m2"},
attribute href {"#"},
text { "alternatives Abbild verfügbar" }
}
}
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