Commit de8bbb7b authored by Michelle Rodzis's avatar Michelle Rodzis Committed by mrodzis
Browse files

Fix bug in covers

parent 097f9e87
......@@ -277,7 +277,9 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
case element(tei:surface) return
if(matches($node/@n, "cover")) then
fontaneSimple:make-pb-with-type($node/@n)
(fontaneSimple:make-pb-with-type($node/@n),
fontaneSimple:transform($node/node()))
else if(simpleHelpers:is-page($node)
and $node/@type = "clipping") then
(fontaneSimple:make-pb($node),
......@@ -286,14 +288,17 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
fontaneSimple:transform($node/node())
else
()))
else if(simpleHelpers:is-page($node)) then
(fontaneSimple:make-pb($node),
fontaneSimple:transform($node/node()))
else if($node/@type = "label" and
(contains($node/@subtype, "Fontane")
or contains($node/@subtype, "Hersteller"))
) then
fontaneSimple:make-div($node)
else
()
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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