Skip to content

Use now_taxon in antweb exporter - #1513

Open
LordFlashmeow wants to merge 1 commit into
calacademy-research:masterfrom
LordFlashmeow:fix-antweb-export-valid-name
Open

Use now_taxon in antweb exporter#1513
LordFlashmeow wants to merge 1 commit into
calacademy-research:masterfrom
LordFlashmeow:fix-antweb-export-valid-name

Conversation

@LordFlashmeow

@LordFlashmeow LordFlashmeow commented Nov 29, 2023

Copy link
Copy Markdown
Contributor

Taxon.current_taxon doesn't always refer to the valid name, like for an obsolete combination of a synonym.

AntWeb expects the DwC interpretation of current valid name, not the current usage of the protonym (for non-terminal taxa).

return unless (current_valid_name_name = taxon.now_taxon&.name&.name)
"#{taxonomic_attributes[:subfamily]} #{current_valid_name_name}"
end

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn.lockyarn.lock

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn.lock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants