From: <hs...@us...> - 2011-06-29 14:17:02
|
Revision: 925 http://treebase.svn.sourceforge.net/treebase/?rev=925&view=rev Author: hshyket Date: 2011-06-29 14:16:56 +0000 (Wed, 29 Jun 2011) Log Message: ----------- Fixing issue where TaxonLabelSet has a title of taxa. Added a numeral to the taxon label set title. Modified Paths: -------------- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAStudyController.java Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAStudyController.java =================================================================== --- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAStudyController.java 2011-06-24 20:11:10 UTC (rev 924) +++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/DownloadAStudyController.java 2011-06-29 14:16:56 UTC (rev 925) @@ -48,8 +48,16 @@ // header: TreebaseUtil.attachStudyHeader(study, builder); - // taxa: + // taxa: + + //set a unique number for each block when the title is Taxa + Integer taxa = 1; for ( TaxonLabelSet tls : study.getTaxonLabelSets() ) { + if (tls.getTitle().equals("Taxa")) { + tls.setTitle(tls.getTitle() + taxa.toString()); + taxa++; + } + // one taxon label per line, no line number. tls.buildNexusBlockTaxa(builder, true, false); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |