Project

General

Profile

« Previous | Next » 

Revision d3f77ada

Added by Katja Luther over 5 years ago

minor

View differences:

modules/cdm_dataportal/includes/pages.inc
49 49
    }
50 50

  
51 51
    $by_associatedtaxon_query = http_build_query($by_associatedtaxon_query_parameters);
52
    $cdm_dataportal_list_view = false;
53
    $ws_string = 'specimensOrObservation';
54
    if ($cdm_dataportal_list_view){
55
        $ws_string .= "DTOs";
56
    }else{
57
        $ws_string .= "s";
58
    }
52 59

  
53
    $specimensOrObservations = cdm_ws_get(CDM_WS_TAXON, array( $taxon->uuid, 'specimensOrObservations'));
60
    $specimensOrObservations = cdm_ws_get(CDM_WS_TAXON, array( $taxon->uuid, $ws_string));
54 61

  
55 62
     // cdm_ws_get(CDM_WS_OCCURRENCE_FIELDUNIT_DTO_BY_ASSOCIATEDTAXON,
56 63
     // null,
......
91 98
    // --- get map service HTTP query parameters
92 99

  
93 100
    if (count($specimensOrObservations) > 0) {
101
        $occurrence_queryDto = cdm_ws_get(CDM_WS_GEOSERVICE_OCCURRENCEMAP, $taxon->uuid,  $by_associatedtaxon_query);
94 102
        //the information about the points are already available
95 103
        $points = array();
96 104
        foreach ($specimensOrObservations as &$occurrence) {
......
119 127

  
120 128
    // -------------------------------------------------------
121 129
    $render_array['map'] = $map_render_array;
122
    $cdm_dataportal_list_view = false;
130

  
123 131
    if(variable_get('cdm_dataportal_compressed_specimen_derivate_table')){
124 132

  
125 133
        //COMPRESSED SPECIMEN DERIVATE TABLE

Also available in: Unified diff