"$",\r
"elements.$",\r
"elements.sources.citation.",\r
-// "elements.sources.citation.authorTeam.$", \r
+ "elements.sources.citation.authorTeam.$", \r
// "elements.sources.citation.authorTeam.titleCache",\r
// "elements.sources.citation.authorTeam.nomenclaturalTitleCache",\r
"elements.sources.nameUsedInSource.titleCache",\r
description = (TaxonDescription) service.load(descriptionUuid, TAXONDESCRIPTION_INIT_STRATEGY);\r
taxonDescriptions.add(description);\r
}\r
- DistributionTree distTree = service.getOrderedDistributionsB(taxonDescriptions, levels);\r
+ DistributionTree distTree = service.getOrderedDistributionsB(taxonDescriptions, levels, TAXONDESCRIPTION_INIT_STRATEGY);\r
return distTree;\r
}\r
\r
value = {"/portal/taxon/*/fromNameRelationships"},\r
method = RequestMethod.GET)\r
public List<NameRelationship> doGetFromNameRelations(HttpServletRequest request, HttpServletResponse response)throws IOException {\r
- logger.info("doGetNameRelations()" + request.getServletPath());\r
+ logger.info("doGetNameFromNameRelations()" + request.getServletPath());\r
TaxonBase tb = getCdmBase(request, response, SIMPLE_TAXON_INIT_STRATEGY, Taxon.class);\r
List<NameRelationship> list = nameService.listFromNameRelationships(tb.getName(), null, null, null, null, NAMERELATIONSHIP_INIT_STRATEGY);\r
return list;\r
public DistributionTree getOrderedDistributionsB(
Set<TaxonDescription> taxonDescriptions,
- Set<NamedAreaLevel> omitLevels){
+ Set<NamedAreaLevel> omitLevels,
+ List<String> propertyPaths){
DistributionTree tree = new DistributionTree();
List<Distribution> distList = new ArrayList<Distribution>();
for (TaxonDescription taxonDescription : taxonDescriptions) {
- taxonDescription = (TaxonDescription) dao.load(taxonDescription.getUuid());
+ taxonDescription = (TaxonDescription) dao.load(taxonDescription.getUuid(), propertyPaths);
Set<DescriptionElementBase> elements = taxonDescription.getElements();
for (DescriptionElementBase element : elements) {
if(element.isInstanceOf(Distribution.class)){
public List<DescriptionElementBase> getDescriptionElementsForTaxon(Taxon taxon, Set<Feature> features, Class<? extends DescriptionElementBase> type, Integer pageSize, Integer pageNumber, List<String> propertyPaths);
- public DistributionTree getOrderedDistributionsB(Set<TaxonDescription> taxonDescriptions, Set<NamedAreaLevel> levels);
+ public DistributionTree getOrderedDistributionsB(Set<TaxonDescription> taxonDescriptions, Set<NamedAreaLevel> levels, List<String> propertyPaths);
/**
* Generate a string representation of the structured <code>description</code> supplied in natural language