Revision 3c4a5472
Added by Andreas Kohlbecker over 2 years ago
modules/cdm_dataportal/includes/footnotes.inc | ||
---|---|---|
318 | 318 |
* The tag for the footnote element |
319 | 319 |
* |
320 | 320 |
* @return string |
321 |
* The markup |
|
321 | 322 |
*/ |
322 | 323 |
function render_footnotes($footnote_list_key = null, $element_tag = 'span') { |
323 | 324 |
|
modules/cdm_dataportal/includes/name.inc | ||
---|---|---|
1038 | 1038 |
$annotations_and_sources = handle_annotations_and_sources( |
1039 | 1039 |
$textual_type_designation, |
1040 | 1040 |
array( |
1041 |
// these settings differ from those provided by typedesignations_annotations_and_sources_config() |
|
1042 |
// TODO is this by purpose? please document the reason for the difference |
|
1041 | 1043 |
'sources_as_content' => false, // as footnotes |
1042 | 1044 |
'link_to_name_used_in_source' => false, |
1043 | 1045 |
'link_to_reference' => true, |
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