Revision 6f4dd14a
Added by Andreas Kohlbecker about 16 years ago
modules/cdm_dataportal/cdm_dataportal.theme.php | ||
---|---|---|
381 | 381 |
//$specimen->uuid |
382 | 382 |
|
383 | 383 |
// ---- jQuery ThickBox: |
384 |
// bug: thickbox.js line 237 .trigger("unload") -> event is not triggered |
|
384 |
/* |
|
385 |
* bug: compat-1.0.js && thickbox.js line 237 .trigger("unload") |
|
386 |
* -> event is not triggered because of problems with compat-1.0.js' |
|
387 |
* |
|
388 |
*/ |
|
389 |
|
|
385 | 390 |
drupal_add_js(drupal_get_path('module', 'cdm_dataportal').'/js/thickbox.js'); |
386 | 391 |
drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/js/thickbox.css'); |
387 | 392 |
|
... | ... | |
407 | 412 |
$meta_row = '<tr class="meta_data">'; |
408 | 413 |
|
409 | 414 |
foreach($specimen->mediaURI as $uri){ |
415 |
|
|
410 | 416 |
// get media uri conversion rules if the module is installed and activated |
411 | 417 |
if(module_exists('cdm_mediauri')){ |
412 |
$muris = cdm_mediauri_mediaUri_conversion($uri->value);
|
|
418 |
$muris = cdm_mediauri_conversion($uri->value); |
|
413 | 419 |
} |
420 |
// --- handle media preview rules |
|
414 | 421 |
if(isset($muris['preview'])){ |
415 | 422 |
|
416 | 423 |
$a_child = '<img src="'.$muris['preview']['uri'].'" ' |
... | ... | |
420 | 427 |
} else { |
421 | 428 |
$a_child = '<img src="'.$image_url.'" />'; |
422 | 429 |
} |
423 |
$webapp_access = ''; |
|
430 |
|
|
431 |
// --- handle web application rules |
|
432 |
$webapp = ''; |
|
433 |
if(isset($muris['webapp'])){ |
|
434 |
if($muris['webapp']['embed_html']){ |
|
435 |
// embed in same page |
|
436 |
$webapp = $muris['webapp']['embed_html']; |
|
437 |
} else { |
|
438 |
$webapp = l(t('web application'), $muris['webapp']['uri']); |
|
439 |
} |
|
440 |
} |
|
424 | 441 |
$media_row .= '<td><a href="'.$uri->value.'" target="'.$uri->uuid.'">'.$a_child.'</a></td>'; |
425 |
$meta_row .= '<td><span class="label">'.check_plain($specimen->specimenLabel).'</span>'.$webapp_access.'</td>';
|
|
442 |
$meta_row .= '<td><span class="label">'.check_plain($specimen->specimenLabel).'</span><div class="webapp">'.$webapp.'</div></td>';
|
|
426 | 443 |
} |
427 | 444 |
$out .= $media_row.'</tr>'; |
428 | 445 |
$out .= $meta_row.'</tr>'; |
Also available in: Unified diff
cdm_muri module finished; ThickBox jQuery plugin working (bugfix in compat-1.0.js)