Skip to content

Commit

Permalink
fix computation of external and internal facsimiles
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Stadler <stadlerpeter@yahoo.fr>
  • Loading branch information
peterstadler committed Feb 17, 2023
1 parent d74779e commit c9a50ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/facets.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ declare %private function facets:from-docType($collection as node()*, $facet as

declare %private function facets:facsimile($collection as node()*, $facet as xs:string, $lang as xs:string) as array(*) {
let $facsimiles := $collection ! query:facsimile(.)
let $external := $facsimiles[@sameAs]/root()
let $internal := $facsimiles[not(@sameAs)][tei:graphic]/root()
let $external := ($facsimiles[matches(@sameAs, '^http')] | $facsimiles[tei:graphic[matches(@sameAs, '^http')]])/root()
let $internal := $facsimiles[@sameAs or tei:graphic]/root() except $external
let $internalCount := count($internal)
let $externalCount := count($external)
let $noFacsCount := count($collection) - count($external | $internal)
Expand Down

0 comments on commit c9a50ff

Please sign in to comment.