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>
|
<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>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue