Skip to content

Commit

Permalink
Fix for #32
Browse files Browse the repository at this point in the history
  • Loading branch information
nikobeer committed Jun 4, 2024
1 parent 35d62fd commit 3d331d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion add/data/xql/getAnnotation.xql
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ let $docUri := substring-before($uri, '#')
let $internalId := substring-after($uri, '#')
let $doc := doc($docUri)
let $annot := $doc/id($internalId)
let $workID := substring-before(functx:substring-after-last($docUri, '/'), '.xml')

let $participants := annotation:getParticipants($annot)

Expand All @@ -353,7 +354,7 @@ let $sourcesLabel := if ($lang = 'de')
then (if(count($sources) gt 1)then('Quellen')else('Quelle'))
else(if(count($sources) gt 1)then('Sources')else('Source'))

let $sigla := source:getSiglaAsArray($participants)
let $sigla := source:getSiglaAsArray($participants, $workID)
let $siglaLabel := if ($lang = 'de')
then (if(count($sigla) gt 1)then('Siglen')else('Siglum'))
else(if(count($sigla) gt 1)then('Sources')else('Source'))
Expand Down

0 comments on commit 3d331d4

Please sign in to comment.