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 ...@@ -460,7 +460,7 @@ declare function fontaneTransfo:surfaceDiv($node as node(), $inital as xs:string
}), }),
let $ids := $node//@xml:id, let $ids := $node//@xml:id,
$notes := $node/ancestor::tei:TEI//tei:note[@type="editorial"]/tokenize(replace(@target, "#", ""), " "), $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 return
if($test) then if($test) then
element xhtml:div { element xhtml:div {
...@@ -469,11 +469,13 @@ declare function fontaneTransfo:surfaceDiv($node as node(), $inital as xs:string ...@@ -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] for $i in $node/ancestor::tei:TEI//tei:note[@type="editorial"][tokenize(replace(@target, "#", ""), " ") = $ids]
return return
element xhtml:li { element xhtml:li {
attribute class {'editorialNote'},
fontaneTransfo:noteParser($i) fontaneTransfo:noteParser($i)
}, },
for $figDesc in $node//tei:figDesc[exists(./parent::tei:figure/@xml:id)] for $figDesc in $node//tei:figDesc[exists(./parent::tei:figure/@xml:id)]
return return
element xhtml:li { element xhtml:li {
attribute class {'editorialNote'},
element xhtml:span { element xhtml:span {
attribute class {"target kursiv"}, attribute class {"target kursiv"},
text {"<Skizze>]"}, text {"<Skizze>]"},
...@@ -1927,7 +1929,9 @@ declare function fontaneTransfo:noteParser($note as node()*) { ...@@ -1927,7 +1929,9 @@ declare function fontaneTransfo:noteParser($note as node()*) {
, " ") || "]" , " ") || "]"
}, },
element xhtml:ul { element xhtml:ul {
element xhtml:li {
fontaneTransfo:noteParser($node/node()) fontaneTransfo:noteParser($node/node())
}
}) })
case element( tei:bibl ) return case element( tei:bibl ) return
fontaneTransfo:noteParser($node/node()) 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