Fixes bug in tei:line processing, adds fictional places (cf. #140)
... | ... | @@ -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 | ||
() | ||
... | ... |