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