un-fao / calipseo-shiny

Calipseo is FAO web- based platform for national Fisheries Authorities to streamline management of fisheries data and the production, analysis and reporting of fishery statistics.
1 stars 0 forks source link

[CALR-25] Vessel Details module - add catches sub tab 'Breakdown by species group' #25

Closed eblondel closed 6 months ago

eblondel commented 6 months ago

Issue migrated from JIRA: https://sdlc.review.fao.org/jira/browse/CALR-25 Creator/Reporter: Emmanuel Blondel @eblondel Assignee: Brian Ojok @brianandy Priority: Medium Status: Done Date of creation: 2021-11-25T11:12:45.000+0000

A new tab will added 'Breakdown by species group'. For linecharts, this work should be based on CALR-23 (work of building generic functions by [~alexandre.bennici@fao.org] to facilitate the implementation of linecharts).

For the general piechart (breakdown of catches by species groups for all years), [~alexandre.bennici@fao.org] may provide guidance on how species groups are inherited. FYI these groups are inherited for the ASFIS species classification that is a third party source (it's not retrieved from the database).

eblondel commented 6 months ago

Author: Alexandre Bennici @abennici Date of creation: 2021-12-03T13:49:00.164+0000 Last update: 2021-12-03T13:49:00.164+0000

Concerning the species groups, please have a look on this 2 lines you should add in your server part :

fish_group<-getRemoteReferenceDataset("asfis_enrished") fish_group<-subset(fish_group,select=c('3A_Code','ISSCAAP_Group_En'))

'3A_Code' correspnding to the 3 letters ASFIS code we have, 'ISSCAAP_Group_En' contain the species groups labels