Project

General

Profile

« Previous | Next » 

Revision a22e3f38

Added by Andreas Kohlbecker about 16 years ago

View differences:

modules/cdm_dataportal/cdm_dataportal.theme.php
382 382
  
383 383
  // ---- jQuery ThickBox:
384 384
  // bug: thickbox.js line 237 .trigger("unload") -> event is not triggered
385
  //drupal_add_js(drupal_get_path('module', 'cdm_dataportal').'/js/thickbox.js');
386
  //drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/js/thickbox.css');
385
  drupal_add_js(drupal_get_path('module', 'cdm_dataportal').'/js/thickbox.js');
386
  drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/js/thickbox.css');
387 387
  
388 388
  // ---- jQuery jqModal:
389
  //drupal_add_js(drupal_get_path('module', 'cdm_dataportal').'/js/thickbox.js');
390
  //drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/js/thickbox.css');
389
  // untested ...
390
  //drupal_add_js(drupal_get_path('module', 'cdm_dataportal').'/js/jqModal.js');
391
  //drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/js/jqModal.css');
391 392
  
392 393
  
393 394
  
......
397 398
    $image_url = drupal_get_path('module', 'cdm_dataportal').'/images/external_link.gif';
398 399
    // thickbox has problems reading the first url parameter, so a litte hack is needed here:
399 400
    // adding a meningless patameter &tb_hack=1& ....
400
    $out .= '&nbsp;<a href="#TB_inline?tb_hack=1&width=300&amp;height=300&amp;inlineId=specimen_media_'.$specimen->uuid.'" class="thickbox">'
401
    $out .= '&nbsp;<a href="#TB_inline?tb_hack=1&width=300&amp;height=330&amp;inlineId=specimen_media_'.$specimen->uuid.'" class="thickbox">'
401 402
    .'<img src="'.$image_url.'" title="'.t('Show media').'" /></a>';
402 403
    
403 404
    $out .= '<div id="specimen_media_'.$specimen->uuid.'" class="tickbox_content"><table>';
......
408 409
    foreach($specimen->mediaURI as $uri){
409 410
      $muris = cdm_dataportal_mediaUri_conversion($uri->value);
410 411
      if(isset($muris['preview'])){    
411
        $a_child = '<img src="'.$muris['preview']['uri'].'" />';
412
        
413
        $a_child = '<img src="'.$muris['preview']['uri'].'" '
414
          .($muris['preview']['size_x'] ? 'width="'.$muris['preview']['size_x'].'"' : '')
415
          .($muris['preview']['size_y'] ? 'width="'.$muris['preview']['size_y'].'"' : '')
416
          .'/>';
412 417
      } else {
413 418
        $a_child = '<img src="'.$image_url.'" />';
414 419
      }
420
      $webapp_access = '';
415 421
      $media_row .= '<td><a href="'.$uri->value.'" target="'.$uri->uuid.'">'.$a_child.'</a></td>';
416
      $meta_row .= '<td><span class="label">'.check_plain($specimen->specimenLabel).'</span></td>';
422
      $meta_row .= '<td><span class="label">'.check_plain($specimen->specimenLabel).'</span>'.$webapp_access.'</td>';
417 423
    }
418 424
    $out .= $media_row.'</tr>';
419 425
    $out .= $meta_row.'</tr>';

Also available in: Unified diff