Generates a CITEREF anchor ID if we have at least one name or a date. Otherwise returns an empty string.