formatDisplayName
Renders a result title from its CMS long and short names.
Return
the verbatim long name, or "<longName> (<shortName>)" using the EXACT CMS values when a distinct short name is present.
Parameters
longName
the CMS long/display name; a null long name is treated as the empty string (defensive — must not crash).
shortName
the CMS short name; null/blank, or equal to longName when trimmed and compared case-insensitively, yields the long name verbatim with no parenthetical.