[API-users] /species/suggest - higherClassificationMap question
trobertson at gbif.org
Fri Mar 11 18:33:53 UTC 2022
I am no guru or web developer but looking at the code  I think it is pulling out distinct the ranks in order from the suggest response . I see the code has this:
<span ng-repeat="taxa in ['kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species']"
ng-if="match.model[taxa] && taxa != match.model.rank.toLowerCase()">
Someone may correct me if I’m wrong, but since it’s the weekend here now it may be some time – I hope this helps for starters…
From: API-users <api-users-bounces at lists.gbif.org> on behalf of Szlamka József <szlajozs at gmail.com>
Date: Friday, 11 March 2022 at 18.44
To: api-users at lists.gbif.org <api-users at lists.gbif.org>
Subject: [API-users] /species/suggest - higherClassificationMap question
Hi API gurus,
I assume, the search box functionality in the species page of gbif homepage (e.g.: https://www.gbif.org/species/5298708) is based on "suggest". There each result contains the scientific name and the full taxonomic hierarchy e.g. "Iris pumila subsp. attica (Boiss. & Heldr.) K.Richt. Subspecies | Plantae > Tracheophyta > Liliopsida > Asparagales > Iridaceae > Iris > Iris pumila".
My question: how is the hierarchy implemented? Is it based on "higherClassificationMap"? How?
Is there any smart way to overcome this, or shall I hardcode the hierarchy manually?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the API-users