Skip to content

Commit

Permalink
check summaries for works and persons, too
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Stadler <[email protected]>
  • Loading branch information
peterstadler committed Jan 26, 2024
1 parent 99ccfba commit 1bb2e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/query.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ declare function query:get-facets($collection as node()*, $facet as xs:string) a
(: index-keys does not work with multiple whitespace separated keys
probably need to change to ft:query() someday?!
:)
case 'persons' return ($collection//tei:persName[ancestor::tei:text or ancestor::tei:ab]/@key | $collection//tei:rs[@type='person'][ancestor::tei:text or ancestor::tei:ab]/@key)
case 'works' return $collection//tei:workName[ancestor::tei:text or ancestor::tei:ab]/@key[string-length(.) = 7] | $collection//tei:rs[@type='work'][ancestor::tei:text or ancestor::tei:ab]/@key[string-length(.) = 7]
case 'persons' return ($collection//tei:persName[ancestor::tei:text or ancestor::tei:ab or ancestor::tei:notesStmt]/@key | $collection//tei:rs[@type='person'][ancestor::tei:text or ancestor::tei:ab or ancestor::tei:notesStmt]/@key)
case 'works' return $collection//tei:workName[ancestor::tei:text or ancestor::tei:ab or ancestor::tei:notesStmt]/@key[string-length(.) = 7] | $collection//tei:rs[@type='work'][ancestor::tei:text or ancestor::tei:ab or ancestor::tei:notesStmt]/@key[string-length(.) = 7]
case 'authors' return $collection//tei:author/@key
case 'editors' return $collection//tei:editor/@key
case 'biblioType' return $collection/tei:biblStruct/@type
Expand Down

0 comments on commit 1bb2e80

Please sign in to comment.