[API-users] /species/suggest - higherClassificationMap question
Szlamka József
szlajozs at gmail.com
Fri Mar 11 23:03:29 UTC 2022
Hi Tim,
Many thanks for your answer. I didn't know that the portal code was
available at Github. Though I don't speak Angular, I could understand
the logic and created a similar solution in pure js. With your guidance
my problem is solved now.
Thanks again and have a nice weekend,
József
-----------------------------------------------------------------------
2022. 03. 11. 19:33 keltezéssel, Tim Robertson írta:
>
> Hi József
>
> I am no guru or web developer but looking at the code [1] I /think/ it
> is pulling out distinct the ranks in order from the suggest response
> [2]. 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()">
>
> {{match.model[taxa]}}
>
> </span>
>
> 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…
>
> Thanks,
>
> Tim
>
> [1]
> https://github.com/gbif/portal16/blob/80aa008dcd9442c47e6d9ee5894f4e19de4000d8/app/views/components/filterTaxon/suggestTaxonTemplate.html#L6
>
>
> [2]
> https://api.gbif.org/v1/species/suggest?datasetKey=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&limit=10&q=Iris%20pumila
> <https://api.gbif.org/v1/species/suggest?datasetKey=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&limit=10&q=Iris%20pumila>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20220312/17f20c4d/attachment-0001.html>
More information about the API-users
mailing list