Actions
feature request #7957
closedAdd types for taxon description (as EnumSet)
Start date:
Due date:
% Done:
100%
Estimated time:
Severity:
normal
Description
When working on the Character Matrix there are 3 types of taxon descriptions:
- default taxon description
- taxon descriptions from literature
- aggregated taxon descriptions
To be able to differentiate between them we need two more marker types for "literature" and "default".
Currently we use:
MarkerType.COMPUTED()
for "aggregated"MarkerType.IN_BIBLIOGRAPHY()
for "literature"MarkerType.TO_BE_CHECKED()
for "default"
Current usage with hibernate Criterion (see DescriptionDaoImpl
):
private void addDescriptionTypesCriterion(Set<DescriptionType> descriptionTypes, Criteria criteria) {
if(descriptionTypes != null && !descriptionTypes.isEmpty()) {
Set<Criterion> typeCriteria = new HashSet<>();
for (DescriptionType descriptionType : descriptionTypes) {
typeCriteria.add(Restrictions.sqlRestriction("{alias}.types like '%"+descriptionType.getKey()+"%'"));
}
criteria.add(Restrictions.and(typeCriteria.toArray(new Criterion[]{})));
}
}
Related issues
Updated by Patrick Plitzner about 5 years ago
- Target version changed from Unassigned CDM tickets to CDM UML 5.15
Updated by Patrick Plitzner about 5 years ago
- Status changed from New to In Progress
- Priority changed from New to Highest
Updated by Andreas Müller about 5 years ago
- Target version changed from CDM UML 5.15 to CDM UML 5.8
Updated by Andreas Müller about 5 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 50
Applied in changeset cdmlib|1962891319edeb12380aa69994467f674a96ce96.
Updated by Andreas Müller about 5 years ago
- Precedes feature request #8471: Computed descriptions should be disabled in TaxEditor added
Updated by Andreas Müller about 5 years ago
- Subject changed from Add marker types for taxon description to Add types for taxon description (as EnumSet)
- Assignee changed from Andreas Müller to Patrick Plitzner
This has been implemented now as an EnumSet for better performance.
Please review.
Updated by Andreas Müller about 5 years ago
- Precedes feature request #8472: Transmission engine for distribution aggregation needs to be adapted to new DescriptionBase.types added
Updated by Patrick Plitzner about 5 years ago
- Status changed from Resolved to Closed
- Assignee changed from Patrick Plitzner to Andreas Müller
- % Done changed from 50 to 100
Adapted descriptive data set service to use DescriptionType. Tried aggregation and tested display in matrix editor. Also checked DB. Seems to work fine.
Updated by Andreas Müller almost 5 years ago
- Related to feature request #8128: Add indicator for feature facts and/or vocabularies which description type they support added
Updated by Andreas Müller about 2 years ago
- Related to task #10109: Investigate best practice for HQL with enumset added
Actions