Revision ab145ca2
Added by Alex Theys almost 12 years ago
5.x/modules/cdm_dataportal/theme/cdm_dataportal.page.theme | ||
---|---|---|
129 | 129 |
foreach ($taxonDescriptions as $taxonDescription) { |
130 | 130 |
// check if structured description |
131 | 131 |
$hasStructuredData = cdm_ws_get(CDM_WS_DESCRIPTION_HAS_STRUCTRURED_DATA, $taxonDescription->uuid); |
132 |
|
|
132 | 133 |
$hasStructuredData = $hasStructuredData->Boolean == 'true'; |
133 | 134 |
if($hasStructuredData){ |
134 | 135 |
$structured_description_featuretree_uuid = variable_get(CDM_DATAPORTAL_STRUCTURED_DESCRIPTION_FEATURETREE_UUID, false); |
135 | 136 |
$naturallanguage_textData = cdm_ws_get(CDM_WS_DESCRIPTION_NATURALLANGUAGE_DESCRIPTION, array($taxonDescription->uuid, $structured_description_featuretree_uuid)); |
137 |
$out .= print_r($naturallanguage_textData); |
|
136 | 138 |
if(!$naturallanguage_textData){ |
137 | 139 |
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'); |
138 | 140 |
} |
Also available in: Unified diff
AT: Committing Uses dataportal interface changes