Изменения

Перейти к навигации Перейти к поиску
м
Нет описания правки
Строка 132: Строка 132:  
local description = ''
 
local description = ''
 
local origin = ''
 
local origin = ''
local lifetime = '' -- date with title
+
local lifetime_str = '' -- date with title
local lifetime_short = ''   -- just date
+
local lifetime = '' -- 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>'
Строка 213: Строка 213:  
if not isempty(frame.args['lifetime']) then
 
if not isempty(frame.args['lifetime']) then
 
if term_type == 'личность' then
 
if term_type == 'личность' then
lifetime = ' Время жизни: '.. frame.args['lifetime']
+
lifetime_str = ' Время жизни: '.. frame.args['lifetime']
 
elseif term_type == 'выражение' then
 
elseif term_type == 'выражение' then
lifetime = ' Время применения: '.. frame.args['lifetime']
+
lifetime_str = ' Время применения: '.. frame.args['lifetime']
 
else
 
else
lifetime = ' Время существования: '.. frame.args['lifetime']
+
lifetime_str = ' Время существования: '.. frame.args['lifetime']
 
end
 
end
lifetime_short = frame.args['lifetime']
+
lifetime = frame.args['lifetime']
 
end
 
end
 
if not isempty(frame.args['published']) then
 
if not isempty(frame.args['published']) then
lifetime = ' Время публикации: '.. frame.args['published']
+
lifetime_str = ' Время публикации: '.. frame.args['published']
lifetime_short = frame.args['published']
+
lifetime = frame.args['published']
 
end
 
end
 
if    not isempty(frame.args['lifetime'])  
 
if    not isempty(frame.args['lifetime'])  
 
  or not isempty(frame.args['published']) then
 
  or not isempty(frame.args['published']) then
lifetime = lifetime .. '.'
+
lifetime_str = lifetime_str .. '.'
 
end
 
end
 
 
Строка 245: Строка 245:  
term_without_link = frame.args['author'] ..', «'.. term_without_link ..'»'
 
term_without_link = frame.args['author'] ..', «'.. term_without_link ..'»'
 
end
 
end
-- add publishing date
+
-- add publishing date for a literature and lifetime for a person
if term_type == 'литература' then
+
if term_type == 'литература' or term_type == 'личность' then
term_without_link = term_without_link ..', '.. lifetime_short
+
term_without_link = term_without_link ..', '.. lifetime
 
end
 
end
 
-- add volume, chapter, page and so on
 
-- add volume, chapter, page and so on
Строка 258: Строка 258:  
if view_popup then
 
if view_popup then
 
if term_type == 'литература' or term_type == 'личность' then
 
if term_type == 'литература' or term_type == 'личность' then
output_str = term_without_link ..', '.. lifetime_short
+
output_str = term_without_link
 
else -- для 'понятие' и 'выражение'
 
else -- для 'понятие' и 'выражение'
 
output_str = description
 
output_str = description

Навигация