Строка 131: |
Строка 131: |
| local description = '' | | local description = '' |
| local origin = '' | | local origin = '' |
− | local lifetime = '' | + | local lifetime = '' -- comment: date |
| + | local lifetime_short = '' -- just date |
| local term_link = '' | | local term_link = '' |
| local ctd_title = '<span style="border-bottom: 1px dotted gray; cursor:help;" title="Большой теософский словарь">БТС</span>' | | local ctd_title = '<span style="border-bottom: 1px dotted gray; cursor:help;" title="Большой теософский словарь">БТС</span>' |
Строка 207: |
Строка 208: |
| lifetime = ' Время существования: '.. frame.args['lifetime'] | | lifetime = ' Время существования: '.. frame.args['lifetime'] |
| end | | end |
| + | lifetime_short = frame.args['lifetime'] |
| end | | end |
| if not isempty(frame.args['published']) then | | if not isempty(frame.args['published']) then |
| lifetime = ' Время публикации: '.. frame.args['published'] | | lifetime = ' Время публикации: '.. frame.args['published'] |
| + | lifetime_short = frame.args['published'] |
| end | | end |
| if not isempty(frame.args['lifetime']) | | if not isempty(frame.args['lifetime']) |
Строка 231: |
Строка 234: |
| term_to_show = term_to_show ..', '.. specification | | term_to_show = term_to_show ..', '.. specification |
| end | | end |
− | | + | |
− | -- considering type of view | + | -- considering TYPE of VIEW |
| if view == 'подсказка' or view == 'сноска и подсказка' or view == 'подсказка и сноска' then | | if view == 'подсказка' or view == 'сноска и подсказка' or view == 'подсказка и сноска' then |
− | text = '<span style="border-bottom: 1px dotted gray; cursor: help;" title="' .. description .. lifetime .. ' (БТС, ' .. term .. ').">' .. text .. '</span>' | + | local popup_str = description .. lifetime |
| + | if term_type == 'литература' then |
| + | popup_str = term_to_show ..', '.. lifetime |
| + | elseif term_type == 'литература с оригиналом' then |
| + | popup_str = term_to_show ..', '.. lifetime ..' '.. origin |
| + | end |
| + | text = '<span style="border-bottom: 1px dotted gray; cursor: help;" title="' .. popup_str .. ' (БТС, ' .. term .. ').">' .. text .. '</span>' |
| end | | end |
| | | |
Строка 253: |
Строка 262: |
| | | |
| if term_type == 'литература' then | | if term_type == 'литература' then |
− | comment = term_to_show .. origin | + | comment = term_to_show ..', '.. lifetime_short |
| + | elseif term_type == 'литература с оригиналом' then |
| + | comment = term_to_show ..', '.. lifetime_short ..' '.. origin |
| end | | end |
| | | |