diff --git a/static/abaev-html.css b/static/abaev-html.css index c116b5d..aca839b 100644 --- a/static/abaev-html.css +++ b/static/abaev-html.css @@ -535,3 +535,10 @@ span.abv-text-sc { This file evolved from Natural Selection: https://github.com/frontaid/natural-selection */ + +.icons{ + text-align: center; + width: 1.5em; + float: left; + padding-right: 0.5vw; +} diff --git a/xq/restx_dict_cached.xq b/xq/restx_dict_cached.xq index 4d736b8..3061ec0 100644 --- a/xq/restx_dict_cached.xq +++ b/xq/restx_dict_cached.xq @@ -521,14 +521,23 @@ declare %rest:path("{$lang}/dict") let $html := if ($xpath != '' and $entry = $doc/@xml:id) then abv-m:mark-element(doc(`abaevdict_{$lang}/xml/{$doc/@xml:id}.xml`),$xpath) => abv-m:make-html($lang) else doc(`abaevdict_{$lang}/html/{$doc/@xml:id}.html`) - return if (doc('abaevdict_index/mentioned_en.xml')/ - 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 - into ./article[1]/h6[1]} - else $html + return ( + (: Block with icons to the left of entry (floating) :) +
+ { + + + + + + , + if (doc('abaevdict_index/mentioned_en.xml')/lang-index + /lang[@id != 'os' and + not(starts-with(@id,'os-'))]/word/entry[@id=string($doc/@xml:id)]) + then + + }
, + $html) }