Skip to content

Commit 1bb2e80

Browse files
committed
check summaries for works and persons, too
Signed-off-by: Peter Stadler <[email protected]>
1 parent 99ccfba commit 1bb2e80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/query.xqm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ declare function query:get-facets($collection as node()*, $facet as xs:string) a
343343
(: index-keys does not work with multiple whitespace separated keys
344344
probably need to change to ft:query() someday?!
345345
:)
346-
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)
347-
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]
346+
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)
347+
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]
348348
case 'authors' return $collection//tei:author/@key
349349
case 'editors' return $collection//tei:editor/@key
350350
case 'biblioType' return $collection/tei:biblStruct/@type

0 commit comments

Comments
 (0)