SearchDisplayNames

Single formatting authority for the short-name parenthetical DISPLAY rule.

Every search result that carries a CMS short name distinct from its long name renders as Long Name (Short Name), using the EXACT CMS values for both fields (no paraphrasing / no added adjectives — CMS field-name passthrough rule). When the short name is blank, or equal to the long name (trimmed, case-insensitive), ONLY the long name is shown — never an empty () suffix.

Every section that sets a result title — building rows, POI rows, and the combination cross-reference rows — routes its title through formatDisplayName so the parenthetical appears consistently and exactly once. Searching itself still matches on EITHER name (tested elsewhere); this is display-only.

Functions

Link copied to clipboard
fun formatDisplayName(longName: String?, shortName: String?): String

Renders a result title from its CMS long and short names.