Project

General

Profile

Revision 26b8a1bc

ID26b8a1bcd81a577d5852fc97dde4bca88b9566b0
Parent 7212f0bc
Child 12466422

Added by Andreas Kohlbecker 9 months ago

ref #8051 harmonizing registrationDTO composition and splitting full and compact style into separate methods

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)