Commit a90280fb authored by Matija Obreza's avatar Matija Obreza

Allow filtering by accessions with images

parent 68e8ce52
......@@ -66,7 +66,7 @@
"species": "Species",
"subtaxa": "Subtaxon"
},
"sgsv": "Svalbard",
"sgsv": "Backup in SGSV",
"mlsStatus": "MLS",
"available": "Available",
"historic": "Historic",
......@@ -92,7 +92,8 @@
"500": "Advanced/improved cultivar",
"600": "GMO",
"999": "Other"
}
},
"images": "With images"
},
"subsets": {
"title": "Title",
......@@ -353,7 +354,8 @@
"historic": "Historic records",
"available": "Available for distribution",
"mlsStatus": "Included in MLS",
"sgsv": "Backed up in SGSV"
"sgsv": "Backed up in SGSV",
"images": "Accessions with images"
},
"p": {
"display": {
......@@ -630,7 +632,8 @@
"message": "Delete crop '{{cropName, lowercase}}'?",
"description": "Note, deleting any crop causes mayhem."
}
}
},
"link": "Link accessions"
}
},
"common": {
......
......@@ -21,7 +21,8 @@
"historic": "Historic records",
"available": "Available for distribution",
"mlsStatus": "Included in MLS",
"sgsv": "Backed up in SGSV"
"sgsv": "Backed up in SGSV",
"images": "Accessions with images"
},
"p": {
"display": {
......
......@@ -54,6 +54,7 @@ const AccessionFilters = ({handleSubmit, initialValues, initialize, t, ...other}
<BooleanFilter name="available" label={ t('accessions.public.f.available') } />
<BooleanFilter name="mlsStatus" label={ t('accessions.public.f.mlsStatus') } />
<BooleanFilter name="sgsv" label={ t('accessions.public.f.sgsv') } />
<BooleanFilter name="images" label={ t('accessions.public.f.images') } />
</CollapsibleComponentSearch>
</FiltersBlock>
);
......
......@@ -35,6 +35,7 @@ class AccessionFilter {
public version: number[];
public sgsv: boolean;
public storage: number[];
public images: boolean;
public NOT: AccessionFilter;
}
......
......@@ -65,7 +65,7 @@
"species": "Species",
"subtaxa": "Subtaxon"
},
"sgsv": "Svalbard",
"sgsv": "Backup in SGSV",
"mlsStatus": "MLS",
"available": "Available",
"historic": "Historic",
......@@ -91,7 +91,8 @@
"500": "Advanced/improved cultivar",
"600": "GMO",
"999": "Other"
}
},
"images": "With images"
},
"subsets": {
"title": "Title",
......
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