Project

General

Profile

« Previous | Next » 

Revision 95e00758

Added by Andreas Kohlbecker almost 4 years ago

ref #9010 showing status notes, source and annotations

View differences:

modules/cdm_dataportal/includes/descriptions.inc
558 558
      'names_used_in_source' => array()
559 559
    );
560 560

  
561
    usort($entity->sources, 'compare_original_sources');
561
    // some entity types only have single sources:
562
    if(isset($entity->source) && is_object($entity->source)){
563
      $sources = [$entity->source];
564
    } else if(isset($entity->sources)) {
565
      $sources = $entity->sources;
566
    } else {
567
      $sources = [];
568
    }
569
    usort($sources, 'compare_original_sources');
562 570

  
563 571
    if ($config['sources_as_content'] == 1) {
564
      foreach ($entity->sources as $source) {
572
      foreach ($sources as $source) {
565 573
        if (_is_original_source_type($source)) {
566 574
          $reference_citation = render_original_source(
567 575
            $source,

Also available in: Unified diff