Skip to content

Commit b17690c

Browse files
committed
Merge pull request #56 from jensopetersen/master
output all hits in hit-list
2 parents a7433f7 + d5805c9 commit b17690c

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)