Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Website
Commits
df9ead95
Commit
df9ead95
authored
Jan 15, 2019
by
Matija Obreza
Browse files
Allow filtering by accessions with images
parent
d63c3f0f
Changes
5
Hide whitespace changes
Inline
Side-by-side
locales/en/translations.json
View file @
df9ead95
...
...
@@ -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"
,
...
...
@@ -355,7 +356,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"
:
{
...
...
@@ -647,7 +649,8 @@
"message"
:
"Delete crop '{{cropName, lowercase}}'?"
,
"description"
:
"Note, deleting any crop causes mayhem."
}
}
},
"link"
:
"Link accessions"
}
},
"common"
:
{
...
...
src/accessions/translations.json
View file @
df9ead95
...
...
@@ -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"
:
{
...
...
src/accessions/ui/c/Filters.tsx
View file @
df9ead95
...
...
@@ -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
>
);
...
...
src/model/accession/AccessionFilter.ts
View file @
df9ead95
...
...
@@ -35,6 +35,7 @@ class AccessionFilter {
public
version
:
number
[];
public
sgsv
:
boolean
;
public
storage
:
number
[];
public
images
:
boolean
;
public
NOT
:
AccessionFilter
;
}
...
...
src/translations.json
View file @
df9ead95
...
...
@@ -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"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment