Revision 1601d218
Added by Patrick Plitzner over 4 years ago
modules/cdm_dataportal/includes/pages.inc | ||
---|---|---|
581 | 581 |
$aggregatedDescriptions = cdm_ws_fetch_all(CDM_WS_PORTAL_TAXON . '/' . $taxon->uuid . '/descriptions', $descriptionTypes); |
582 | 582 |
if (isset($aggregatedDescriptions) and !empty($aggregatedDescriptions)) { |
583 | 583 |
// descriptions pseudo feature |
584 |
$feature_description = make_pseudo_feature('Aggregated Descriptions', 'AGGREGATION_DESCRIPTIONS');
|
|
584 |
$feature_description = make_pseudo_feature('Descriptions (aggregated)', 'AGGREGATION_DESCRIPTIONS');
|
|
585 | 585 |
$description_item = ""; |
586 | 586 |
foreach ($aggregatedDescriptions as $description) { |
587 | 587 |
$description_item .= render_cdm_description_link($description); |
588 | 588 |
} |
589 |
$description_block = feature_block(t('Aggregated Descriptions'), $feature_description);
|
|
589 |
$description_block = feature_block(t('Descriptions (aggregated)'), $feature_description);
|
|
590 | 590 |
$description_block->content = []; |
591 | 591 |
$description_block->content[] = compose_feature_block_wrap_elements([$description_item], $feature_description); |
592 | 592 |
|
593 |
$pseudo_feature_block_toc_items['Aggregated Descriptions'] = 'aggregation_descriptions';
|
|
593 |
$pseudo_feature_block_toc_items['Descriptions (aggregated)'] = 'aggregation_descriptions';
|
|
594 | 594 |
$pseudo_feature_blocks[] = $description_block; |
595 | 595 |
|
596 | 596 |
} |
Also available in: Unified diff
ref #8595 Change header label for aggr. descriptions