From: <rv...@us...> - 2011-03-24 11:28:05
|
Revision: 778 http://treebase.svn.sourceforge.net/treebase/?rev=778&view=rev Author: rvos Date: 2011-03-24 11:27:59 +0000 (Thu, 24 Mar 2011) Log Message: ----------- Added annotations to TaxonLabel to include TaxonVariant and Taxon ID in results. Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java 2011-03-22 17:45:05 UTC (rev 777) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/taxon/TaxonLabel.java 2011-03-24 11:27:59 UTC (rev 778) @@ -277,7 +277,12 @@ } if ( null != tv.getTB1LegacyId() ) { annotations.add(new Annotation(Constants.TBTermsURI, "tb:identifier.taxonVariant.tb1", tv.getTB1LegacyId())); - } + } + annotations.add(new Annotation(Constants.TBTermsURI, "tb:identifier.taxonVariant", tv.getId())); + Taxon taxon = tv.getTaxon(); + if ( null != taxon ) { + annotations.add(new Annotation(Constants.TBTermsURI, "tb:identifier.taxon", taxon.getId())); + } } } catch ( Exception e) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |