Project

General

Profile

« Previous | Next » 

Revision 2a7eb586

Added by Andreas Kohlbecker over 4 years ago

typo

View differences:

modules/cdm_dataportal/includes/descriptions.inc
556 556

  
557 557
    if ($config['sources_as_content'] == 1) {
558 558
      foreach ($entity->sources as $source) {
559
        if (_is_original_source_type($source)) {
560
          $reference_citation = theme('cdm_OriginalSource',
561
            array(
562
              'source' => $source,
563
              'doLink' => $config['link_to_reference'] == 1,
564
              'do_link_to_name_used_in_source' => $config['link_to_name_used_in_source'] == 1,
565
            )
566
          );
559 567

  
560
        $reference_citation = theme('cdm_OriginalSource',
561
          array(
562
            'source' => $source,
563
            'doLink' => $config['link_to_reference'] == 1,
564
            'do_link_to_name_used_in_source' => $config['link_to_name_used_in_source'] == 1,
565
          )
566
        );
567

  
568
        if ($reference_citation) {
569
          if (empty($inline_text_prefix)) {
570
            $annotations_and_sources['source_references'][] = $reference_citation;
571
          }
572
          else {
573
            $annotations_and_sources['source_references'][] = ' (' . $reference_citation . ')';
568
          if ($reference_citation) {
569
            if (empty($inline_text_prefix)) {
570
              $annotations_and_sources['source_references'][] = $reference_citation;
571
            } else {
572
              $annotations_and_sources['source_references'][] = ' (' . $reference_citation . ')';
573
            }
574 574
          }
575
        }
576 575

  
577
        $name_in_source_render_array = compose_name_in_source(
578
          $source,
579
          $config['link_to_name_used_in_source'] == 1
580
        );
576
          $name_in_source_render_array = compose_name_in_source(
577
            $source,
578
            $config['link_to_name_used_in_source'] == 1
579
          );
581 580

  
582
        if(!empty($name_in_source_render_array)){
583
          $annotations_and_sources['names_used_in_source'][$name_in_source_render_array['#_plaintext']] = drupal_render($name_in_source_render_array);
581
          if (!empty($name_in_source_render_array)) {
582
            $annotations_and_sources['names_used_in_source'][$name_in_source_render_array['#_plaintext']] = drupal_render($name_in_source_render_array);
583
          }
584 584
        }
585 585
      } // END of loop over sources
586 586

  

Also available in: Unified diff