Commit d7c88cee authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

Overview: species

parent b27b4f25
......@@ -212,8 +212,7 @@
"cropName": "Crop",
"sampStat": "Biological status of accession",
"taxonomy genus": "Genus",
"taxonomy species": "Species",
"taxonomy genusSpecies": "Genus species",
"taxonomy genusSpecies": "Species",
"countryOfOrigin code3": "Country of Origin",
"donorCode": "FAO WIEWS code of donor institute",
"mlsStatus": "Available for distribution under the MLS",
......
......@@ -64,7 +64,7 @@ class BrowsePage extends React.Component<IOverviewPageProps, any> {
public render() {
const { paged, currentTab, applyOverviewFilters, overview, t } = this.props;
const overviewKeys = ['institute.code', 'institute.country.code3', 'cropName', 'crop.shortName', 'sampStat', 'taxonomy.genus', 'taxonomy.genusSpecies', 'taxonomy.species',
const overviewKeys = ['institute.code', 'institute.country.code3', 'cropName', 'crop.shortName', 'sampStat', 'taxonomy.genus', 'taxonomy.genusSpecies',
'countryOfOrigin.code3', 'donorCode', 'mlsStatus', 'available', 'duplSite', 'sgsv', 'storage', 'breederCode'];
const overviewsTerms = new Map();
......@@ -128,9 +128,6 @@ class BrowsePage extends React.Component<IOverviewPageProps, any> {
{ overviewsTerms && overviewsTerms.get('taxonomy.genusSpecies') && overviewsTerms.get('taxonomy.genusSpecies').length > 2 &&
<PropertiesCard propertiesList={ overviewsTerms.get('taxonomy.genusSpecies').map((term) => ({title: term.term, value: term.count })) } title={ t(`accession.overview.taxonomy genusSpecies`) } small/>
}
{ overviewsTerms && overviewsTerms.get('taxonomy.species') && overviewsTerms.get('taxonomy.species').length > 2 &&
<PropertiesCard propertiesList={ overviewsTerms.get('taxonomy.species').map((term) => ({title: term.term, value: term.count })) } title={ t(`accession.overview.taxonomy species`) } small/>
}
{ overviewsTerms && overviewsTerms.get('countryOfOrigin.code3') && overviewsTerms.get('countryOfOrigin.code3').length > 2 &&
<PropertiesCard propertiesList={ overviewsTerms.get('countryOfOrigin.code3').map((term) => ({title: term.term, value: term.count })) } title={ t(`accession.overview.countryOfOrigin code3`) } small/>
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment