Commit 9cc685c6 authored by mrodzis's avatar mrodzis 🌿
Browse files

Merge branch 'bugfix/#111-sorting' into 'develop'

Fix bug in highlighted zone

Closes #111

See merge request !48
parents 276e7595 9c8fdbaf
...@@ -347,13 +347,7 @@ $log as xs:string) as node()* { ...@@ -347,13 +347,7 @@ $log as xs:string) as node()* {
fontaneSimple:transform($node/node(), $uri, $log) fontaneSimple:transform($node/node(), $uri, $log)
} }
else if($node/@type = "integration") then else if($node/@type = ("integration", "editorial-label")) then
element tei:seg {
$node/@*,
fontaneSimple:transform($node/node(), $uri, $log)
}
else if($node/@type = "editorial-label") then
element tei:seg { element tei:seg {
$node/@*, $node/@*,
fontaneSimple:transform($node/node(), $uri, $log) fontaneSimple:transform($node/node(), $uri, $log)
...@@ -497,6 +491,9 @@ $log as xs:string) as node()* { ...@@ -497,6 +491,9 @@ $log as xs:string) as node()* {
fontaneSimple:transform($node/node(), $uri, $log) fontaneSimple:transform($node/node(), $uri, $log)
else else
element tei:hi { element tei:hi {
$node/@xml:id,
$node/@prev,
$node/@next,
attribute type {"vertical-mark"}, attribute type {"vertical-mark"},
fontaneSimple:transform($node/node(), $uri, $log) fontaneSimple:transform($node/node(), $uri, $log)
} }
...@@ -834,6 +831,9 @@ $log as xs:string) as node()* { ...@@ -834,6 +831,9 @@ $log as xs:string) as node()* {
case element(tei:unclear) return case element(tei:unclear) return
fontaneSimple:copy-element($node, $uri, $log) fontaneSimple:copy-element($node, $uri, $log)
case element(tei:div) return
fontaneSimple:copy-element($node, $uri, $log)
default return default return
fontaneSimple:transform($node/node(), $uri, $log) fontaneSimple:transform($node/node(), $uri, $log)
}; };
......
...@@ -36,7 +36,7 @@ declare function tidySimple:main($tei as node()*, $uri as xs:string) { ...@@ -36,7 +36,7 @@ declare function tidySimple:main($tei as node()*, $uri as xs:string) {
=> tidySimple:sort-out-invalid-hands() => tidySimple:sort-out-invalid-hands()
=> tidySimple:split-headings() => tidySimple:split-headings()
=> tidySimple:summarize() => tidySimple:summarize()
=> tidySimple:summarize-hi() (: => tidySimple:summarize-hi():)
let $header := let $header :=
tidySimple:get-Fontanes-sources($tei//tei:teiHeader[parent::tei:TEI]) tidySimple:get-Fontanes-sources($tei//tei:teiHeader[parent::tei:TEI])
=> tidySimple:get-references-in-abstract() => tidySimple:get-references-in-abstract()
...@@ -478,9 +478,9 @@ declare function tidySimple:summarize($nodes as node()*) as node()* { ...@@ -478,9 +478,9 @@ declare function tidySimple:summarize($nodes as node()*) as node()* {
or normalize-space(.) = ""]) then or normalize-space(.) = ""]) then
() ()
else else
tidySimple:summarize-entries($node) tidySimple:copy-element($node, "summarize")
else else
tidySimple:summarize-entries($node) tidySimple:copy-element($node, "summarize")
case element(tei:rs) return case element(tei:rs) return
tidySimple:summarize-entries($node) tidySimple:summarize-entries($node)
...@@ -497,6 +497,7 @@ declare function tidySimple:summarize($nodes as node()*) as node()* { ...@@ -497,6 +497,7 @@ declare function tidySimple:summarize($nodes as node()*) as node()* {
case element(tei:seg) return case element(tei:seg) return
tidySimple:summarize-entries($node) tidySimple:summarize-entries($node)
default return default return
tidySimple:copy-element($node, "summarize") tidySimple:copy-element($node, "summarize")
}; };
......
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