Revision 4a3c5865
Added by Francisco Revilla over 13 years ago
modules/cdm_dataportal/theme/cdm_dataportal.common.theme | ||
---|---|---|
12 | 12 |
|
13 | 13 |
define(FOOTNOTE_ANNOTATIONS, 'annotations'); |
14 | 14 |
|
15 |
function taxon_in_current_tree ($taxon_uuid) { |
|
16 |
$taxon_nodes = cdm_ws_get(CDM_WS_PORTAL_TAXON_TAXONNODES, $taxon_uuid); |
|
17 |
$taxon_in_current_tree = false; |
|
18 |
foreach($taxon_nodes as $node){ |
|
19 |
if(get_taxonomictree_uuid_selected() == $node->taxonomicTree->uuid){ |
|
20 |
$taxon_in_current_tree = true; |
|
21 |
break; |
|
22 |
} |
|
23 |
} |
|
24 |
return $taxon_in_current_tree; |
|
25 |
} |
|
15 | 26 |
/** |
16 | 27 |
* TODO if getting fragment from request is possible remove $_REQUEST['highlite'] HACK |
17 | 28 |
* NOT WORKING since fragments are not available to the server |
Also available in: Unified diff
Ticket #1935