Project

General

Profile

« Previous | Next » 

Revision 0eb48f9b

Added by Andreas Kohlbecker over 2 years ago

ref #8850 cdm_compose_annotations_uri() handling cases withiut fieldUnit - comment

View differences:

modules/cdm_dataportal/cdm_api/cdm_api.module
899 899
  $cdm_entity_type = $cdm_entity->class;
900 900

  
901 901
  if($cdm_entity_type == 'DerivedUnitFacade'){
902
    // TODO with the below code we may miss annotations.
903
    //  Better implement a derivedUnitFacade/{uuid}/annotations service and use that instead
902 904
    if(isset($cdm_entity->fieldUnitEntityReference)){
903
      // TODO we may want to implement a derivedUnitFacade/{uuid}/annotations service and use that instead
904 905
      $cdm_entity_type = $cdm_entity->fieldUnitEntityReference->type;
905 906
      $cdm_entity_uuid = $cdm_entity->fieldUnitEntityReference->uuid;
906 907
    } elseif(isset($cdm_entity->baseUnitEntityReference)){

Also available in: Unified diff