Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
1f9eebe7
Commit
1f9eebe7
authored
Jun 07, 2019
by
Mathias Goebel
🎠
Browse files
proceedings
parent
3996e80d
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/misc.xqm
View file @
1f9eebe7
...
...
@@ -582,7 +582,7 @@ if(request:get-parameter-names() = 'page')
let $page := if($page = '') then 'outer_front_cover' else $page
let $indexFile := doc('/db/sade-projects/textgrid/data/xml/xhtml/' || $uri || "/toc.xml" )
let $pageList2 := $indexFile//@data-page/string()
let $index2 := index-of($pageList2, $page)
let $index2 :=
(
index-of($pageList2, $page)
)[1]
let $return :=
(
(
...
...
modules/fontane/transform.xqm
View file @
1f9eebe7
...
...
@@ -1127,7 +1127,7 @@ as element(xhtml:span)? {
element xhtml:span {
$ref/@xml:id ! attribute id { string(.) },
attribute class { 'ref' },
attribute data-ref {
substring-after
($ref/@target, '#') },
attribute data-ref {
replace
($ref/@target, '#'
, ''
) },
transfo:magic($ref/node()),
(: link :)
if( starts-with($ref/@target, '#xpath(//surface')
...
...
@@ -1265,7 +1265,7 @@ declare function transfo:stamp($node as element(tei:stamp))
as element(xhtml:div) {
element xhtml:div {
attribute class {'stamp'},
switch (
$node/
string(
.
))
switch (string(
$node
))
case 'FONTANE.'
return
<svg xmlns="http://www.w3.org/2000/svg" width="23mm" height="4mm" data-info="Stempel: FONTANE.">
...
...
@@ -1317,6 +1317,10 @@ as element(xhtml:div) {
return
<img src="/public/img/stempel-berlin-w.png" width="100%" height="100%"/>
case ""
return
<img class="polizei-berlin" src="public/img/stamp-polizeipraesidium-berlin.svg" width="100%" height="100%"/>
default return
<svg xmlns="http://www.w3.org/2000/svg" width="23mm" height="3.5mm">
<g alignment-baseline="baseline">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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