Project

General

Profile

« Previous | Next » 

Revision 9438ad3a

Added by Andreas Kohlbecker about 11 years ago

dataportal side implementation for #3305 (Collect images via taxon relations)

View differences:

7.x/modules/cdm_dataportal/theme/cdm_dataportal.page.theme
105 105

  
106 106
  $page_part = variable_get('cdm_dataportal_taxonpage_tabs', 1) ? $page_part : 'all';
107 107

  
108
  // --- GET Images --- //
109
  $mediaQueryParameters = array(
110
    "type" => "ImageFile",
111
  );
108
  $media = _load_media_for_taxon($taxon);
109

  
112 110

  
113
  $selectShowMedia = variable_get('cdm_dataportal_show_media', 0);
114
  if ($selectShowMedia == 0) {
115
    $media = cdm_ws_get(CDM_WS_PORTAL_TAXON_MEDIA, array(
116
      $taxon->uuid,
117
    ), queryString($mediaQueryParameters));
118
  }
119
  else {
120
    $media = cdm_ws_get(CDM_WS_PORTAL_TAXON_SUBTREE_MEDIA, array(
121
      $taxon->uuid,
122
    ), queryString($mediaQueryParameters));
123
  }
124 111
  if (!isset($media[0]) || ($tabsToDisplay["Images"] == '0')) {
125 112
    taxon_page_tabs_hidden('images');
126 113
  }
114

  
127 115
  // HideImage flag depending on administative preset.
128 116
  $hideImages = FALSE;
129 117
  if (variable_get('image_hide_rank', '0') != '0' && isset($taxon->name->rank->uuid)) {

Also available in: Unified diff