Skip to content

Commit

Permalink
Change in GPI Model to make it deal with records with parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Klazenga committed Apr 6, 2017
1 parent ce65a4b commit 880f082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/gpimodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private function insertIdentificationsForUnit($unitid) {
$identification->Genus = (isset($name[0])) ? $name[0] : NULL;
$identification->InfraspecificRank = NULL;
$identification->InfraspecificEpithet = NULL;
$identification->Author = str_replace(' & ', ' & ', $row->Author);
$identification->Author = $row->Author;

if ($row->Qualifier && ($row->QualifierRank=='Species' || (!$row->QualifierRank && $row->TaxonTreeDefItemID == 13)))
$identification->SpeciesQualifier = $row->Qualifier;
Expand Down Expand Up @@ -362,7 +362,7 @@ public function insertIdentifications($units) {
$identification->Genus = (isset($name[0])) ? $name[0] : NULL;
$identification->InfraspecificRank = NULL;
$identification->InfraspecificEpithet = NULL;
$identification->Author = str_replace(' & ', ' & ', $row->Author);
$identification->Author = $row->Author;

if ($row->Qualifier && ($row->QualifierRank=='Species' || (!$row->QualifierRank && $row->TaxonTreeDefItemID == 13))) {
$identification->SpeciesQualifier = $row->Qualifier;
Expand Down

0 comments on commit 880f082

Please sign in to comment.