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

Allow filtering by accessions with images

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