Skip to content

Commit d5805c9

Browse files
committed
output all hits in hit-list
not just the first hit in the search context
1 parent a7433f7 commit d5805c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/search.xql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ as element()* {
5353
let $matches := kwic:get-matches($hit)
5454
for $ancestor in ($matches/ancestor::para | $matches/ancestor::title | $matches/ancestor::td |
5555
$matches/ancestor::note[not(para)])
56+
for $match in $ancestor//exist:match
5657
return
57-
kwic:get-summary($ancestor, ($ancestor//exist:match)[1], $config)
58+
kwic:get-summary($ancestor, $match, $config)
5859
};
5960

6061
(:~

0 commit comments

Comments
 (0)