Institute names as labels for INSTCODE
This ticket is to use Institute names instead of INSTCODE
, or in addition to INSTCODE
: <code>{ code }</code> { name }
Filters
The accession filters should display user-friendly institute names:
We already have a decoder in ui-express/src/actions/decoder.ts
that takes care of partner names and we are taking care of country code > name.
Can we use the same approach for INSTCODE
?
Don't change the field label Institute code in the filter.
Overviews
We are already decoding institute.code3
to country names in the Overview:
Please use the same logic to convert INSTCODE
to <code>{ code }</code> { name }
.
Implementation
The decoder must not make 100s of requests (one for each institute). It is based on Redux and has to be implemented so that it collects the codes, then makes a single request to retrieve institute data for those codes and put the mappings to state.
Any other missing mappings need to be handled in a separate request, maybe a timeout-based approach will work best.
If a code can't be decoded, then just use INSTCODE
.