Revision 276f39f6
Added by Katja Luther over 5 years ago
modules/cdm_dataportal/includes/media.inc | ||
---|---|---|
346 | 346 |
$out .= '<tr>'; |
347 | 347 |
for ($c = 0; $c < $cols; $c++) { |
348 | 348 |
$media = array_shift($mediaList); |
349 |
|
|
350 |
if (isset($media->representations[0]->parts[0])) { |
|
349 |
$complete_media = cdm_ws_get(CDM_WS_MEDIA, $media->uuid); |
|
350 |
if (isset($complete_media->representations[0]->parts[0])) {
|
|
351 | 351 |
|
352 | 352 |
// |
353 | 353 |
// Find preferred representation. |
354 | 354 |
// |
355 |
$thumbnail_representations = cdm_preferred_media_representations($media, array( |
|
355 |
|
|
356 |
$thumbnail_representations = cdm_preferred_media_representations($complete_media, array( |
|
356 | 357 |
'image/jpg', |
357 | 358 |
'image/jpeg', |
358 | 359 |
'image/png', |
... | ... | |
365 | 366 |
// which only contains the thumbnail representation even if the height and width filters are not set. |
366 | 367 |
// --> #6970 |
367 | 368 |
// to get hold of the full resolution images we send a separate request : |
368 |
$complete_media = cdm_ws_get(CDM_WS_MEDIA, $media->uuid); |
|
369 |
// $complete_media = cdm_ws_get(CDM_WS_MEDIA, $media->uuid);
|
|
369 | 370 |
$full_size_representations = cdm_preferred_media_representations($complete_media, array( |
370 | 371 |
'image/jpg', |
371 | 372 |
'image/jpeg', |
Also available in: Unified diff
add the treeview as third variant for the specimen page