From a8c0ea875c8887ccbb89879f9183d5fa595e1fe3 Mon Sep 17 00:00:00 2001 From: Oleg Belyaev Date: Fri, 21 Mar 2025 22:57:14 +0300 Subject: [PATCH] fixed some map stuff --- static/abaev.js | 2 +- xq/restx_dict_cached.xq | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/abaev.js b/static/abaev.js index d5bd642..ce2d301 100644 --- a/static/abaev.js +++ b/static/abaev.js @@ -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()) diff --git a/xq/restx_dict_cached.xq b/xq/restx_dict_cached.xq index 8cd8fde..c78fc9b 100644 --- a/xq/restx_dict_cached.xq +++ b/xq/restx_dict_cached.xq @@ -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 (
, ) as last