Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
f367db6c
Commit
f367db6c
authored
Aug 18, 2018
by
Mathias Goebel
Browse files
add information for alt facs
parent
4fb53d4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/transform.xqm
View file @
f367db6c
...
...
@@ -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 ())
}
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment