Skip to content

Commit

Permalink
BCCVLB-741 : ENDW Richness as biodiverse primary output
Browse files Browse the repository at this point in the history
 new method to get biodiverse csv for visualisation
  • Loading branch information
Gerhard Weis committed Jul 27, 2017
1 parent 6fe2389 commit 8b4d040
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/org/bccvl/site/browser/dataset_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,16 @@ def get_primary_output(self, resultobj=None):
resultobj = self.context
pc = api.portal.get_tool('portal_catalog')
for brain in pc.searchResults(path={'query': resultobj.getPath(), 'depth': 1},
BCCDataGenre=('DataGenreCP', 'DataGenreCP_ENVLOP', 'DataGenceFP', 'DataGenreBiodiverseOutput')):
BCCDataGenre=('DataGenreCP', 'DataGenreCP_ENVLOP', 'DataGenceFP', 'DataGenreENDW_RICHNESS')):
return IContentListingObject(brain)
return None

def get_biodiverse_output(self, resultobj=None):
if resultobj is None:
resultobj = self.context
pc = api.portal.get_tool('portal_catalog')
for brain in pc.searchResults(path={'query': resultobj.getPath(), 'depth': 1},
BCCDataGenre=('DataGenreBiodiverseOutput')):
return IContentListingObject(brain)
return None

Expand Down

0 comments on commit 8b4d040

Please sign in to comment.