Overviews: drill down
The Overview page now displays stats for currently applied filters:
Drill-down
In each individual section, the number for a specific "Term" should be a link. Clicking the number adds the term to current filters for the relevant property.
- No link on "Other" or "Missing" / "Not specified"
Implementation
PropertyItem numeric
renders these numbers properly. Perhaps just check if value
is of type number
then render as rendering now, otherwise render the value
as provided by parent component.
Parent component (<OverviewPage
) could then do something like:
const filterByTerm = (property, term, count) => <Link onClick={ addTerm(property, term) }><Number value={ count } /></Link>;
<PropertiesCard propertiesList={ overviewsTerms.get('duplSite').map((term) => ({title: term.term, value: filterByTerm(property, term, term.count) })) } title={ t(`accession.overview.duplSite`) } small/>