Project

General

Profile

« Previous | Next » 

Revision bc8a4f7c

Added by Alex Theys over 10 years ago

AT: committing latest changes to the dataportal code during first round of Code review

View differences:

5.x/modules/cdm_dataportal/theme/cdm_dataportal.page.theme
124 124
        $markerTypesEmpty = array();
125 125
  $markerTypesEmpty['markerTypes'] = '';
126 126
    $taxonDescriptions = cdm_ws_get(CDM_WS_PORTAL_TAXON_DESCRIPTIONS, $taxon->uuid, queryString($markerTypesEmpty)); //retrieve all description for the taxon
127
	//$out .=print_r($taxonDescriptions);
128
    $nonStructuredDescriptions = array();
127
	$nonStructuredDescriptions = array();
129 128
    if($taxonDescriptions != null){
130 129
      foreach ($taxonDescriptions as $taxonDescription) {
131 130
        // check if structured description
......
134 133
        if($hasStructuredData){
135 134
          $structured_description_featuretree_uuid = variable_get(CDM_DATAPORTAL_STRUCTURED_DESCRIPTION_FEATURETREE_UUID, false);
136 135
          $naturallanguage_textData = cdm_ws_get(CDM_WS_DESCRIPTION_NATURALLANGUAGE_DESCRIPTION, array($taxonDescription->uuid, $structured_description_featuretree_uuid));
137
          //$out .=print_r($naturallanguage_textData);
138 136
          if(!$naturallanguage_textData){
139 137
            drupal_set_message('The \'FeatureTree\' for the generation of natural language representations is not configured correctly, please select a \'FeatureTree\' in the '.l('CDM Dataportal Settings', 'admin/settings/cdm_dataportal/layout/taxon'), 'warning');
140 138
          }

Also available in: Unified diff