Revision a6c4c53c
Added by Andreas Kohlbecker almost 4 years ago
modules/cdm_dataportal/includes/name.inc | ||
---|---|---|
1010 | 1010 |
// TextualTypeDesignation ......................... |
1011 | 1011 |
if(!empty($textual_type_designations)) { |
1012 | 1012 |
foreach ($textual_type_designations as $textual_type_designation) { |
1013 |
$encasement = $textual_type_designation->verbatim ? '"' : ''; |
|
1014 |
$out .= '<' . $element_tag . ' class="' . html_class_attribute_ref($textual_type_designation) . '">' . type_designation_status_label_markup(null) |
|
1015 |
. ': ' . $encasement . trim($textual_type_designation->text_L10n->text) . $encasement . '</' . $element_tag . '>'; |
|
1016 | 1013 |
$annotations_and_sources = handle_annotations_and_sources( |
1017 | 1014 |
$textual_type_designation, |
1018 | 1015 |
array( |
1019 | 1016 |
'sources_as_content' => false, // as footnotes |
1020 | 1017 |
'link_to_name_used_in_source' => false, |
1021 | 1018 |
'link_to_reference' => true, |
1022 |
'add_footnote_keys' => false, |
|
1023 |
'bibliography_aware' => false), |
|
1019 |
'add_footnote_keys' => true, |
|
1020 |
'bibliography_aware' => false |
|
1021 |
), |
|
1024 | 1022 |
'', |
1025 | 1023 |
RenderHints::getFootnoteListKey() // passing a defined key to avoid separate annotation footnote key see https://dev.e-taxonomy.eu/redmine/issues/8543 |
1026 | 1024 |
); |
1027 |
$out .= $annotations_and_sources['foot_note_keys']; |
|
1028 |
if(is_array( $annotations_and_sources['source_references'])){ |
|
1029 |
$citation_markup = join(', ', $annotations_and_sources['source_references']); |
|
1030 |
} |
|
1025 |
$encasement = $textual_type_designation->verbatim ? '"' : ''; |
|
1026 |
$out .= '<' . $element_tag . ' class="' . html_class_attribute_ref($textual_type_designation) . '">' . type_designation_status_label_markup(null) |
|
1027 |
. ': ' . $encasement . trim($textual_type_designation->text_L10n->text) . $encasement . $annotations_and_sources['foot_note_keys'] .'</' . $element_tag . '>'; |
|
1028 |
// if(is_array( $annotations_and_sources['source_references'])){ |
|
1029 |
// $citation_markup = join(', ', $annotations_and_sources['source_references']); |
|
1030 |
// } |
|
1031 |
// $out .= $citation_markup; |
|
1031 | 1032 |
} |
1032 | 1033 |
} |
1033 | 1034 |
|
Also available in: Unified diff
ref #8134 dealing with web service problems returning list instead of pagers and better placement of footnotes