Project

General

Profile

« Previous | Next » 

Revision 72c12d45

Added by Andreas Kohlbecker over 6 years ago

#5585 fixed

View differences:

modules/cdm_dataportal/includes/descriptions.inc
403 403
  // used in source information without any text stored in it.
404 404
  $names_used_in_source_markup = '';
405 405
  if (!empty($annotations_and_sources['names_used_in_source']) && empty($element_markup)) {
406
    // $element_text ==  NULL  usually occurs only in the case of CITATIONS!!!
407 406
    $names_used_in_source_markup = join(', ', $annotations_and_sources['names_used_in_source']) . ': ';
407
    // remove all <span class="nameUsedInSource">...</span> from all source_references
408
    // these are expected to be at the end of the strings
409
    $pattern = '/ <span class="nameUsedInSource">.*$/';
410
    foreach( $annotations_and_sources['source_references'] as &$source_reference){
411
      $source_reference = preg_replace($pattern , '', $source_reference);
412
    }
408 413
  }
409 414

  
415

  
410 416
  $source_references_markup = '';
411 417
  if (!empty($annotations_and_sources['source_references'])) {
412 418
    $source_references_markup = '<span class="sources">' . join(' ', $annotations_and_sources['source_references']) . '<span>';

Also available in: Unified diff