Project

General

Profile

« Previous | Next » 

Revision efff6ee1

Added by Andreas Kohlbecker almost 5 years ago

fix #8352 name page showing registrations

View differences:

modules/cdm_dataportal/cdm_dataportal.module
1946 1946
      $content['map'] = compose_map('specimens', $occurrence_query, $distribution_query, $legend_format_query, array());
1947 1947
    }
1948 1948

  
1949
    // registrations
1950
    $registrationDTOs= cdm_ws_fetch_all(CDM_WS_REGISTRATION_DTO,  array('nameUuid' => $taxon_name_uuid));
1951
    if(isset($registrationDTOs) && count($registrationDTOs ) > 0 ){
1952
      $content['registrations'][] = markup_to_render_array('<h2>' . t("Registrations") . '</h2>') ;
1953
      foreach ($registrationDTOs as $regDTO){
1954
        $content['registrations'][] = compose_registration_dto_compact($regDTO);
1955
      }
1956
    }
1957

  
1958

  
1949 1959
    // related taxa
1950 1960
    if ($taxa) {
1951 1961
      $content['related_taxa_header'] = markup_to_render_array("<h2>Taxa for this name</h2>");

Also available in: Unified diff