Revision a40ad0d2
Added by Andreas Kohlbecker almost 13 years ago
modules/cdm_dataportal/theme/cdm_dataportal.page.theme | ||
---|---|---|
63 | 63 |
|
64 | 64 |
|
65 | 65 |
// --- GET Images --- // |
66 |
$prefMimeTypeRegex = 'image:.*'; |
|
67 |
$prefMediaQuality = '*'; |
|
66 |
|
|
67 |
$mediaQueryParameters = array("type"=>"ImageFile"); |
|
68 |
|
|
68 | 69 |
$selectShowMedia = variable_get('cdm_dataportal_show_media', 0); |
69 | 70 |
if ($selectShowMedia == 0){ |
70 |
$media = cdm_ws_get(CDM_WS_PORTAL_TAXON_MEDIA, array($taxon->uuid, $prefMimeTypeRegex, $prefMediaQuality));
|
|
71 |
$media = cdm_ws_get(CDM_WS_PORTAL_TAXON_MEDIA, array($taxon->uuid), queryString($mediaQueryParameters));
|
|
71 | 72 |
}else{ |
72 |
$media = cdm_ws_get(CDM_WS_PORTAL_TAXON_SUBTREE_MEDIA, array($taxon->uuid, $prefMimeTypeRegex, $prefMediaQuality));
|
|
73 |
$media = cdm_ws_get(CDM_WS_PORTAL_TAXON_SUBTREE_MEDIA, array($taxon->uuid), queryString($mediaQueryParameters));
|
|
73 | 74 |
} |
74 | 75 |
if(!isset($media[0])) { |
75 | 76 |
$hideTabs[] = theme('cdm_taxonpage_tab', 'Images'); |
Also available in: Unified diff
modifications in dataportal for #2206 (modify the means to find images for the data portal)