Project

General

Profile

« Previous | Next » 

Revision ef73488d

Added by Katja Luther about 1 year ago

ref #10308: add possibility to choose a area tree and use it in ws - continue

View differences:

modules/cdm_dataportal/cdm_dataportal.module
1839 1839
    //get feature tree uuid
1840 1840
    $feature_tree_uuid =variable_get(CDM_PROFILE_FEATURETREE_UUID);
1841 1841
    //
1842
    $taxon_dto = cdm_ws_get(CDM_WS_PORTAL_TAXON_DTO, $uuid, "featureTree=". $feature_tree_uuid);
1842
    if (isset($feature_tree_uuid)){
1843
        $feature_tree_uuid = "featureTree=". $feature_tree_uuid;
1844
    }
1845

  
1846
    $taxon_dto = cdm_ws_get(CDM_WS_PORTAL_TAXON_DTO, $uuid, $feature_tree_uuid);
1843 1847
    if (empty($taxon_dto)) {
1844 1848
        drupal_set_title(t('Taxon does not exist'), PASS_THROUGH);
1845 1849
        return null;
......
1851 1855
    ));
1852 1856

  
1853 1857
    // Check if the taxon id contained in the currently selected tree.
1854
    $taxon_in_current_classification = taxon_in_current_classification($uuid);
1858
    $taxon_in_current_classification = taxon_in_current_classification_new($taxon_dto);
1855 1859

  
1856 1860
    if (!$taxon_in_current_classification) {
1857 1861
        $classifications = get_classifications_for_taxon($taxon_dto);

Also available in: Unified diff