forked from abaevdict/abaev-basex
fixed subentry display
This commit is contained in:
parent
e635581228
commit
9109c93e6a
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue