Модуль:Сущность: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 141: | Строка 141: | ||
if displayLabel ~= "" or content ~= "" then | if displayLabel ~= "" or content ~= "" then | ||
merged.labelOverrides[compositeKey] = displayLabel | merged.labelOverrides[compositeKey] = displayLabel | ||
merged.contentByKey[compositeKey] = content | merged.contentByKey[compositeKey] = content | ||
if section ~= "Сущность" then | |||
if not merged.sectionsMap[section] then | |||
merged.sectionsMap[section] = true | |||
table.insert(merged.sections, section) | |||
end | |||
merged.labelSets[section] = merged.labelSets[section] or {} | |||
if not merged.labelSets[section][compositeKey] then | |||
merged.labelSets[section][compositeKey] = true | |||
local cur = merged.labelLists[section] or {} | |||
table.insert(cur, compositeKey) | |||
merged.labelLists[section] = cur | |||
end | |||
end | end | ||
end | end | ||