@jlpereira/taxonpages-panel-gbif-taxon-page
v0.0.1
Published
A TaxonPages panel that links to its GBIF taxon page for a given taxon
Readme
PanelGBIF
A TaxonPages panel that links a taxon to its GBIF taxon page. It resolves the taxon's GBIF usage key through the GBIF species-match API and renders a direct link to the matching record.
Panel ID: panel:gbif
Installation
Via npm
npm install @jlpereira/taxonpages-panel-gbifManual
Copy the PanelGBIF/ folder into your project's panels/ directory:
panels/
PanelGBIF/Usage
Add the panel to your config/taxa_page.yml:
taxa_page:
overview:
panels:
- - - panel:gbifHow it works
Name matching — Sends the taxon's
expanded_nametohttps://api.gbif.org/v1/species/matchand reads theusageKeyfrom the response.Link composition — When a
usageKeyis returned, the panel renders a card pointing tohttps://www.gbif.org/species/{usageKey}, with the taxon'sfull_name_tagas the link label and the GBIF logo as the card header.Visibility — The card is hidden entirely when GBIF does not return a
usageKeyfor the taxon.
Project structure
PanelGBIF/
├── main.js # Panel entry point and registration
└── PanelGBIF.vue # Main panel component