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

Inventory: Details display inventory maintenance policy

parent f93a6b27
......@@ -130,6 +130,16 @@ class InventoryDetailsPage extends React.Component<IDetailsPageProps> {
<PrintSpecies taxonomySpecies={ inventory.accession.taxonomySpecies } />
</PropertiesItem>
}
{ inventory.systemInventory !== undefined &&
<PropertiesItem title={ t('client:model.Inventory.systemInventory') }>
{ inventory.systemInventory === true ? 'Y' : 'N' }
</PropertiesItem>
}
{ inventory.inventoryMaintPolicy &&
<PropertiesItem title={ t('client:model.Inventory.inventoryMaintPolicy') }>
{ inventory.inventoryMaintPolicy.maintenanceName }
</PropertiesItem>
}
{ inventory.formTypeCode &&
<PropertiesItem title={ t('client:model.Inventory.formTypeCode') }>
<CodeValueDisplay codeGroup={ Inventory.CodeGroup.formTypeCode } value={ inventory.formTypeCode } description />
......@@ -313,16 +323,6 @@ class InventoryDetailsPage extends React.Component<IDetailsPageProps> {
{ inventory.webAvailabilityNote }
</PropertiesItem>
}
{ inventory.inventoryMaintPolicy &&
<PropertiesItem title={ t('client:model.Inventory.inventoryMaintPolicy') }>
{ inventory.inventoryMaintPolicy.maintenanceName }
</PropertiesItem>
}
{ inventory.systemInventory !== undefined &&
<PropertiesItem title={ t('client:model.Inventory.systemInventory') }>
{ inventory.systemInventory }
</PropertiesItem>
}
{ inventory.note &&
<PropertiesItem title={ t(['client:model.Inventory.note', 'client:model._.note']) }>
{ inventory.note }
......
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