Revision 26b8a1bc
Added by Andreas Kohlbecker about 4 years ago
modules/cdm_dataportal/cdm_dataportal.search.php | ||
---|---|---|
933 | 933 |
|
934 | 934 |
if($registration_pager != null && count($registration_pager->records) > 0){ |
935 | 935 |
$items_render_array = array(); |
936 |
foreach($registration_pager->records as $registration) { |
|
937 |
$summary_markup = cdm_tagged_text_to_markup($registration->summaryTaggedText); |
|
938 |
$items_render_array[] = markup_to_render_array( |
|
939 |
"<div class=\"item\"><div class=\"" . html_class_attribute_ref(new TypedEntityReference("Registration", $registration->uuid)) . "\">" |
|
940 |
. "<div class=\"identifier\">" |
|
941 |
. l($registration->identifier, path_to_registration($registration->identifier), array('absolute' => true, 'attributes' => array('class' => array('identifier')))) |
|
942 |
. "</div>" |
|
943 |
. $summary_markup |
|
944 |
. "</div></div>" |
|
936 |
foreach($registration_pager->records as $registration_dto) { |
|
937 |
|
|
938 |
$items_render_array[] = array( |
|
939 |
'#prefix' => "<div class=\"item\"><div class=\"" . html_class_attribute_ref(new TypedEntityReference("Registration", $registration_dto->uuid)) . "\">", |
|
940 |
'item_data' => compose_registration_dto_compact($registration_dto, 'item-style'), |
|
941 |
'#suffix' => "</div></div>" |
|
945 | 942 |
); |
946 | 943 |
; |
947 | 944 |
} |
Also available in: Unified diff
ref #8051 harmonizing registrationDTO composition and splitting full and compact style into separate methods