Taxon taxon = (Taxon) element;
Distribution distributionForColumn = getDistributionForColumn(taxon);
if (distributionForColumn != null) {
- return distributionForColumn.getStatus().getTitleCache();
+ if (PreferencesUtil.isShowIdInVocabularyInChecklistEditor()){
+ if (distributionForColumn.getStatus().getIdInVocabulary() != null){
+ return distributionForColumn.getStatus().getIdInVocabulary();
+ } else{
+ distributionForColumn.getStatus().getTitleCache();
+ }
+ } else{
+ return distributionForColumn.getStatus().getTitleCache();
+ }
}
// return PresenceAbsenceTerms
}
* @return
*/
private Distribution getDistributionForColumn(Taxon taxon) {
- List<TaxonDescription> listTaxonDescriptions = descriptionService.listTaxonDescriptions(taxon, null, null,
- null, null, null, DESC_INIT_STRATEGY);
+// List<TaxonDescription> listTaxonDescriptions = descriptionService.listTaxonDescriptions(taxon, null, null,
+// null, null, null, DESC_INIT_STRATEGY);
+ Set<TaxonDescription> listTaxonDescriptions = taxon.getDescriptions();
TableColumn column = viewer.getTable().getColumn(columnIndex);
for (TaxonDescription td : listTaxonDescriptions) {
for (DescriptionElementBase deb : td.getElements()) {