Skip to content

Commit

Permalink
bugfix: outline for olx:yes should reference the #stream
Browse files Browse the repository at this point in the history
  • Loading branch information
EfraimFeinstein committed Jul 3, 2016
1 parent 4d951e2 commit 1b4be97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opensiddur-server/src/api/data/outlines.xqm
Expand Up @@ -331,7 +331,9 @@ declare function outl:template(
return
if ($sub-item-uri)
then
<tei:ptr xml:id="ptr_{$n}" target="{$sub-item-uri}" />
let $target := (data:doc($sub-item-uri)//j:streamText/@xml:id/string(), "stream")[1]
return
<tei:ptr xml:id="ptr_{$n}" target="{$sub-item-uri}#{$target}" />
else
<tei:seg xml:id="seg_{$n}" n="outline:filler">{outl:get-outline-path($sub-item)}</tei:seg>
else (
Expand Down

0 comments on commit 1b4be97

Please sign in to comment.