Модуль:Сущность: различия между версиями

мНет описания правки
мНет описания правки
Строка 141: Строка 141:


                 if displayLabel ~= "" or content ~= "" then
                 if displayLabel ~= "" or content ~= "" then
                    if not merged.sectionsMap[section] then
                        merged.sectionsMap[section] = true
                        table.insert(merged.sections, section)
                    end
                     merged.labelOverrides[compositeKey] = displayLabel
                     merged.labelOverrides[compositeKey] = displayLabel
                     merged.contentByKey[compositeKey] = content
                     merged.contentByKey[compositeKey] = content
 
                    if section ~= "Сущность" then
                    merged.labelSets[section] = merged.labelSets[section] or {}
                        if not merged.sectionsMap[section] then
                    if not merged.labelSets[section][compositeKey] then
                            merged.sectionsMap[section] = true
                        merged.labelSets[section][compositeKey] = true
                            table.insert(merged.sections, section)
                        local cur = merged.labelLists[section] or {}
                        end
                        table.insert(cur, compositeKey)
                        merged.labelSets[section] = merged.labelSets[section] or {}
                        merged.labelLists[section] = cur
                        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