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

Merge branch 'bugfix/#140-fictional-places' into 'develop'

Fixes bug in tei:line processing, adds fictional places (closes #140)

Closes #140

See merge request !66
parents 8d3a0eb9 f842e8e0
......@@ -218,12 +218,12 @@ $log as xs:string) as node()* {
or matches($node/@rendition, "roman")) then
fontaneSimple:make-seg-with-rendition($node, $uri, $log)
else if($node/following::*[1][self::tei:lb[@break = "no"]]
else if($node/following::*[1]/local-name() = "lb" and $node/following::*[1]/@break = "no"
and not($node/child::*[last()][self::tei:choice])) then
(simpleHelpers:start-line($node),
simpleHelpers:trim-last-char($node))
else if($node/preceding::*[1][self::tei:lb[@break = "no"]]
else if($node/preceding::*[1]/local-name() = "lb" and $node/preceding::*[1]/@break = "no"
and not($node/child::*[1][self::tei:choice])) then
(simpleHelpers:start-line($node),
simpleHelpers:trim-first-char($node))
......@@ -1199,11 +1199,11 @@ $index-type as xs:string) as element()* {
fontaneSimple:make-infos-about-work($ref, $index-type)
(: the index "wrk" not only encompasses works but
also fictional characters that occur in them. @part-of-id
denotes this relationship. to put the character into the
right place we also have to provide the whole informatiom
about the work. :)
else if(index-info:get-info-about($index-type, $ref, "type") = "person") then
also fictional characters or places that occur in
them. @part-of-id denotes this relationship. to put
the character into the right place we also have to
provide the whole information about the work. :)
else if(index-info:get-info-about($index-type, $ref, "type") = ("person", "place")) then
let $work-id :=
try {
index-info:get-info-about($index-type, $ref, "part-of-id")
......@@ -1217,6 +1217,7 @@ $index-type as xs:string) as element()* {
fontaneSimple:make-infos-about-work($work-id, $index-type),
fontaneSimple:make-infos-about-fictional-character($ref, $index-type, $work-name)
)
else
()
......
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