Revision 3c4a5472
Added by Andreas Kohlbecker over 2 years ago
modules/cdm_dataportal/includes/pages.inc | ||
---|---|---|
719 | 719 |
} |
720 | 720 |
|
721 | 721 |
// handle annotations of the name and taxon |
722 |
$special_annotations_array = array(); |
|
723 |
$special_annotations_array[] = $taxon->name; |
|
724 |
$special_annotations_array[] = $taxon; |
|
725 |
$accepted_name .= render_entities_annotations_as_footnote_keys($special_annotations_array, $synonymy_render_path . FOOTNOTE_KEY_SUFFIX_ANNOTATIONS); |
|
722 |
$bibliography_settings = get_bibliography_settings(); |
|
723 |
$annotations_and_sources_config = [ |
|
724 |
'sources_as_content' => FALSE, |
|
725 |
'link_to_name_used_in_source' => TRUE, |
|
726 |
'link_to_reference' => TRUE, |
|
727 |
'add_footnote_keys' => TRUE, |
|
728 |
'bibliography_aware' => $bibliography_settings['enabled'] == 1 |
|
729 |
]; |
|
730 |
$annotations_and_sources_taxon = handle_annotations_and_sources( |
|
731 |
$taxon, |
|
732 |
$annotations_and_sources_config, |
|
733 |
'', |
|
734 |
null); |
|
735 |
$annotations_and_sources_name = handle_annotations_and_sources( |
|
736 |
$taxon, |
|
737 |
$annotations_and_sources_config, |
|
738 |
'', |
|
739 |
null); |
|
740 |
|
|
741 |
$accepted_name .= $annotations_and_sources_taxon['foot_note_keys'] . ($annotations_and_sources_taxon['foot_note_keys'] ? ', ': '') . $annotations_and_sources_name['foot_note_keys']; |
|
726 | 742 |
$accepted_name .= '</div>'; |
727 | 743 |
RenderHints::popFromRenderStack(); |
728 | 744 |
} |
Also available in: Unified diff
ref #8543 further unification of annotation and source handling