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>
{for $e in abv-m:lookups($subentries)
let $txt := $e/text()
let $id := if (name($e) = 'entry') then $e/@xml:id else $e/@corresp
return
if ($txt contains text {`{$filter}.*`} using wildcards at start) then
<li>
{
if (name($e) = 're') then
attribute class {'abv-menu-re'} else (),
<a href="#{$e/@xml:id}">
<a href="#{$id}">
{$e/text()}
</a>
}