Project

General

Profile

Revision 12466422

ID12466422dac904275be791eeeb61100ec84fbc88
Parent 26b8a1bc
Child 1443f45b

Added by Andreas Kohlbecker over 1 year ago

ref #8051 typos and whitespace issue

View differences:

modules/cdm_dataportal/includes/name.inc
626 626
  }
627 627

  
628 628
  // registration date and office
629
  $registration_date_insitute_markup = render_registration_date_and_intitute($registration_dto);
629
  $registration_date_insitute_markup = render_registration_date_and_institute($registration_dto);
630 630
  if($registration_date_insitute_markup){
631 631
    $render_array['registration_date_and_institute'] = markup_to_render_array(
632 632
      $registration_date_insitute_markup . '</p>',
......
663 663
    return $render_array;
664 664
  }
665 665

  
666
  $registration_date_insitute_markup = render_registration_date_and_intitute($registration_dto, 'span');
666
  $registration_date_insitute_markup = render_registration_date_and_institute($registration_dto, 'span');
667 667
  $itentifier_markup = l($registration_dto->identifier, $registration_dto->identifier, array('attributes' => array('class' => array('identifier'))));
668 668

  
669 669
  $taggged_text_expanded = cdm_tagged_text_expand_entity_references($registration_dto->summaryTaggedText);
......
686 686
  } else {
687 687
    $render_array['registration-metadata'] = markup_to_render_array('<div class="registration-metadata">' . $itentifier_markup . ' ' . $registration_date_insitute_markup. "</div>", -10);
688 688
  }
689
  $render_array['summary'] = markup_to_render_array('<' . $tag_enclosing_summary . 'class="registration-summary">' . $registation_markup . "</' . $tag_enclosing_summary . '>", 0);
689
  $render_array['summary'] = markup_to_render_array('<' . $tag_enclosing_summary . ' class="registration-summary">' . $registation_markup . "</' . $tag_enclosing_summary . '>", 0);
690 690

  
691 691
  return $render_array;
692 692
}
......
699 699
 * @return string
700 700
 *    The markup or an empty string
701 701
 */
702
function render_registration_date_and_intitute($registration_dto, $enclosing_tag = 'p') {
703
  $registration_date_insitute_markup = '';
702
function render_registration_date_and_institute($registration_dto, $enclosing_tag = 'p') {
703
  $registration_date_institute_markup = '';
704 704
  if ($registration_dto->registrationDate) {
705 705
    $date_string = format_datetime($registration_dto->registrationDate);
706 706
    if (isset($registration_dto->institutionTitleCache) && $registration_dto->institutionTitleCache) {
707
      $registration_date_insitute_markup =
707
      $registration_date_institute_markup =
708 708
        t("Registration on @date in @institution", array(
709 709
          '@date' => $date_string,
710 710
          '@institution' => $registration_dto->institutionTitleCache,
711 711
        ));
712 712
    } else {
713
      $registration_date_insitute_markup =
713
      $registration_date_institute_markup =
714 714
        t("Registration on @date", array(
715 715
          '@date' => $date_string
716 716
        ));
717 717
    }
718
    $registration_date_insitute_markup = '<' .$enclosing_tag . ' class="registration-date-and-institute">'. $registration_date_insitute_markup . '</' .$enclosing_tag . '>';
718
    $registration_date_institute_markup = '<' .$enclosing_tag . ' class="registration-date-and-institute">'. $registration_date_institute_markup . '</' .$enclosing_tag . '>';
719 719
  }
720
  return $registration_date_insitute_markup;
720
  return $registration_date_institute_markup;
721 721
}
722 722

  
723 723

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)