601 |
601 |
}
|
602 |
602 |
|
603 |
603 |
$render_array['sub_headline'] = markup_to_render_array(join(", ", registration_types($registration_dto)),-10, '<h3 class="regsitration_type">' . t('Event: '), '</h3>' );
|
|
604 |
$render_array['nomenclatural_act'] = array(
|
|
605 |
'#weight' => 0,
|
|
606 |
'#prefix' => '<div class="nomenclatural_act">',
|
|
607 |
'#suffix' => '</div>'
|
|
608 |
);
|
604 |
609 |
|
605 |
610 |
// name
|
606 |
611 |
if($registration_dto->nameRef){
|
607 |
612 |
$name = cdm_ws_get(CDM_WS_PORTAL_NAME, $registration_dto->nameRef->uuid);
|
608 |
613 |
cdm_load_tagged_full_title($name);
|
609 |
|
$render_array['published_name'] = markup_to_render_array('<p class="published-name">' . render_taxon_or_name($name, url(path_to_name($name->uuid))) . '</p>', 0);
|
|
614 |
$render_array['nomenclatural_act']['published_name'] = markup_to_render_array('<div class="published-name">' . render_taxon_or_name($name, url(path_to_name($name->uuid))) . '</div>', 0);
|
610 |
615 |
$name_relations = cdm_ws_fetch_all(str_replace("$0", $registration_dto->nameRef->uuid, CDM_WS_PORTAL_NAME_NAME_RELATIONS));
|
611 |
|
$render_array['name_relations'] = compose_name_relationships_list($name_relations, $registration_dto->nameRef->uuid, null);
|
612 |
|
$render_array['name_relations']['#weight'] = 10;
|
|
616 |
$render_array['nomenclatural_act']['name_relations'] = compose_name_relationships_list($name_relations, $registration_dto->nameRef->uuid, null);
|
|
617 |
$render_array['nomenclatural_act']['name_relations']['#weight'] = 10;
|
613 |
618 |
} else {
|
614 |
619 |
// in this case the registration must have a
|
615 |
620 |
$name = cdm_ws_get(CDM_WS_PORTAL_NAME, $registration_dto->typifiedNameRef->uuid);
|
... | ... | |
647 |
652 |
}
|
648 |
653 |
// type designations wich are in this nomenclatural act.
|
649 |
654 |
if (count($name_type_designation_refs) > 0) {
|
650 |
|
$render_array['name_type_designations'] = compose_name_type_designations($name_type_designation_refs);
|
651 |
|
$render_array['name_type_designations']['#prefix'] = '<p class="name_type_designations">';
|
652 |
|
$render_array['name_type_designations']['#suffix'] = '</p>';
|
653 |
|
$render_array['name_type_designations']['#weight'] = 20;
|
|
655 |
$render_array['nomenclatural_act']['name_type_designations'] = compose_name_type_designations($name_type_designation_refs);
|
|
656 |
$render_array['nomenclatural_act']['name_type_designations']['#prefix'] = '<p class="name_type_designations">';
|
|
657 |
$render_array['nomenclatural_act']['name_type_designations']['#suffix'] = '</p>';
|
|
658 |
$render_array['nomenclatural_act']['name_type_designations']['#weight'] = 20;
|
654 |
659 |
}
|
655 |
660 |
if (count($field_unit_uuids) > 0) {
|
656 |
661 |
$specimen_type_designations_array = compose_specimen_type_designations($specimen_type_designation_refs, true);
|
657 |
|
$render_array['specimen_type_designations'] = $specimen_type_designations_array['type_designations'];
|
|
662 |
$render_array['nomenclatural_act']['specimen_type_designations'] = $specimen_type_designations_array['type_designations'];
|
658 |
663 |
$render_array['map'] = $specimen_type_designations_array['map'];
|
|
664 |
$render_array['map']['#weight'] = $render_array['nomenclatural_act']['#weight'] + 20;
|
659 |
665 |
}
|
660 |
666 |
}
|
661 |
667 |
|
662 |
668 |
// citation
|
663 |
669 |
if ($with_citation) {
|
664 |
670 |
$render_array['citation'] = markup_to_render_array(
|
665 |
|
"<p class=\"citation " . html_class_attribute_ref(new TypedEntityReference("Reference", $registration_dto->citationUuid)) . "\">"
|
|
671 |
"<div class=\"citation nomenclatural_act_citation" . html_class_attribute_ref(new TypedEntityReference("Reference", $registration_dto->citationUuid)) . "\">"
|
|
672 |
. "<span class=\"label\">published in: </span>"
|
666 |
673 |
. $registration_dto->bibliographicInRefCitationString
|
667 |
674 |
. l(custom_icon_font_markup('icon-interal-link-alt-solid', array('class' => array('superscript'))), path_to_reference($registration_dto->citationUuid), array('html' => true))
|
668 |
|
. "</p>",
|
669 |
|
50);
|
|
675 |
. "</div>",
|
|
676 |
$render_array['nomenclatural_act']['#weight'] + 10 );
|
670 |
677 |
}
|
671 |
678 |
|
672 |
679 |
// registration date and office
|
ref #8449 registration page: better emphasizing the nomenclatural act to make clear what has been registered