Revision 84e766b2
Added by Andreas Kohlbecker over 5 years ago
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
1875 | 1875 |
function compose_registation_dto($registration_dto, $with_citation = true, $with_identifier = false) |
1876 | 1876 |
{ |
1877 | 1877 |
$render_array = array(); |
1878 |
if ($with_citation) { |
|
1879 |
$render_array['citation'] = markup_to_render_array("<div class=\"" . html_class_attribute_ref(new TypedEntityReference("Reference", $registration_dto->citationUuid)) . "\">" |
|
1880 |
. l($registration_dto->bibliographicCitationString, path_to_reference($registration_dto->citationUuid)) |
|
1881 |
. "</br> </div>"); |
|
1882 |
} |
|
1878 |
|
|
1883 | 1879 |
$registation_markup = cdm_tagged_text_to_markup($registration_dto->summaryTaggedText); |
1884 | 1880 |
if($with_identifier){ |
1885 | 1881 |
$registation_markup .= " " . l ($registration_dto->identifier, $registration_dto->identifier); |
1886 | 1882 |
} |
1887 | 1883 |
$render_array['summary'] = markup_to_render_array("<div>" . $registation_markup . "</div>"); |
1884 |
|
|
1885 |
if ($with_citation) { |
|
1886 |
$render_array['citation'] = markup_to_render_array("<div class=\"" . html_class_attribute_ref(new TypedEntityReference("Reference", $registration_dto->citationUuid)) . "\">" |
|
1887 |
. l($registration_dto->bibliographicCitationString, path_to_reference($registration_dto->citationUuid)) |
|
1888 |
. "</br> </div>"); |
|
1889 |
} |
|
1890 |
|
|
1888 | 1891 |
return $render_array; |
1889 | 1892 |
} |
1890 | 1893 |
|
Also available in: Unified diff
fix #7595 swapping position of registration summary and citation in pegistraion page