fixed subentry display

This commit is contained in:
Oleg Belyaev 2025-03-30 00:25:25 +03:00
parent e635581228
commit 9109c93e6a

View file

@ -112,13 +112,14 @@ declare %rest:path("{$lang}/entrylist")
<ul> <ul>
{for $e in abv-m:lookups($subentries) {for $e in abv-m:lookups($subentries)
let $txt := $e/text() let $txt := $e/text()
let $id := if (name($e) = 'entry') then $e/@xml:id else $e/@corresp
return return
if ($txt contains text {`{$filter}.*`} using wildcards at start) then if ($txt contains text {`{$filter}.*`} using wildcards at start) then
<li> <li>
{ {
if (name($e) = 're') then if (name($e) = 're') then
attribute class {'abv-menu-re'} else (), attribute class {'abv-menu-re'} else (),
<a href="#{$e/@xml:id}"> <a href="#{$id}">
{$e/text()} {$e/text()}
</a> </a>
} }