Commit ab2d9ab7 authored by Matija Obreza's avatar Matija Obreza
Browse files

Cleanup


Signed-off-by: Matija Obreza's avatarMatija Obreza <matija.obreza@croptrust.org>
parent 7d374366
......@@ -119,7 +119,7 @@
"f": {
"NOT": "Excluding {{what}}",
"accessions": {
"crops": "Crop name",
"crop": "Crop",
"acceNumb": "Accession number",
"seqNo": "Sequential number",
"sampStat": "Biological status",
......@@ -191,7 +191,12 @@
"available": {
"true": "Available for distribution",
"false": "Not available for distribution",
"null": "Availability not known"
"null": "Availability not provided"
},
"mlsStatus": {
"true": "Accession is part of the Multi-lateral system of ITPGRFA",
"false": "Not declared in the Multi-lateral system of ITPGRFA ",
"null": "Status not provided"
},
"coll": {
"collCode": "Collecting institute code",
......@@ -254,7 +259,7 @@
"taxonomy genusSpecies": "Species",
"countryOfOrigin code3": "Country of Origin",
"donorCode": "FAO WIEWS code of donor institute",
"mlsStatus": "Available for distribution under the MLS",
"mlsStatus": "ITGPRFA Multi-lateral system",
"available": "Available for distribution",
"duplSite": "Site of safety duplication",
"breederCode": "Breeder code",
......
......@@ -142,7 +142,7 @@ class BrowsePage extends React.Component<IBrowsePageProps, any> {
)) }
</PropertiesItem> }
<PropertiesItem title="Availability for distribution" keepEmpty>{ t(`accession.available.${accession.available}`) }</PropertiesItem>
<PropertiesItem title="Availability for distribution under the MLS" keepEmpty>{ t(`accession.available.${accession.mlsStatus}`) }</PropertiesItem>
<PropertiesItem title="ITPGRFA MLS" keepEmpty>{ t(`accession.mlsStatus.${accession.mlsStatus}`) }</PropertiesItem>
<PropertiesItem title="Donor institute">{ accession.donorCode }</PropertiesItem>
<PropertiesItem title="Donor accession number">{ accession.donorNumb }</PropertiesItem>
......@@ -169,12 +169,13 @@ class BrowsePage extends React.Component<IBrowsePageProps, any> {
<PropertiesItem title="Provided crop name">{ accession.cropName }</PropertiesItem>
</Properties>
</PageSection>
{ accession.donorCode || (accession.aliases && accession.aliases.length > 0) &&
{ (accession.donorCode || (accession.aliases && accession.aliases.length > 0)) &&
<PageSection title="Accession names">
<Properties>
{ accession.donorCode && <PropertiesItem title={ t('accession.alias.DONORNUMB') }>{ accession.donorNumb } { accession.donorCode }</PropertiesItem> }
{ accession.donorCode && <PropertiesItem title={ t('accession.alias.DONORNUMB') }>{ accession.donorNumb } <em>{ accession.donorCode }</em></PropertiesItem> }
{ accession.aliases && accession.aliases.map((alias) => (
<PropertiesItem key={ alias.id } title={ t(`accession.alias.${alias.aliasType}`) }>{ alias.name } { alias.usedBy }</PropertiesItem>
<PropertiesItem key={ alias.id } title={ t(`accession.alias.${alias.aliasType}`) }>{ alias.name } <em>{ alias.usedBy }</em></PropertiesItem>
)) }
</Properties>
</PageSection>
......
Markdown is supported
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