Commit 9043698b authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

test for notes on sketches

parent 567ac16b
......@@ -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())
......
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