Commit ce10143f authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

notes included

parent 3b5918bb
......@@ -498,25 +498,9 @@ declare function fontaneTransfo:surfaceDiv($node as node(), $inital as xs:string
(: attribute id { $node/string(@n) },:)
fontaneTransfo:facs($node),
(: if($node/string(@type) = ("clipping", "additional")):)
if(false())
then
element xhtml:div { attribute class {"surface"}, attribute style {"height:0;"},
element xhtml:div {
fontaneTransfo:surface($node),
fontaneTransfo:magic($node/node()[local-name() != "surface"])
}
}
else
element xhtml:div {
fontaneTransfo:surface($node),
fontaneTransfo:magic($node/node()[not(local-name() = "surface")]),
fontaneTransfo:magic($node/node()[
if(local-name() = "surface")
then if( matches($node/@n, "\d+r$") and matches(./@n, "\d+r\wr"))
then true()
else false()
else false()]
)
fontaneTransfo:magic($node/node())
},
element xhtml:div {
attribute class {'teixml'},
......@@ -547,7 +531,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
$test := (($ids = $notes) and string($node/@n) = $inital)
return
if($test) then
element xhtml:div {
......@@ -565,7 +549,13 @@ declare function fontaneTransfo:surfaceDiv($node as node(), $inital as xs:string
)};
declare function fontaneTransfo:surface($n) {
attribute class {'surface', (if($n/@type) then (' tei'||$n/@type) else ''), string($n/@subtype), if( string($n/@subtype)="Kalenderblatt") then if(ends-with($n/@n, 'v')) then 'verso' else 'recto' else ()},
attribute class {
'surface',
(if($n/@type) then (' tei'||$n/@type) else ''),
string($n/@subtype),
if( string($n/@subtype)="Kalenderblatt") then if(ends-with($n/@n, 'v')) then 'verso' else 'recto' else (),
if( $n/parent::tei:surface ) then "nested" else ()
},
(: dont call it a label (bootstrap) :)
(if($n/@n) then attribute id {$n/@n} else()),
attribute style {
......@@ -1063,16 +1053,11 @@ declare function fontaneTransfo:facs($node) {
element xhtml:div {
attribute class {'facs'},
(:
: removed
: attribute style { :)
(: if ( ($node/parent::tei:sourceDoc and :)
(: $node/@n != 'spine' and:)
(: sum($node//text()[preceding::tei:handShift[@new][1]/@new='#Fontane'][matches(., '.[a-zA-Z0-9]')]/string-length() ) lt 1 ):)
(: and not( max($node//tei:*/@uly) gt 2.1 ):)
(: (: if you like to edit here, please edit the surface height the same way! :):)
(: ) then 'max-height: 3cm;' else():)
(: },:)
if($node/parent::tei:sourceDoc) then () else
attribute style {
"width:"|| number($node/@lrx) - number($node/@ulx) ||"cm;",
"height:"|| number($node/@lry) - number($node/@uly) ||"cm;"
},
element xhtml:a {
attribute href { 'digilib/'||( string($node/tei:graphic[1]/@n) || '.jpg')||'?m2' },
attribute target {'_blank'},
......
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