Revision a0be8d7e
Added by Andreas Kohlbecker almost 5 years ago
modules/cdm_dataportal/cdm_api/webservice_uris.php | ||
---|---|---|
30 | 30 |
|
31 | 31 |
|
32 | 32 |
define('CDM_WS_TAXON', 'taxon'); |
33 |
|
|
34 |
define('CDM_WS_TAXON_FIELDUNIT_DTOS', 'taxon/$0/fieldUnitDTOs'); |
|
35 |
|
|
33 | 36 |
define('CDM_WS_TAXON_CLASSIFICATIONS', 'taxon/$0/classifications'); |
34 | 37 |
define('CDM_WS_TAXON_FINDBY_DESCRIPTIONELEMENT_FULLTEXT', 'taxon/findByDescriptionElementFullText'); |
35 | 38 |
/** |
modules/cdm_dataportal/includes/pages.inc | ||
---|---|---|
39 | 39 |
$specimensOrObservations = null; |
40 | 40 |
if (variable_get('cdm_dataportal_specimen_derivate_tree')){ |
41 | 41 |
// get fieldUnitDTOs |
42 |
$fieldUnitDTOs = cdm_ws_get(CDM_WS_TAXON, array( $taxon->uuid, 'specimensOrObservationDTOs'));
|
|
42 |
$fieldUnitDTOs = cdm_ws_get(CDM_WS_TAXON_FIELDUNIT_DTOS, array( $taxon->uuid));
|
|
43 | 43 |
$fieldUnitDTOs = order_fieldUnitDtos_by_date_and_type($fieldUnitDTOs); |
44 | 44 |
} else { |
45 | 45 |
// $specimensOrObservations = cdm_ws_get(CDM_WS_TAXON, array( $taxon->uuid, 'specimensOrObservations')); |
Also available in: Unified diff
ref #8406 dapting portal to renamed controller endpoint: taxon/{uuid}/specimensOrObservationDTOs --> taxon/{uuid}/fieldUnitDTOs