Project

General

Profile

« Previous | Next » 

Revision 378bc1ce

Added by Andreas Kohlbecker over 5 years ago

fix #3650 visibility of distribution and specimen maps configurable

View differences:

modules/cdm_dataportal/includes/descriptions.inc
860 860

  
861 861
    // --- Distribution map
862 862
    $distribution_map_query_parameters = NULL;
863
    if (isset($descriptionElements['DistributionInfoDTO'])) {
863

  
864
    if(variable_get(DISTRIBUTION_MAP_VISIBILITY) == 'always' ||
865
        variable_get(DISTRIBUTION_MAP_VISIBILITY) == 'automatic' && isset($descriptionElements['DistributionInfoDTO']->mapUriParams)
866
      )
867
    {
864 868
      $distribution_map_query_parameters = $descriptionElements['DistributionInfoDTO']->mapUriParams;
865 869
    }
866 870
    $map_render_element = compose_distribution_map($distribution_map_query_parameters);

Also available in: Unified diff