Project

General

Profile

« Previous | Next » 

Revision 9a124e57

Added by Katja Luther over 5 years ago

fix problems in pages.inc

View differences:

modules/cdm_dataportal/includes/pages.inc
57 57
        $ws_string .= "s";
58 58
    }
59 59

  
60
   // $specimensOrObservations = cdm_ws_get(CDM_WS_TAXON, array( $taxon->uuid, $ws_string));
61
    $pager = cdm_ws_get(CDM_WS_OCCURRENCE_BY_ASSOCIATEDTAXON,
62
        null,
63
        $by_associatedtaxon_query . '&taxonUuid=' . $taxon->uuid
64
    );
65
    $specimensOrObservations = array();
66
    if(isset($pager->records[0])){
67
        $specimensOrObservations =  $pager->records;
60
    $specimensOrObservations = cdm_ws_get(CDM_WS_TAXON, array( $taxon->uuid, $ws_string));
61
    if(!variable_get('cdm_dataportal_specimen_derivate_tree')) {
62
        $pager = cdm_ws_get(CDM_WS_OCCURRENCE_BY_ASSOCIATEDTAXON,
63
            null,
64
            $by_associatedtaxon_query . '&taxonUuid=' . $taxon->uuid
65
        );
66
        $specimensOrObservations = array();
67
        if (isset($pager->records[0])) {
68
            $specimensOrObservations = $pager->records;
69
        }
68 70
    }
69 71
     // cdm_ws_get(CDM_WS_OCCURRENCE_FIELDUNIT_DTO_BY_ASSOCIATEDTAXON,
70 72
     // null,

Also available in: Unified diff