fixed some map stuff

This commit is contained in:
Oleg Belyaev 2025-03-21 22:57:14 +03:00
parent e46fa3c036
commit a8c0ea875c
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,7 @@ $( document ).ready(function() {
function bindMapOpen() {
// $('#modal_map').data('abv-entry',$(this).data('abv-entry'));
// $('#modal_map')[0].showModal();
let url = `../dict/map-info/${$(this).data('abv-entry')}`;
let url = `./dict/map-info/${$(this).data('abv-entry')}`;
fetch(url)
.then(res => res.json())

View file

@ -352,7 +352,8 @@ declare %rest:path("{$lang}/dict")
where $i > ($p - 1) * $page:items and $i <= $p * $page:items
let $html := doc(`abaevdict_{$lang}/html/{$doc/@xml:id}.html`)
return if (doc('abaevdict_index/mentioned_en.xml')/
lang-index/lang/word/entry[@id=string($doc/@xml:id)]) then
lang-index/lang[@id != 'os' and
not(starts-with(@id,'os-'))]/word/entry[@id=string($doc/@xml:id)]) then
$html transform with {insert nodes (<br/>,
<a class="abv-map" data-abv-entry="{$doc/@xml:id}">
<img src="/static/map.png"></img></a>) as last