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
9043698b
Commit
9043698b
authored
Sep 07, 2018
by
Mathias Goebel
Browse files
test for notes on sketches
parent
567ac16b
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/transform.xqm
View file @
9043698b
...
...
@@ -460,7 +460,7 @@ declare function fontaneTransfo:surfaceDiv($node as node(), $inital as xs:string
}),
let $ids := $node//@xml:id,
$notes := $node/ancestor::tei:TEI//tei:note[@type="editorial"]/tokenize(replace(@target, "#", ""), " "),
$test := (($ids = $notes) and string($node/@n) = $inital)
$test := (($ids = $notes) and string($node/@n) = $inital)
or $node//tei:figDesc[exists(./parent::tei:figure/@xml:id)]
return
if($test) then
element xhtml:div {
...
...
@@ -469,11 +469,13 @@ declare function fontaneTransfo:surfaceDiv($node as node(), $inital as xs:string
for $i in $node/ancestor::tei:TEI//tei:note[@type="editorial"][tokenize(replace(@target, "#", ""), " ") = $ids]
return
element xhtml:li {
attribute class {'editorialNote'},
fontaneTransfo:noteParser($i)
},
for $figDesc in $node//tei:figDesc[exists(./parent::tei:figure/@xml:id)]
return
element xhtml:li {
attribute class {'editorialNote'},
element xhtml:span {
attribute class {"target kursiv"},
text {"<Skizze>]"},
...
...
@@ -1927,7 +1929,9 @@ declare function fontaneTransfo:noteParser($note as node()*) {
, " ") || "]"
},
element xhtml:ul {
element xhtml:li {
fontaneTransfo:noteParser($node/node())
}
})
case element( tei:bibl ) return
fontaneTransfo:noteParser($node/node())
...
...
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