File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -343,8 +343,8 @@ declare function query:get-facets($collection as node()*, $facet as xs:string) a
343
343
(: index-keys does not work with multiple whitespace separated keys
344
344
probably need to change to ft:query() someday?!
345
345
:)
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 ]
348
348
case 'authors' return $collection//tei:author/@key
349
349
case 'editors' return $collection//tei:editor/@key
350
350
case 'biblioType' return $collection/tei:biblStruct/@type
You can’t perform that action at this time.
0 commit comments