{{#if has_vernacularNames}}
{{#if use_vernacularNames}} {{else}} {{/if}}
{{/if}}
{{#if use_vernacularNames}} {{#each vernacularNames }} {{/each}} {{ else }} {{#each search_index.taxonLatname }} {{/each}} {{/if}}
{{#if use_vernacularNames}} {{#each vernacularNames }} {{#with this as | taxonProfile |}}

{{ @key }}

{{#each taxonProfile}}
{{/each}}
{{/with}} {{/each}} {{ else }} {{#each search_index.taxonLatname }} {{#with this as | taxonProfile |}}

{{@key}}

{{#each taxonProfile}} {{#if isSynonym}} {{else}}
{{/if}} {{/each}}
{{/with}} {{/each}} {{/if}}