Project

General

Profile

« Previous | Next » 

Revision 45aaf1fe

Added by Andreas Kohlbecker over 5 years ago

depuplication of p.p.MAN and partial MAN with test

View differences:

modules/cdm_dataportal/includes/taxon.inc
54 54
    return null;
55 55
  }
56 56

  
57
  static $dedup_rel_type_uuids = array(
58
    UUID_MISAPPLIED_NAME_FOR,
59
    UUID_INVALID_DESIGNATION_FOR,
60
    UUID_PARTIAL_MISAPPLIEDNAME_FOR,
61
    UUID_PROPARTE_MISAPPLIEDNAME_FOR
62
  );
63

  
57 64
  RenderHints::pushToRenderStack('taxon_relationships');
58 65
  $footnote_list_key = 'taxon_relationships';
59 66
  RenderHints::setFootnoteListKey($footnote_list_key);
......
78 85

  
79 86
      if (in_array($taxon_relation->type->uuid, $taxon_relationship_types)) {
80 87

  
81
        if ($taxon_relation->type->uuid == UUID_MISAPPLIED_NAME_FOR || $taxon_relation->type->uuid == UUID_INVALID_DESIGNATION_FOR) {
88
        if (in_array($taxon_relation->type->uuid, $dedup_rel_type_uuids)) {
82 89

  
83 90
          RenderHints::pushToRenderStack('misapplied_name_for'); // TODO the render path string should in future come from $taxonRelation->type->...
84 91

  

Also available in: Unified diff